The Subscription Contracts API lets you retrieve the terms of a buyer's subscription: the subscribed items and their prices, the billing frequency and number of billing cycles, and the buyer, billing, and shipping details agreed on at checkout, or as later changed through draft subscription contracts.
With the Subscription Contracts API, you can:
When a buyer checks out with subscription items, a subscription contract is created for each group of items that are billed together:
itemType.preset is PHYSICAL) from the same catalog (catalogReference.appId) with identical subscriptionInfo.subscriptionSettings share 1 subscription contract. For example, 2 Wix Stores products with the same monthly subscription settings.So 1 checkout can create several subscription contracts. Each billing cycle, an order is created from each subscription contract's current content.
A subscription contract doesn't hold the IDs of its orders. Instead, each order's subscription line items point back to the contract:
lineItems.subscriptionInfo.id: ID of the subscription contract the order was created from.lineItems.subscriptionInfo.cycleNumber: Billing cycle the order is for.To retrieve all the orders created from a subscription contract, call Search Orders with a filter on lineItems.subscriptionInfo.id.
Changes to a subscription contract apply to the orders created after the change. Orders that were already created keep their content.
It's important to note the following points before starting to code:
id and buyerInfo.contactId only.1. For example, with a monthly subscription, each month is a billing cycle. When a subscription starts with a free trial, the order created at checkout is for cycle 0.Last updated: 21 October 2026