{ "opencollection": "1.0.0", "info": { "name": "Shopify Admin REST About Code API", "version": "2025-01" }, "request": { "auth": { "type": "apikey", "key": "X-Shopify-Access-Token", "value": "{{X-Shopify-Access-Token}}", "placement": "header" } }, "items": [ { "info": { "name": "Code", "type": "folder" }, "items": [ { "info": { "name": "Shopify Creates A Discount Code", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/price_rules/:price_rule_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#create-2020-01" }, { "info": { "name": "Shopify Retrieves A Single Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#show-2020-01" }, { "info": { "name": "Shopify Updates An Existing Discount Code", "type": "http" }, "http": { "method": "PUT", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#update-2020-01" }, { "info": { "name": "Shopify Deletes A Discount Code", "type": "http" }, "http": { "method": "DELETE", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#destroy-2020-01" }, { "info": { "name": "Shopify Retrieves The Location Of A Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/discount_codes/lookup.json", "params": [ { "name": "code", "value": "", "type": "query", "description": "code" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#lookup-2020-01" }, { "info": { "name": "Shopify Creates A Discount Code Creation Job", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/price_rules/:price_rule_id/batch.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_create-2020-01" }, { "info": { "name": "Shopify Retrieves A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/price_rules/:price_rule_id/batch/:batch_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_show-2020-01" }, { "info": { "name": "Shopify Retrieves A List Of Discount Codes For A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-01/price_rules/:price_rule_id/batch/:batch_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_discount_codes_index-2020-01" }, { "info": { "name": "Shopify Creates A Discount Code", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/price_rules/:price_rule_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#create-2020-04" }, { "info": { "name": "Shopify Retrieves A Single Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#show-2020-04" }, { "info": { "name": "Shopify Updates An Existing Discount Code", "type": "http" }, "http": { "method": "PUT", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#update-2020-04" }, { "info": { "name": "Shopify Deletes A Discount Code", "type": "http" }, "http": { "method": "DELETE", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#destroy-2020-04" }, { "info": { "name": "Shopify Retrieves The Location Of A Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/discount_codes/lookup.json", "params": [ { "name": "code", "value": "", "type": "query", "description": "code" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#lookup-2020-04" }, { "info": { "name": "Shopify Creates A Discount Code Creation Job", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/price_rules/:price_rule_id/batch.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_create-2020-04" }, { "info": { "name": "Shopify Retrieves A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/price_rules/:price_rule_id/batch/:batch_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_show-2020-04" }, { "info": { "name": "Shopify Retrieves A List Of Discount Codes For A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-04/price_rules/:price_rule_id/batch/:batch_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_discount_codes_index-2020-04" }, { "info": { "name": "Shopify Creates A Discount Code", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/price_rules/:price_rule_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#create-2020-07" }, { "info": { "name": "Shopify Retrieves A Single Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#show-2020-07" }, { "info": { "name": "Shopify Updates An Existing Discount Code", "type": "http" }, "http": { "method": "PUT", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#update-2020-07" }, { "info": { "name": "Shopify Deletes A Discount Code", "type": "http" }, "http": { "method": "DELETE", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#destroy-2020-07" }, { "info": { "name": "Shopify Retrieves The Location Of A Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/discount_codes/lookup.json", "params": [ { "name": "code", "value": "", "type": "query", "description": "code" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#lookup-2020-07" }, { "info": { "name": "Shopify Creates A Discount Code Creation Job", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/price_rules/:price_rule_id/batch.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_create-2020-07" }, { "info": { "name": "Shopify Retrieves A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/price_rules/:price_rule_id/batch/:batch_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_show-2020-07" }, { "info": { "name": "Shopify Retrieves A List Of Discount Codes For A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-07/price_rules/:price_rule_id/batch/:batch_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_discount_codes_index-2020-07" }, { "info": { "name": "Shopify Creates A Discount Code", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/price_rules/:price_rule_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#create-2020-10" }, { "info": { "name": "Shopify Retrieves A Single Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#show-2020-10" }, { "info": { "name": "Shopify Updates An Existing Discount Code", "type": "http" }, "http": { "method": "PUT", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#update-2020-10" }, { "info": { "name": "Shopify Deletes A Discount Code", "type": "http" }, "http": { "method": "DELETE", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#destroy-2020-10" }, { "info": { "name": "Shopify Retrieves The Location Of A Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/discount_codes/lookup.json", "params": [ { "name": "code", "value": "", "type": "query", "description": "code" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#lookup-2020-10" }, { "info": { "name": "Shopify Creates A Discount Code Creation Job", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/price_rules/:price_rule_id/batch.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_create-2020-10" }, { "info": { "name": "Shopify Retrieves A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/price_rules/:price_rule_id/batch/:batch_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_show-2020-10" }, { "info": { "name": "Shopify Retrieves A List Of Discount Codes For A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2020-10/price_rules/:price_rule_id/batch/:batch_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_discount_codes_index-2020-10" }, { "info": { "name": "Shopify Creates A Discount Code", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/price_rules/:price_rule_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#create-2021-01" }, { "info": { "name": "Shopify Retrieves A Single Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#show-2021-01" }, { "info": { "name": "Shopify Updates An Existing Discount Code", "type": "http" }, "http": { "method": "PUT", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#update-2021-01" }, { "info": { "name": "Shopify Deletes A Discount Code", "type": "http" }, "http": { "method": "DELETE", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#destroy-2021-01" }, { "info": { "name": "Shopify Retrieves The Location Of A Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/discount_codes/lookup.json", "params": [ { "name": "code", "value": "", "type": "query", "description": "code" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#lookup-2021-01" }, { "info": { "name": "Shopify Creates A Discount Code Creation Job", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/price_rules/:price_rule_id/batch.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_create-2021-01" }, { "info": { "name": "Shopify Retrieves A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/price_rules/:price_rule_id/batch/:batch_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_show-2021-01" }, { "info": { "name": "Shopify Retrieves A List Of Discount Codes For A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/2021-01/price_rules/:price_rule_id/batch/:batch_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_discount_codes_index-2021-01" }, { "info": { "name": "Shopify Creates A Discount Code", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/price_rules/:price_rule_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#create-unstable" }, { "info": { "name": "Shopify Retrieves A Single Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#show-unstable" }, { "info": { "name": "Shopify Updates An Existing Discount Code", "type": "http" }, "http": { "method": "PUT", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#update-unstable" }, { "info": { "name": "Shopify Deletes A Discount Code", "type": "http" }, "http": { "method": "DELETE", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/price_rules/:price_rule_id/discount_codes/:discount_code_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "discount_code_id", "value": "", "type": "path", "description": "discount_code_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#destroy-unstable" }, { "info": { "name": "Shopify Retrieves The Location Of A Discount Code", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/discount_codes/lookup.json", "params": [ { "name": "code", "value": "", "type": "query", "description": "code" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#lookup-unstable" }, { "info": { "name": "Shopify Creates A Discount Code Creation Job", "type": "http" }, "http": { "method": "POST", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/price_rules/:price_rule_id/batch.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" } ], "body": { "type": "json", "data": "{}" } }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_create-unstable" }, { "info": { "name": "Shopify Retrieves A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/price_rules/:price_rule_id/batch/:batch_id.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_show-unstable" }, { "info": { "name": "Shopify Retrieves A List Of Discount Codes For A Discount Code Creation Job", "type": "http" }, "http": { "method": "GET", "url": "https://{store}.myshopify.com/admin/api/2025-01/admin/api/unstable/price_rules/:price_rule_id/batch/:batch_id/discount_codes.json", "params": [ { "name": "price_rule_id", "value": "", "type": "path", "description": "price_rule_id" }, { "name": "batch_id", "value": "", "type": "path", "description": "batch_id" } ] }, "docs": "https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode#batch_discount_codes_index-unstable" } ] } ], "bundled": true }