Lewati ke konten

List subscriptions

Newest first.

Otorisasi

apiKey
headerAuthorizationBearer <token>

lbp_test_... or lbp_live_...

Parameter query

status?string
Value in"active""paused""cancelled""completed"
plan_id?string
limit?integer
Range1 <= value <= 100
Default20
starting_after?string

Body respons

Subscriptions

application/json
  1. response
object*"list"
Value in"list"
data*array<>
has_more*boolean
Contoh permintaan
curl -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}