Skip to content

Get subscription renewal history

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

Subscription renewal history 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"
}
]