Get Braintree client token
Returns the Braintree client token the browser uses to initialize the
Braintree JS SDK for this cart, scoped to the Braintree PaymentAccount
named by payment_account_id; paypal_enabled reports whether PayPal
funding is available through that account. Cart-token authenticated. Returns
422 when payment_account_id is missing, the account is not a Braintree
account, or token generation fails; 404 when the cart or payment account
is not found; and 410 when the cart has already been processed.
Path Parameters
Opaque cart token returned by the create-cart response. It scopes the request to a single cart and is the credential for these endpoints — cart-token authentication carried in the path, with no bearer token or API key.
Query Parameters
UUID of the Braintree PaymentAccount (configured gateway) that issues the
client token. Required; a missing value or a non-Braintree account returns
422.
Response
Client token
Success body for the Braintree client token.