Public API reference
/Braintree Payments
v4 Public API reference
Authentication
Browser Feature Transformations
Decision Engine
Dynamic Offer Decision Engine
Dynamic Offer Promo Code Decision
OAuth Flow
Payments
Product Sharing
SDK Feature Decision Engine
Sessions
Stripe Payments
Third-Party Authentication
User
V4 Gifts
Web Analytics
Zephr Features
Component Library
Change the Stripe subscription price
Oauth2 Access Token
Subscription
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.
Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
- https://demo-sitehttps://demo-site/blaize/payment/braintree/token
curl -i -X GET \
'https://demo-site/blaize/payment/braintree/token?allowUnauthenticated=true' \
-H 'cookie: `blaize_session=...` (string)' \
-b '`blaize_session=...` (string)'Response
{ "token": "eyJ2ZXmsaW5nQW...(lots more random-looking characters)...dyZWmVubW8iOiJvZmYifQ==" }