2022-07 release notes
Release date | Date version is no longer supported |
---|---|
July 1, 2022 | July 1, 2023 |
Breaking changes
Anchor link to section titled "Breaking changes"These changes require special attention. Your app will break if it uses these API resources and you don’t upgrade to a more recent API version.
Validation on subscription mutations
Anchor link to section titled "Validation on subscription mutations"As of API version 2022-07, the phone
field of the delivery address for a subscription is validated on the subscriptionContractCreate
and subscriptionDraftUpdate
mutations.
The validation enables you to confirm that a phone number is properly formatted and prevents errors that might occur when processing subscription payments with invalid data.
GraphQL Admin API changes
Anchor link to section titled "GraphQL Admin API changes"The following are all the changes currently introduced in the 2022-07 version of the GraphQL Admin API.
Validation on subscription mutations
As of API version 2022-07, the phone
field of the delivery address for a subscription is validated on the subscriptionContractCreate
and subscriptionDraftUpdate
mutations.
The validation enables you to confirm that a phone number is properly formatted and prevents errors that might occur when processing subscription payments with invalid data.
GraphQL Storefront API changes
Anchor link to section titled "GraphQL Storefront API changes"The following are all the changes currently introduced in the 2022-07 version of the GraphQL Storefront API.
Cart
As of API version 2022-07, you can query the Cart
object to retrieve the total number of items in a cart (totalQuantity
).
You can also query the CartLineEstimatedCost
object to retrieve the unit price (amount
) and the unit price comparisons with other sellers (compareAtAmount
) of a merchandise line in a cart. For more information, refer to Support international pricing on storefronts.
New fields
totalQuantity
field was added toCart
objectamount
field was added toCartLineEstimatedCost
objectcompareAtAmount
field was added toCartLineEstimatedCost
object
URL redirects
As of API version 2022-07, you can query the urlRedirect
object to retrieve information about a URL redirect on an online store. For example, you can query both the URL that users are redirected from and the URL where users will be redirected to.
New type
UrlRedirect
object was added
New connection
urlRedirects
connection was added toQueryRoot