POST v1/Customers/Braintree/OneTimeToken

Generates a one time braintree auth token

URI template

v1/Customers/Braintree/OneTimeToken

Request Information

URI Parameters

None.

Body Parameters

CustomerBraintree
NameDescriptionTypeAdditional information
CustomerId

Braintree customer id

globally unique identifier

None.

SiteId

Site Id that has a braintree config

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": "76dff3d9-f0c3-4701-9004-41c989c1038b",
  "SiteId": 2
}

application/xml, text/xml

Sample:
<CustomerBraintree xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineOrderingAPI.Models.v1">
  <CustomerId>76dff3d9-f0c3-4701-9004-41c989c1038b</CustomerId>
  <SiteId>2</SiteId>
</CustomerBraintree>

Response Information

Resource Description

Auth token or failure

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>