v1

latestOpenAPI 3.0.02026-08-0610682246.0 KB
Stripe Payments

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.

post/blaize/payment/stripe/subscribe

Request body

product_idstring required

Product Id/slug

payment_methodstring required

Payment method from Stripe Elements UI.

plan_idstring
discount_codestring

Example request

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

Response

OK

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