Paket aktif dan antre
GET
Memerlukan scope subscriptions:read.
BearerKeyheader
AuthorizationBearer <token>API key Tokotoken dari dashboard.
Berhasil.
application/json- response
active*|nullqueued*|nullcurl -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" }}