Skip to main content
Change what the subscription holds

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
items
object[]
required

What the subscription should consist of once the change is through - the price offered by GET /stripe/products and how many units of it to hold, replacing what it holds now.

Required array length: 1 element

Response

Returns the address of the invoice to settle, or none where the change needed no payment.

url
string<uri> | null

Address the caller should be sent to in order to carry on - typically a page hosted by an outside service, which is why it is handed over rather than called. It is empty where the request needed no such page.

Example:

"https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4e5"