Change subscription

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 return 404 with a friendly message.
Query Params
int32
required
Body Params
int32
required
int32
required
int32
int32
Defaults to 1
int32
string
enum
Defaults to stripe
Allowed:
string
string | null
string
Headers
string
required
Defaults to Bearer <token>
Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json