post
https://www.pelcro.com/api/v1/sdk/subscription/change
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Switch an existing subscription to a different plan (upgrade or downgrade). plan_id and subscription_id are required; address_id and source_id are optional. Proration, payment behavior, and the billing-cycle anchor are handled by the server. Returns the customer resource with a fresh JWT.
Example:
curl --request POST \
--url 'https://www.pelcro.com/api/v1/sdk/subscription/change?site_id=1232' \
--header 'Authorization: Bearer <JWT>' \
--header 'Content-Type: application/json' \
--data '{ "subscription_id": 4055, "plan_id": 4052 }'Notes
- Protected — requires the customer's JWT.
- FormRequest validation failures are
400; downstream/business failures return404with a friendly message.
