getSubscriptions
List subscriptions. Omit locationRef and customerRef to list subscriptions across all locations, or provide one to scope to a location or customer. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Filter by status, planRef, or createDate range (when the subscription was created).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getSubscriptions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of subscriptions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| order | No | Sort order as field:direction, where field is startDate, endDate, createDate or renewDate and direction is asc or desc, such as startDate:asc. Applies to a location's subscriptions and needs locationRef. Defaults to createDate:desc. | |
| status | No | Filter by status: 'active' started and not ended or canceled, 'scheduled' starts in the future, 'incomplete' setup not finished (such as an unsigned contract or an unpaid purchase), 'incompleteExpired' setup was never finished (the contract was declined or the payment canceled), 'canceled' canceled or ended, 'requested' asked for by a person and not approved by an administrator yet, 'declined' a request an administrator declined or nobody answered in time, 'withdrawn' a request the person took back. Defaults to active, scheduled and incomplete. Comma-separated, one or more of: active, scheduled, incomplete, incompleteExpired, canceled, requested, declined, withdrawn. | |
| planRef | No | UUID of the plan to filter subscriptions by. Applies to a location's or the network's subscriptions. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| customerRef | No | UUID of the customer whose subscriptions to list. | |
| locationRef | No | UUID of the location whose subscriptions to list. Omit locationRef and customerRef to list subscriptions across every location of the network, grouped by location. | |
| nextPageToken | No | Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. | |
| subscriptions | Yes |