POST v1/Customers/Braintree/OneTimeToken
Generates a one time braintree auth token
URI template
v1/Customers/Braintree/OneTimeTokenRequest Information
URI Parameters
None.
Body Parameters
CustomerBraintreeName | 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": "dd6d69b6-8834-4d57-885f-277a7e7d106d", "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>dd6d69b6-8834-4d57-885f-277a7e7d106d</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>