Update Plan
Patches a subscription plan in place, or upgrades/downgrades it to a new plan when amount or items change.
Authorizations
JWT issued by POST /api/v1.1/access-token/b2b. Send Authorization: Bearer <token>.
Merchant API key (Credential.api_key). Required on every request.
Path Parameters
Body
Payload for UpdateSubscriptionPlanRequest. If amount or items is present, the service runs upgrade/downgrade (new plan, proration). Otherwise only cosmetic fields (name, merchant_reff_no, metadata) are patched on the existing plan.
New plan name.
255"Monthly Pro Subscription (Updated)"
New merchant reference number.
255"REF-0002"
New per-cycle charge in IDR. Mutually exclusive with items when upgrading.
x >= 0200000
New itemized pricing. Mutually exclusive with amount when upgrading.
1Free-form metadata to merge onto the plan.
How the proration charge is determined when upgrading. Defaults to auto.
auto, manual "auto"
When prorated_charge_mode is manual; use 0 to skip immediate proration charge. If positive, must meet the same IDR 10,000 card minimum as create/upgrade amounts.
x >= 050000
Response
SP000 Successfully — data is RecurringPlanData (includes upgrade when amount/items changed).
Merchant v2 envelope returned on a successful plan operation (SP000). Used by create (HTTP 201), show, update, and cancel (HTTP 200). The data.upgrade block is present only on an upgrade/downgrade.
