Clients / Braintree Client Token





Name

Clients / Braintree Client Token

Description

Retrieve a Braintree Client Token for use with their Drop-In UI or Hosted Fields

Type

POST

URL

/v9/clients/:client_id/braintree_client_token

Credential Type

API|User



Description

Retrieve a Braintree Client Token for use with their Drop-In UI or Hosted Fields for securely tokenizing a customer’s credit card.

 

Requires Braintree Gateway Integration

You must have an active account with our Braintree Gateway which allows storage and handling of credit cards in a PCI Compliant manner utilizing Braintree's Secure Vault.

Braintree also has extensive documentation for testing credit cards in Sandbox which details how you can use different card numbers and amounts to simulate various scenarios. 

Parameters

Name

Description

Type

Presence

Location

Limitations

Name

Description

Type

Presence

Location

Limitations

client_id

ID of the Client for which to retrieve a Braintree Client Token

Integer

Required

URI

 

 

Note that this endpoint is a POST so that in the future additional parameters may be accepted in the POST body.

Examples

Request

Response

Request

Response

POST v9/clients/1234567/braintree_client_token

{ "client_token": "zhJ2ZXJzaW9uI… …b0NvZGUiOiJVU0QifX0=" }