Panduan integrasi OpenAPI JSON
Pilih endpoint

Paket aktif dan antre

GET
/subscriptions/current

Memerlukan scope subscriptions:read.

Authorization

BearerKey
headerAuthorizationBearer <token>

API key Tokotoken dari dashboard.

Response Body

Berhasil.

application/json
  1. response
active*|null
queued*|null
Example Request
curl -X GET 'https://tokotoken.co/v1/subscriptions/current' \  -H 'Authorization: Bearer <TOKOTOKEN_API_KEY>'
Example Response
{  "active": {    "id": "string",    "planId": "string",    "name": "string",    "status": "string",    "allowance": 0,    "remaining": 0,    "held": 0,    "available": 0,    "startsAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z"  },  "queued": {    "id": "string",    "planId": "string",    "name": "string",    "status": "string",    "allowance": 0,    "remaining": 0,    "held": 0,    "available": 0,    "startsAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z"  }}