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
Request
- Base URL: https://demo-site
- URL: https://demo-site/blaize/payment/braintree/token
- Auth: one of:
- API key in cookie blaize_session
- API key in query parameter jwt
- API key in header x-blaize-jwt
- API key in header x-zephr-jwt
- HTTP bearer
- API key in cookie blaize_jwt
Query parameters
allowUnauthenticatedboolean
If tokens can be generated for unauthenticated user sessions - defaults to false.
Headers
cookiestring
The session cookie.
Response
OK
Example response
{
"token": "eyJ2ZXmsaW5nQW...(lots more random-looking characters)...dyZWmVubW8iOiJvZmYifQ=="
}Changes
No recorded changes to this operation across all 2 revisions of this API.