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": "9ed20dd2-9d61-4302-96f0-8a0dccd8f5d2",
"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>9ed20dd2-9d61-4302-96f0-8a0dccd8f5d2</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>