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.