Developer changelog
Subscribe to the changelog to stay up to date on recent changes to Shopify’s APIs and other developer products, as well as preview upcoming features and beta releases.
Discount code lookup API redirect now includes the API version
API
Effective February 25, 2021
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.