Developer changelog

Subscribe to the changelog to stay up to date on recent changes to Shopify’s APIs and other developer products, as well as preview upcoming features and beta releases.

Get updates by RSS

Subscription Billing Attempt now Respects Inventory Policy to not Allow Overselling

API

Action required

As of the 2024-07 release of the GraphQL Admin API, the SubscriptionBillingAttemptCreate mutation now prevents the creation of Billing Attempts if any line items in a contract do not have enough inventory, thus preventing overselling.

We've also added the INSUFFICIENT_INVENTORY error code to the SubscriptionBillingAttemptErrorCode enum. This new error code is set on the Billing Attempt when processing fails due to insufficient inventory.

Learn more about the Subscription Contracts API and Billing Attempts on Shopify.dev.