General Authentication & Example
Authentication
For Authentication each request to the service should have the following headers:
Host: https://<servername>.0.razorsync.com/ApiService.svc
Token: <enter your unique token here>
Content-Length: <length of the content>
Content-type: application/json
ServerName: <your portal name here>
Example POST (ex. “create” Customer data)
POST https://<your portal name here>.0.razorsync.com/ApiService.svc/Customer/Create HTTP/1.1
Content-Type: application/json
Token: <enter your unique token here>
Host: <your portal name here>.0.razorsync.com
Content-Length: <integer length of content>
Connection: Keep-Alive
ServerName: <your portal name here>
Example GET (ex. "retrieve" Customer data)
GET https://<your portal name here>.0.razorsync.com/ApiService.svc/Customer/1 HTTP/1.1
Content-Type: application/json
Token: <enter your unique token here>
Host: <your portal name here>.0.razorsync.com
Content-Length: 0
Connection: Keep-Alive
ServerName: <your portal name here>