Example XML Request & Response - POST Candidate

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

Header:

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

Body:


<candidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <centres>
    <centre>
      <reference>btl001</reference>
    </centre>
   </centres>
  <dateOfBirth>1990-08-05</dateOfBirth>
  <email>email@btl.com</email>
 <expiryDate>2020-01-01T00:00:00</expiryDate>
  <firstName>Scott</firstName>
  <isExternal>true</isExternal>
  <lastName>Flockton</lastName>
  <reasonableAdjustments>true</reasonableAdjustments>
  <retired>false</retired>
  <subjects>
    <subject>
      <reference>03082016</reference>
    </subject>
    </subjects>
  <tеl>01274 203 270</tеl>
  <uln>1234567892</uln>
  <reference>sample string 3</reference>
</candidate>

Response:

<response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <reference>sample string 4</reference>
  <id>191</id>
  <href>https://...surpass.com/api/v2/Candidate/191</href>
  <errors i:nil="true" />
  <serverTimeZone i:nil="true" />
</response>

 

Feedback and Knowledge Base