Payments
Update the subscription
Updates an existing subscription to change the associated product and plan. Updating the subscription may modify the price of the subscription, and if so the balance will be billed immediately at a pro-rated amount. Parameters specific to the vendor may be specified to change the payment method for the subscription. Changing to a plan with a different billing frequency from the existing subscription is not supported for some payment providers (Braintree).
patch/zephr/subscriptions/:subscriptionId
Request
- Base URL: https://demo-site
- URL: https://demo-site/zephr/subscriptions/:subscriptionId
- Auth: one of:
- API key in cookie blaize_session
- API key in query parameter jwt
- API key in header x-blaize-jwt
- API key in header x-zephr-jwt
- HTTP bearer
- API key in cookie blaize_jwt
Headers
cookiestring
The session cookie.
Request body
Example request
{
"product_id": "premium-access-monthly-recurring",
"plan_id": "plan-5",
"vendor_fields": {
"payment_nonce": "eyJ2ZXmsaW5nQWdyZWmVubW8iOiJvZmYifQ=="
},
"navigated_from": "/some/path"
}Response
OK
Example response
{
"grant_id": "33d576c7-d036-40e7-8141-8a91998a5c79"
}Changes
No recorded changes to this operation across all 2 revisions of this API.