Example XML Request & Response - POST Token

https://...surpass.com/api/v2/Token/

Header:

Content-length: 74
Content-type: application/xml
Accept: application/xml
Authorization: Basic Q1RMRGVtbzpQYXNzd29yZa==

Body:


<TokenCreateResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SurpassApiSdk.DataContracts.Token">

  <Keycode>sample string 1</Keycode>

</TokenCreateResource>
 

Response:

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">

  <reference>34109491af684f5a8cb5fcc3</reference>

  <id i:nil="true" />

  <href i:nil="true" />

  <errors i:nil="true" />

  <serverTimeZone>GMT Standard Time</serverTimeZone>

  <keycode>PJ98YT8P</keycode>

</response>

Feedback and Knowledge Base