Renew subscription

Use this endpoint to create a new subscription.

Query Params
int32
required

The unique identifier of the site associated with your account.

int32
required

The unique identifier of the user.

Body Params
int32
required

The unique identifier of the subscription.

int32
required

The unique identifier of the plan.

int32

The unique identifier of user's shipping address

int32

The unique identifier of user's payment source, required if collection_method is charge_automatically

boolean

A boolean that determines whether the subscription will auto-renew or not at the end of the last phase. (overrides the plan configuration when set)

string

The campaign associated to the subscription. If the key does not already exist, it will be created. The campaign key must be between 3 and 191 characters in length and include only letters, numbers, dashes and underscores without space.

string
enum
Defaults to send_invoice

The payment collection method of subscription.

Allowed:
string

Coupon code

int32
required

Quantity

string
required

Subscription source ex(Web, phone, email)

boolean
Defaults to false

A boolean flag that, when true, deletes all scheduled future phases before adding a new renewal phase. Used primarily for save offer flows during cancellation to replace existing renewals with a single discounted phase.

Headers
string
required
Defaults to Bearer eyJ***
Responses

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