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 nonce.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
query Parameters
allowUnauthenticated
boolean

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

header Parameters
cookie
string

The session cookie.

Example: `blaize_session=...` (string)
Responses
200

OK

401

Unauthorized

get/blaize/payment/braintree/token
Response samples
application/json
{
  • "token": "eyJ2ZXmsaW5nQW...(lots more random-looking characters)...dyZWmVubW8iOiJvZmYifQ=="
}