v1

latestOpenAPI 3.0.02026-08-0610682246.0 KB
Stripe Payments

Create a Stripe one-off payment

Uses the payment method collected by Stripe Elements to create a one off payment.

post/blaize/payment/stripe/buy

Request body

product_idstring required

Product ID/slug

price_point_idstring required

Price Point ID/slug

payment_methodstring required

Payment method from Stripe Elements UI.

payment_intent_idstring

PaymentIntent ID returned after confirming a card payment.

Example request

{
  "product_id": "lifetime-membership",
  "price_point_id": "gold-package",
  "payment_method": "pm_123456789",
  "payment_intent_id": "pi_1GYZYWLgUJT2XNPAYQMomeqf"
}

Response

OK

grant_idstring

New grant of product bundle to user

client_secretstring

Reference to Stripe payment required to process payment in front end.

payment_intent_idstring

Reference to the payment intent if payment requires confirmation.

Example response

{
  "grant_id": "aa583cb8-51d1-4bd9-9ec7-3a43796ef8e5",
  "client_secret": "src_client_secret_QfsM25CJ2uCMon72MiOmUNTj`",
  "payment_intent_id": "pi_1GYZYWLgUJT2XNPAYQMomeqf"
}