Renew subscription

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

Overview

Renew an existing subscription onto a plan for the next term. plan_id and subscription_id are required; payment fields (source_id or payment_gateway + gateway_token), coupon_code, language, and address_id (when the plan ships) are optional. Returns the customer resource with a fresh JWT.

Example:

curl --request POST \
  --url 'https://www.pelcro.com/api/v1/sdk/subscription/renew?site_id=1232' \
  --header 'Authorization: Bearer <JWT>' \
  --header 'Content-Type: application/json' \
  --data '{ "subscription_id": 4055, "plan_id": 4051, "source_id": 9001 }'

Notes

  • Protected — requires the customer's JWT.
  • Validation failures and business errors return 400 with a message.
Query Params
int32
required
Body Params
int32
required
int32
required
string
string
enum
Defaults to stripe
Allowed:
string
int32
int32
string
string
int32
Defaults to 1
string
boolean
Defaults to false
string | null
string
string | null
string | null
string | null
enum
Allowed:
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