v1

latestOpenAPI 3.0.02026-08-0610682246.0 KB
Braintree Payments

Create a Braintree buy (one-off)

Uses the payment info captured by the braintree drop-in UI and encoded in the payment nonce to create a braintree customer and issue a one-off payment. When braintree responds successfully, the logged-in user will be granted all entitlements in the product's associated bundle.

post/blaize/payment/braintree/buy

Headers

cookiestring

The session cookie.

Request body

product_idstring required

Product Id/slug

price_point_idstring required

Price Point Id/slug

payment_noncestring required

Payment method nonce from Braintree drop-in UI.

Example request

{
  "product_id": "lifetime-membership",
  "price_point_id": "gold-package",
  "payment_nonce": "eyJ2ZXmsaW5nQW...(lots more random-looking characters)...dyZWmVubW8iOiJvZmYifQ=="
}

Response

OK

grant_idstring

New grant of product bundle to user.

Example response

{
  "grant_id": "aa583cb8-51d1-4bd9-9ec7-3a43796ef8e5"
}