price_rule_id
path parameter is the ID of the price rule that the discount code creation job was ran for.batch_id
path parameter is the ID of the discount code creation job for the associated price rule.id
field. Discount codes thaterrors
field.curl --location --request GET 'https://demo.myshopify.com//admin/api//price_rules//batch//discount_codes.json'
{
"discount_codes": [
{
"id": null,
"code": "foo",
"errors": {}
},
{
"id": null,
"code": "",
"errors": {}
},
{
"id": null,
"code": "bar",
"errors": {}
}
]
}