Skip to main content
PATCH

Authorizations

x-api-key
string
header
required

API key for authentication (required)

x-merchant-id
string
header
required

Merchant ID for identifying the merchant (required)

Path Parameters

id
string<uuid>
required

Subscription unique identifier

Body

application/json
newPlanId
string<uuid>
required

New plan ID to change to

Example:

"123e4567-e89b-12d3-a456-426614174010"

prorationBehavior
enum<string>
default:create_prorations

How to handle proration: create_prorations (deferred to next invoice), always_invoice (immediate charge), none (no proration for downgrades)

Available options:
create_prorations,
always_invoice,
none
Example:

"create_prorations"

prorationDate
string<date-time>

Effective date for the plan change (defaults to now)

Example:

"2026-01-16T00:00:00.000Z"

resetBillingCycle
boolean
default:false

Whether to reset the billing cycle anchor (start new period from change date)

Example:

false

Response

Plan changed successfully

subscription
object
required
proration
object | null