List Subscriptions
Search and filter Subscriptions with pagination. Results are sorted by creation date (newest first) by default.
Authorization
Public key In: header
Query Parameters
Filter Subscriptions by their status:
- active: Currently active Subscription
- past_due: Payment failed but will retry
- canceled: Subscription has been canceled
- incomplete: Initial payment failed
- incomplete_expired: Initial payment failed and expired
- trialing: In trial period
- unpaid: Payment failed and won't retry
Value in
- "all"
- "active"
- "canceled"
- "incomplete"
- "incomplete_expired"
- "past_due"
- "trialing"
- "paused"
- "unpaid"
Return only Subscriptions belonging to this User UUID.
uuidFilter Subscriptions created on or after this timestamp. Accepts Unix timestamp in seconds or milliseconds. Must not be later than createdTo.
int640 <= value <= 9007199254740991Filter Subscriptions created on or before this timestamp. Accepts Unix timestamp in seconds or milliseconds. Must not be earlier than createdFrom.
int640 <= value <= 9007199254740991Cursor returned with the previous page. Send it to fetch the next one.
Number of Subscriptions per page. Defaults to 10, maximum 100.
int641 <= value <= 10010Response Body
application/json
application/json
curl -X GET "https://example.com/v0/subscriptions/list"{ "status": "success", "data": { "subscriptions": [ { "object": "subscription", "id": "string", "status": "all", "createdAt": 0, "currentIntervalEnd": 0, "currentIntervalStart": 0, "cancelAtIntervalEnd": false, "canceledAt": null, "userId": null, "user": null, "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5", "orderNumber": "string", "order": { "object": "order", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": "string", "status": "PENDING" }, "lastPaymentId": null, "lastPaymentNumber": null, "lastPayment": null } ], "count": -1.7976931348623157e+308, "cursor": "string", "hasMore": false }}List report rows for orders GET
Retrieve the rows of the Reports export, one per order, paged and newest first. Every row carries the same columns as the CSV the dashboard exports for the same range, statuses and time zone, with amounts as integers in the smallest currency unit and the currency in its own field. The date range is widened to whole days in the requested time zone — or in the workspace's own time zone when none is given — and starts no earlier than the day the workspace was created; a range that ends before then returns no rows. Use 'page' and 'limit' to walk the whole result set; 'count' and 'pages' are returned on every page. Orders keep arriving and changing status, so walk a range that has already closed, and start over if 'count' changes between pages. An unknown time zone or status, an end date before the start date, a date past the year 9999 or a page beyond any possible offset is rejected with 400.
Create Subscription POST
Create a new Subscription for a User. User must have a valid customer ID of Payment Provider set. Requires billing details with at least a country code and postal code if country is one of US, CA, UA, IN. Multiple items (up to 20) can be billed on a single Subscription — for example a base plan plus add-ons — and each line is preserved on the invoice and outbound webhooks. Because one Subscription maps to a single billing arrangement, every item must be on the same cadence: - Currency: all items must resolve to the same currency (from the item or its Offer). - Billing period: all Offers must share the same recurring interval and interval count (e.g. all monthly); mixing intervals (monthly + yearly) returns a 400. - Every item must reference a recurring Offer via offerId. - Trial: a trial (trialEnd / the Offer trial) is only applied to single-item Subscriptions. Multi-item Subscriptions start billing immediately (no trial). - Discount codes are not supported for multi-item Subscriptions. Note: User must have a valid customer ID of Payment Provider set and this customer must have a valid default payment method set (Payment Provider dashboard). A store that has moved to the new platform answers 409: create its Subscriptions through API v1.