--- title: Discount code lookup API redirect now includes the API version - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/discount-code-lookup-api-redirect-now-includes-the-api-version md: https://shopify.dev/changelog/discount-code-lookup-api-redirect-now-includes-the-api-version.md --- [Back to Developer changelog](https://shopify.dev/changelog) February 25, 2021 Tags: * API * 2021-01 # Discount code lookup API redirect now includes the API version The [DiscountCode lookup API](https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode?api%5Bversion%5D=2021-01#lookup-unstable) 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//price_rules//discount_codes/.json` Learn more about the DiscountCode lookup API on [Shopify.dev](https://shopify.dev/docs/admin-api/rest/reference/discounts/discountcode?api%5Bversion%5D=2021-01#lookup-unstable).