List subscriptions
Newest first.
apiKeyheader
AuthorizationBearer <token>lbp_test_... or lbp_live_...
status?stringValue in
"active""paused""cancelled""completed"plan_id?stringlimit?integerRange
1 <= value <= 100Default
20starting_after?stringSubscriptions
application/json- response
object*"list"Value in
"list"data*array<>has_more*booleancurl -X GET 'https://pay.piti.id/v1/billing/subscriptions'Contoh respons
{ "object": "list", "data": [ { "id": "string", "object": "subscription", "app_id": "string", "mode": "test", "plan_id": "string", "plan": { "id": "string", "name": "string", "amount": 0, "active": true, "interval": {}, "method": "any", "va_bank": "string" }, "status": "active", "customer": {}, "reference": "string", "metadata": {}, "start_at": "2019-08-24T14:15:22Z", "cycles": 0, "end_at": "2019-08-24T14:15:22Z", "invoices_issued": 0, "next_invoice_at": "2019-08-24T14:15:22Z", "paused_at": "2019-08-24T14:15:22Z", "cancelled_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" } ], "has_more": true}