Get Subscriptions

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Requires the Store plan feature (403 otherwise). The store subscriptions on the partner's products (for a brand partner: on its brands' products), newest first (created_at, then id, both descending), so two pages never overlap.

Query

  • page — 1 or more, default 1.
  • per_page — optional, 1-500, default 100.
  • status — one of status below.
  • organization_id — subscriptions of one organization (UUID).
  • next_charge_from — subscriptions whose next charge is at or after this time (inclusive).
  • next_charge_to — subscriptions whose next charge is before this time (exclusive); must be later than next_charge_from when both are set.
    next_charge_at is a date; the filters read it as 00:00 UTC of that day. A subscription without a next charge (null) matches neither filter. Both times are ISO 8601 YYYY-MM-DDThh:mm[:ss[.ffffff]] with a time zone offset, Z, ±hh:mm or ±hhmm, e.g. 2026-01-01T00:00:00Z. Send + URL-encoded as %2B (next_charge_from=2026-01-01T02:00:00%2B02:00); a raw + reads as a space and is rejected.

An invalid value returns 422 with { "error": "..." }: page below 1, per_page out of range, an unknown or empty status (Parameter status must be one of the following: active / pending_cancellation / canceled / suspended), an empty or malformed time or one without an offset, next_charge_to not later than next_charge_from (next_charge_to must be after next_charge_from), or an id that is not a UUID (organization_id must be a valid UUID).

Success

200 OK:

{
  "data": [
    {
      "id": "....-a1",
      "status": "pending_cancellation",
      "created_at": "2026-01-05T09:12:44.120Z",
      "payment_interval": "monthly",
      "amount": 12.5,
      "currency": "USD",
      "payment_method": "credit_card",
      "next_charge_at": null,
      "canceled_at": "2026-03-02T10:00:00.000Z",
      "canceled_scheduled_at": "2026-04-05T00:00:00.000Z",
      "cancellation_details": { "reason": "too_expensive", "comment": "Moving to annual", "initiator": "buyer" },
      "organization": { "id": "....-b2", "name": "Contoso" },
      "product": { "id": "....-c3", "name": "Cloud Plan" },
      "order_id": "....-d4",
      "quantity": 1,
      "purchased_product_id": "....-e5",
      "device": { "id": "....-f6", "sn": "SN-0001" },
      "latest_payment_id": "....-a7",
      "latest_payment_status": "paid"
    }
  ],
  "page_info": { "has_next": false, "total_count": 1 }
}
  • amount — the recurring price of one unit, a JSON number in major units of currency (12.5 USD, 500 JPY), with a fraction when the amount has one. For a usage-based product it is the base monthly price, before usage. It is not the charged amount: see price in Get Subscription Invoice Items for each charge.
  • status:
    • active — charged every period.
    • pending_cancellation — canceled; runs until canceled_scheduled_at, then becomes canceled.
    • canceled — ended.
    • suspended — on hold and its license suspended; a paid renewal makes it active again.
  • payment_interval:
    • monthly — charged every month.
    • yearly — charged every year.
  • payment_method — as in Get Orders (credit_card, purchase_order, offline, lab).
  • next_charge_at — date (YYYY-MM-DD) of the next charge; null once a cancellation is scheduled (usage-based: the end of the cancellation month, for the final usage charge).
  • canceled_at — when the cancellation was requested; null if never canceled.
  • canceled_scheduled_at — when a scheduled cancellation takes effect; null otherwise.
  • cancellation_details — { reason, comment, initiator }, null if never canceled. reason and comment are what the canceling user entered. initiator:
    • buyer — canceled by the organization.
    • seller — canceled by a partner user.
    • system — canceled by Xyte (no user).
    • user — older cancellations, before buyer and seller were told apart.
  • organization — { id, name } of the buying organization.
  • order_id — the order that started the subscription (see Get Order). The subscription belongs to the product's owner; when a reseller sold the order, Get Order answers 404 for it.
  • quantity — the units bought in that order; null when it is not recorded.
  • device — { id, sn } of the device the subscription's license is assigned to; null when there is no license or it is not assigned.
  • latest_payment_id, latest_payment_status — the payment of the newest invoice item (see Get Subscription Invoice Items); null when it has no payment. latest_payment_status has the values of payment_status in Get Orders.
  • No buyer, address or card data is returned.
Query Params
integer

Page number, 1 or more, default 1

integer

Items per page. Optional, 1-500, default 100. Any other value returns 422.

string
enum

One of status.

Allowed:
string

Subscriptions of one organization (UUID).

string

Subscriptions whose next charge is at or after this time (inclusive). ISO 8601 with a time zone offset, e.g. 2026-01-01T00:00:00Z. Send + as %2B.

string

Subscriptions whose next charge is before this time (exclusive); must be later than next_charge_from when both are set. ISO 8601 with a time zone offset, e.g. 2026-01-01T00:00:00Z. Send + as %2B.

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json