Skip to Content

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.

Authorization

apiKey
headerAuthorizationBearer <token>

lbp_test_... or lbp_live_...

Path Parameters

id*string

Request Body

application/json
  1. body
name?string
Length1 <= length <= 100
active?boolean

Response Body

The plan

application/json
  1. response
id*string
object*"plan"
Value in"plan"
app_id*string
mode*string
Value in"test""live"
name*string
amount*integer
interval*
method*string
Value in"any""qris""va"
va_bank*string|null
expires_in*integer
active*boolean
metadata*
created_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://pay.piti.id/v1/billing/plans/plan_3G5g...' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "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"}