Pause a subscription
No invoices while paused.
apiKeyheader
AuthorizationBearer <token>lbp_test_... or lbp_live_...
id*stringThe subscription
application/json- response
id?stringobject?"subscription"Value in
"subscription"app_id?stringmode?stringValue in
"test""live"plan_id?stringplan?The plan as it is now (name, amount, period, method, and whether it is on).
status?stringValue in
"active""paused""cancelled""completed"customer?name, and email and phone when given.
reference?string|nullmetadata?start_at?stringFormat
date-timecycles?integer|nullend_at?|Format
date-timeinvoices_issued?integernext_invoice_at?|When the next period starts and its invoice is issued; null once cancelled or completed.
Format
date-timepaused_at?|Format
date-timecancelled_at?|Format
date-timecompleted_at?|Format
date-timecreated_at?stringFormat
date-timeinvoices?array<>curl -X POST 'https://pay.piti.id/v1/billing/subscriptions/sub_8Fq2.../pause'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" } } ]}