Skip to main content
GET
Get Braintree client token

Path Parameters

cart_token
string
required

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

payment_account_id
string
required

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.

client_token
string
required

Braintree client token used to initialize the Braintree JS SDK in the browser for this cart.

paypal_enabled
boolean
required

true when PayPal funding is available through the resolved Braintree account.

meta
object
required

Standard response metadata included on every response.