Braintree client token

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Generate a Braintree client token for the authenticated customer. Your front end passes this token to the Braintree JS SDK (Drop-in UI or Hosted Fields) to initialize and collect a payment method. The customer is taken from the JWT.

Example:

curl --request GET   --url 'https://www.pelcro.com/api/v1/sdk/payment/braintree/generate_client_token?site_id=1232'   --header 'Authorization: Bearer <JWT>'   --header 'Accept: application/json'

Important Behaviors

  • Requires an active Braintree gateway on the account.
  • Generate a fresh client token for each front-end payment session rather than caching it.
Query Params
int32
required
Headers
string
required
Defaults to Bearer <token>
string
Defaults to application/json
Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json