Subscription

User subscription management

Get subscription history

get
/subscription

Returns an array of JSON objects detailing the subscriptions the user has had. The active subscription (if any) will have isActive: true.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

Subscription history retrieved successfully

application/json
resultstring · enumRequiredExample: successPossible values:
get
/subscription

Claim a subscription by a code

post
/subscription

Applies a new subscription to the authenticated user immediately. Parameters are passed as JSON in the request body. The success response contains full subscription history, with the active subscription first in the subscriptions array.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
codestringRequired

Subscription claim code

Example: BCDF-FGHJ
Responses
chevron-right
200

Subscription was applied successfully

application/json
resultstring · enumRequiredExample: successPossible values:
post
/subscription

Last updated