The Subscriptions API lets you manage the subscriptions that customers started in a Base44 app by paying for a subscription item through Checkout Sessions. It's part of the Payments APIs for Base44. Each call applies to the app's site, which holds the app's payments data.
With the Subscriptions API, you can:
A subscription is identified by the ID of its eCom subscription contract. This isn't an ID from the billing system. Checkout Sessions creates the subscription items that lead to these contracts. You can get a subscription ID in either of these ways:
The subscription's status, next billing date, and cancellation date come from the billing subscription that the contract points to.
Cancel Subscription works in 2 modes, which you choose with the immediate parameter:
immediate is false, the default): Turns off auto-renewal. The subscription stays ACTIVE, and cancellationDate is set to the date of the next billing cycle, when the subscription is scheduled to end.immediate is true): Cancels the subscription immediately.If the subscription is already CANCELED or ENDED, the call succeeds and returns the current subscription. The same applies to a soft cancellation when auto-renewal is already off.
It's important to note the following points before starting to code:
SUBSCRIPTION_NOT_FOUND error when the subscription doesn't exist on the site that makes the call. Query Subscriptions leaves such IDs out of the response instead.id, using either $in with up to 100 unique IDs or $eq with a single ID. All matches are returned in a single page. Sorting isn't supported, and you can set a paging limit but not a cursor.Last updated: 2 December 2026