v1

latestOpenAPI 3.0.02026-08-0610682246.0 KB
Braintree Payments

Retrieve the Braintree token

Issues a Braintree client token for the current blaize session. This holds the user's userId if the user has an authenticated session. This token can be used to request a payment once.

get/blaize/payment/braintree/token

Query parameters

allowUnauthenticatedboolean

If tokens can be generated for unauthenticated user sessions - defaults to false.

Headers

cookiestring

The session cookie.

Response

OK

tokenstring

Example response

{
  "token": "eyJ2ZXmsaW5nQW...(lots more random-looking characters)...dyZWmVubW8iOiJvZmYifQ=="
}