---
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
metadata:
  effectiveApiVersion: 2021-01
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2021-03-04T14:09:50-05:00'
  postedAt: '2021-02-25T00:00:00-05:00'
  updatedAt: '2024-12-13T17:24:31-05:00'
  effectiveAt: '2021-02-25T00:00:00-05:00'
---

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/<API_VERSION>/price_rules/<PRICE_RULE_ID>/discount_codes/<DISCOUNT_ID>.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).
