Start the Stripe subscription (Deprecated)

(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.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
Request Body schema: application/json
product_id
required
string

Product Id/slug

payment_method
required
string

Payment method from Stripe Elements UI

Responses
200

OK

post/blaize/payment/stripe/subscribe
Request samples
application/json
{
  • "product_id": "premium-access-monthly-recurring",
  • "payment_method": "pm_123456789"
}
Response samples
application/json
{
  • "grant_id": "string",
  • "clientSecret": "string",
  • "paymentIntentStatus": "string"
}