Lewati ke konten

Resume a subscription

Invoicing continues from the next period; the periods missed while paused are not billed.

Otorisasi

apiKey
headerAuthorizationBearer <token>

lbp_test_... or lbp_live_...

Parameter path

id*string

Body respons

The subscription

application/json
  1. response
id?string
object?"subscription"
Value in"subscription"
app_id?string
mode?string
Value in"test""live"
plan_id?string
plan?

The plan as it is now (name, amount, period, method, and whether it is on).

status?string
Value in"active""paused""cancelled""completed"
customer?

name, and email and phone when given.

reference?string|null
metadata?
start_at?string
Formatdate-time
cycles?integer|null
end_at?|
Formatdate-time
invoices_issued?integer
next_invoice_at?|

When the next period starts and its invoice is issued; null once cancelled or completed.

Formatdate-time
paused_at?|
Formatdate-time
cancelled_at?|
Formatdate-time
completed_at?|
Formatdate-time
created_at?string
Formatdate-time
invoices?array<>
Contoh permintaan
curl -X POST 'https://pay.piti.id/v1/billing/subscriptions/sub_8Fq2.../resume'
Contoh respons
{  "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",  "invoices": [    {      "id": "string",      "object": "payment",      "app_id": "string",      "mode": "test",      "reference": "string",      "method": "qris",      "status": "pending",      "currency": "IDR",      "amount": 0,      "fee": 0,      "total": 0,      "net": 0,      "fee_payer": "merchant",      "refunded_amount": 0,      "paid_late": true,      "review_reason": "amount_mismatch",      "description": "string",      "customer": {},      "metadata": {},      "return_url": "string",      "checkout_url": "string",      "provider_ref": "string",      "qris": {        "content": "string",        "expires_at": "2019-08-24T14:15:22Z"      },      "va": {        "bank": "mandiri",        "bank_name": "string",        "number": "string"      },      "expires_at": "2019-08-24T14:15:22Z",      "paid_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "source": "api",      "created_by": {        "id": "string",        "name": "string"      },      "subscription": {        "id": "string",        "cycle": 0,        "period_start": "2019-08-24T14:15:22Z",        "period_end": "2019-08-24T14:15:22Z"      }    }  ]}