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.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
header Parameters
cookie
string

The session cookie.

Example: `blaize_session=...` (string)
Request Body schema: application/json
product_id
required
string

Product Id/slug

price_point_id
required
string

Price Point Id/slug

payment_nonce
required
string

Payment method nonce from Braintree drop-in UI

Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

post/blaize/payment/braintree/buy
Request samples
application/json
{
  • "product_id": "lifetime-membership",
  • "price_point_id": "gold-package",
  • "payment_nonce": "eyJ2ZXmsaW5nQW...(lots more random-looking characters)...dyZWmVubW8iOiJvZmYifQ=="
}
Response samples
application/json
{
  • "grant_id": "aa583cb8-51d1-4bd9-9ec7-3a43796ef8e5"
}