Customers
List customer subscriptions
Lists all subscriptions for a customer.
get/api/v1/customers/{customerIdOrKey}/subscriptions
Request
- Base URLhttps://openmeter.cloud (the document declares no server; this is the origin it was published from)
- Auth
- HTTP bearer
- or API key in cookie __session
Path parameters
Example:01G65Z755AFWAKHE12NY0CQ9FH
Query parameters
statusSubscription Status[]
order'ASC' | 'DESC'
The order direction.
orderBy'activeFrom' | 'activeTo'
Order by options for customer subscriptions.
The order by field.
pageinteger
Page index.
Default is 1.
pageSizeinteger
The maximum number of items per page.
Default is 100.
Response
The request has succeeded.
Example response
{
"items": [
{
"activeFrom": "2023-01-01T01:01:01.001Z",
"activeTo": "2023-01-01T01:01:01.001Z",
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"billingAnchor": "2023-01-01T01:01:01.001Z",
"billingCadence": "P1M",
"costBasisPins": [
{
"costBasisId": "01G65Z755AFWAKHE12NY0CQ9FH",
"customCurrencyId": "01G65Z755AFWAKHE12NY0CQ9FH",
"invoiceCurrency": "USD"
}
],
"createdAt": "2024-01-01T01:01:01.001Z",
"currency": "USD",
"customerId": "01G65Z755AFWAKHE12NY0CQ9FH",
"deletedAt": "2024-01-01T01:01:01.001Z",
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"plan": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"updatedAt": "2024-01-01T01:01:01.001Z"
}
],
"page": 1,
"pageSize": 100,
"totalCount": 500
}Changes
No recorded changes to this operation across all 2 revisions of this API.