Subscriptions
Create subscription
Search subscriptions
Retrieve subscription
Update subscription
Delete subscription action
Cancel subscription
List subscription events
Pause subscription
Resume subscription
Swap plan
Webhooks
subscription.created
subscription.updated
<- Subscriptions API
Subscriptions API
Version
2023-05-17
POST
/v2/subscriptions/{subscription_id}/swap-plan
Schedules a SWAP_PLAN action to swap a subscription plan in an existing subscription.
SWAP_PLAN
Guide
Subscriptions Guide
Example code
subscription_id
string
Required
The ID of the subscription to swap the subscription plan for.
new_plan_id
Read only The ID of the new subscription plan.
errors
Error [ ]
Errors encountered during the request.
subscription
Subscription
The subscription with the updated subscription plan.
actions
SubscriptionAction [ ]
A list of a SWAP_PLAN action created by the request.
400
Bad request
CUSTOMER_NOT_FOUND
The provided customer id can't be found in the merchant's customers list.
403
Forbidden
CARD_PROCESSING_NOT_ENABLED
The location provided in the API call is not enabled for credit card processing.