POST v1/Customers/Braintree/OneTimeToken
Generates a one time braintree auth token
URI template
v1/Customers/Braintree/OneTimeTokenRequest Information
URI Parameters
None.
Body Parameters
CustomerBraintree| Name | Description | Type | Additional 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": "9a114dca-036b-40a4-909b-1f40f2085a95",
"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>9a114dca-036b-40a4-909b-1f40f2085a95</CustomerId> <SiteId>2</SiteId> </CustomerBraintree>
Response Information
Resource Description
Auth token or failure
stringResponse 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>