price_rule_id
path parameter is the ID of the price rule that the discount code creation job was ran for. This is required becausebatch_id
path parameter is the ID of the discount code creation job for the associated price rule.curl --location --request GET 'https://demo.myshopify.com//admin/api//price_rules//batch/.json'
{
"discount_code_creation": {
"id": 173232803,
"price_rule_id": 507328175,
"started_at": null,
"completed_at": null,
"created_at": "2023-01-03T12:21:36-05:00",
"updated_at": "2023-01-03T12:21:36-05:00",
"status": "queued",
"codes_count": 3,
"imported_count": 0,
"failed_count": 0,
"logs": []
}
}