Skip to main content
POST
cURL
Patches customize over the subscription’s current terms and moves it onto them. Custom plans explains the fields.
  • at_renewal changes nothing now; the next period bills and grants the new terms.
  • now starts them at once, with no proration and no charge: the period’s allowance is the new one less what it used, and the renewal bills the new price.
  • A trialing subscription, one waiting on a payment or billed another way answers 409 subscription_not_movable; one with a plan change open, 409 pending_change.
  • Terms the plan rules refuse answer 400 invalid_customize.
Needs the Billing permission at Write.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subscriptionId
integer
required

The subscription's id from List customer subscriptions.

Required range: x <= 2147483647

Query Parameters

customerId
string
required

Your ID for the customer, such as your user ID.

Required string length: 1 - 255

Body

application/json
customize
object
required

This customer's own terms over the plan, for a sales-led deal: a price, credits, items or overage of their own. Ledger makes a private version of the plan for the customer, billed under its name; the same customize again reuses it. A plan with customOnly needs it.

timing
enum<string>
required

at_renewal: the new terms start with the next billing period, and nothing changes now. now: they start at once, with no proration and no charge; the period's allowance is the new one less what it already used, and the renewal bills the new price.

Available options:
at_renewal,
now

Response

The new terms, scheduled or applied

subscriptionId
integer
required
timing
enum<string>
required
Available options:
at_renewal,
now
status
enum<string>
required

scheduled: the new terms start at the renewal. applied: they are the subscription's terms now.

Available options:
scheduled,
applied
planId
string
required