Skip to content

Start the Stripe subscription (Deprecated)

Request

(Deprecated - use /zephr/subscribe) Uses the payment method info captured by the Stripe Elements UI to create a Stripe customer with a recurring payment. When Stripe responds successfully, the logged-in user will be temporarily granted all entitlements in the product's associated bundle.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Bodyapplication/json
product_idstringrequired

Product Id/slug

Example:"premium-access-monthly-recurring"
payment_methodstringrequired

Payment method from Stripe Elements UI.

Example:"pm_123456789"
plan_idstring
discount_codestring
{ "product_id": "premium-access-monthly-recurring", "payment_method": "pm_123456789" }

Responses

OK

Headers
any
Bodyapplication/json
grant_idstring

New grant of product bundle to user

clientSecretstring

reference to Stripe payment required to process payment in front end

paymentIntentStatusstring

status of the payment which may require further action

Response
{ "grant_id": "string", "clientSecret": "string", "paymentIntentStatus": "string" }