Rename a plan or switch it off or on
Switched off, its subscriptions get no invoices (those periods are not billed later); switched on again, invoicing continues from the next period.
apiKeyheader
AuthorizationBearer <token>lbp_test_... or lbp_live_...
id*stringapplication/json- body
name?stringLength
1 <= length <= 100active?booleanThe plan
application/json- response
id*stringobject*"plan"Value in
"plan"app_id*stringmode*stringValue in
"test""live"name*stringamount*integerinterval*method*stringValue in
"any""qris""va"va_bank*string|nullexpires_in*integeractive*booleanmetadata*created_at*stringFormat
date-timecurl -X PATCH 'https://pay.piti.id/v1/billing/plans/plan_3G5g...' \ -H 'Content-Type: application/json' \ -d '{}'Contoh respons
{ "id": "string", "object": "plan", "app_id": "string", "mode": "test", "name": "string", "amount": 0, "interval": { "unit": "day", "count": 0 }, "method": "any", "va_bank": "string", "expires_in": 0, "active": true, "metadata": {}, "created_at": "2019-08-24T14:15:22Z"}