> Note: > We're no longer publishing API release notes. Instead, you can find the latest updates on Shopify APIs in our [developer changelog](https://shopify.dev/changelog). You can filter updates by area. For example, you can filter API updates by the API name and version, such as GraphQL Admin API changes in version 2025-04.
Release date | Date version is no longer supported |
---|---|
April 1, 2021 | April 1, 2022 |
As of API version 2021-04, payment apps that use the redirectUrl
field on PaymentSession
must update their apps to use the nextAction
field. This allows payment apps to support payment methods other than offsite and other actions that might need to occur depending on the type of payment.
New types
PaymentSessionActionsRedirect
object was addedPaymentSessionNextAction
object was addedPaymentSessionNextActionAction
enum was addedPaymentSessionNextActionContext
union was addedIf you run ads on the Shopify App Store, have a valid billing exemption, and want to attribute revenue generated outside of the Billing API to your ad campaigns, then you can use the Ad Conversion API to capture the details of externally collected revenue.
New types
AppRevenueAttributionRecord
object was addedAppRevenueAttributionRecordInput
input object was addedAppRevenueAttributionType
enum was addedrevenueAttributionRecords
connection was added to object AppInstallation
New mutations
appRevenueAttributionRecordCreate
mutation was addedappRevenueAttributionRecordDelete
mutation was addedAs of API version 2021-04, you can query the discountCodeCount
field on QueryRoot
to retrieve a count of discount codes for a shop. You can also asynchronously add discount redeem codes in bulk using the GraphQL Admin API.
New fields
discountCodeCount
field was added to object QueryRoot
discountRedeemCodeBulkCreation
field was added to object QueryRoot
New types
DiscountRedeemCodeBulkCreationCode
object was addedDiscountRedeemCodeBulkCreation
object was addedDiscountRedeemCodeInput
input object was addedNew mutations
discountRedeemCodeBulkAdd
mutation was addedApps can now read and write the subscription policy that merchants have configured for their store.
New value
SUBSCRIPTION_POLICY
value was added to enum ShopPolicyType
You can now query a metafield by ID from the query root of the GraphQL Admin API.
New field
metafield
field was added to object QueryRoot
As of API version 2021-04, you can query the ScriptTag object to determine whether the Shopify CDN (content delivery network) can cache and serve a script tag.
New field
cache
field was added to object ScriptTag
cache
field was added to input object ScriptTagInput
As of API version 2021-04, you can query the ShopFeatures object to determine whether a shop can enable international price rules and price overrides.
New field
internationalPriceRules
field was added to object ShopFeatures
internationalPriceOverrides
field was added to object ShopFeatures
As of API version 2021-04, you can manage gift cards using the GraphQL Admin API.
New types
giftCard
object was addedgiftCardCreateInput
input object was addedgiftCardUpdateInput
input object was addedgiftCards
connection was added to QueryRoot
giftCardUserError
type was addedNew mutations
giftCardCreate
mutation was addedgiftCardUpdate
mutation was addedgiftCardDisable
mutation was addedNew field
giftCardsCount
field was added to object QueryRoot
As of API version 2021-04, you can use RefundSession to issue refunds against payments that have been processed by Payments Partner gateways.
New types
RefundSession
object was addedNew fields
id
field was added to object RefundSession
status
field was added to object RefundSession
New mutations
refundSessionReject
mutation was addedrefundSessionResolve
mutation was addedAs of API version 2021-04, you can query for video hosted outside of Shopify and filter by the value of host
.
New types
MediaHost
enum was added and is returned by ExternalVideo
objectNew fields
host
field was added to object ExternalVideo
As of API version 2021-04, you can use price lists to specify either fixed prices or adjusted relative prices that override initial product variant prices. Refer to Support different pricing models using the price list API for more information.
New types
PriceListAdjustmentType
enum was addedPriceListPriceOriginType
enum was addedPriceListParentUpdateInput
enum was addedPriceListParentCreateInput
object was addedPriceListPriceUserError
object was addedPriceListAdjustment
object was addedPriceListAdjustmentInput
object was addedPriceListParent
object was addedPriceListUpdateInput
object was addedPriceListCreateInput
object was addedPriceListUserError
object was addedPriceListPrice
object was addedPriceListPriceInput
object was addedPriceListContextRule
object was addedPriceListContextRuleInput
object was addedPriceListPriceOriginType
object was addedPriceList
object was addedNew fields
price_list_price_active_bulk_import
field was added to object QueryRoot
price_list
field was added to object QueryRoot
price_lists
field was added to object QueryRoot
New mutations
priceListCreate
mutation was addedpriceListDelete
mutation was addedpriceListFixedPricesAdd
mutation was addedpriceListFixedPricesDelete
mutation was addedpriceListUpdate
mutation was addedAs of API version 2021-04, you can query the total duties applied to line items in the checkout and the total current and original duties applied to an order.
New fields
totalDuties
field was added to object Checkout
currentTotalDuties
field was added to object Order
originalTotalDuties
field was added to object Order
As of API version 2021-04, you can query for video hosted outside of Shopify and filter by the value of host
.
New types
MediaHost
enum was added and is returned by ExternalVideo
object.New fields
host
field was added to object ExternalVideo
As of API version 2021-04, you can use the Checkout resource to retrieve information about how a discount was applied to a checkout.
New property
application_type
property was added to applied_discounts
property on Checkout resourceapplication_type
property was added to line_items
property (within the applied_discounts
property) on Checkout resourcePossible values for application_type
include:
automatic
: The discount was applied automatically.discount_code
: The merchant or customer entered a discount code.manual
: The discount was applied manually by the merchant or an app.script
: The discount was applied by a Shopify Script.As of API version 2021-04, you can use the FulfillmentOrder
resource to retrieve the type of method used to transfer a product or service to a customer.
New property
delivery_method
property was added to resource FulfillmentOrder
As of API version 2021-04, you can use the DiscountCode resource to retrieve a count of discount codes for a shop.
New endpoint
/admin/api/2021-04/discount_codes/count.json
: Retrieves a count of discount codes for a shop.