<- Subscriptions API

Subscriptions API

Swap planBeta

POST

 /v2/subscriptions/{subscription_id}/swap-plan

Schedules a SWAP_PLAN action to swap a subscription plan in an existing subscription.

Permissions:CUSTOMERS_READ, PAYMENTS_WRITE, SUBSCRIPTIONS_WRITE, ITEMS_READ, ORDERS_WRITE, INVOICES_WRITE
Try in API Explorer
Link to section

Path parameters

Example code

Link to section

subscription_id

string

Required

The ID of the subscription to swap the subscription plan for.

Link to section

Request body

Link to section

new_plan_id

string

Required

Read only The ID of the new subscription plan.

Link to section

Response fields

Link to section

errors

Errors encountered during the request.

Show attributes
Link to section

subscription

The subscription with the updated subscription plan.

Show attributes
Link to section

actions

A list of a SWAP_PLAN action created by the request.

Show attributes

Error descriptions