Skip to main content

Discount code lookup API redirect now includes the API version

The DiscountCode lookup API now includes requested the API version in the location URL that it returns, instead of falling back to the earliest supported version.

Example: /admin/api/<API_VERSION>/price_rules/<PRICE_RULE_ID>/discount_codes/<DISCOUNT_ID>.json

Learn more about the DiscountCode lookup API on Shopify.dev.

Was this section helpful?