Skip to content

Get all user subscriptions

GET
/user/{userId}/subscriptions
curl --request GET \
--url https://example.com/user/example/subscriptions \
--header 'Authorization: Bearer <token>'
userId
required
string

User subscriptions returned.

Media typeapplication/json
Array<object>

A period of access to the configured Abi service for a user.

object
subscriptionId

The unique identifier for the subscription.

string
userId

The Abi user identifier associated with the subscription.

string
active

Whether the subscription is active.

integer
Allowed values: 0 1
startSubscription

The UTC date on which the subscription starts.

string
endSubscription

The UTC date on which the subscription expires.

string
createdAt

The date and time the subscription was created in Abi.

string
canceledAt

The date and time the subscription was cancelled

string
renewFrom

The previous expired subscription that caused this renewal

string
Example
[
{
"subscriptionId": "8910zyx321cba",
"userId": "abi12345",
"active": 0,
"startSubscription": "2020-11-27",
"endSubscription": "2020-12-29",
"createdAt": "2020-11-27",
"canceledAt": "2020-12-13",
"renewFrom": "8910zyx123xxx"
}
]