POST api/v1/Token
Get a new Token. A token will allow you to access CaspitWeb for 10 minutes.
The time window is sliding. That is you get a new 10 minute window every time you access Caspit.
The token is relevant to only one busineess. If you have more than one business in your account
you will need to get a seperate token to each of them.
Request Information
URI Parameters
None.
Body Parameters
The details needed for generating a new access Token into CaspitWeb.
Request Formats
application/json, text/json
Sample:
{ "UserName": "sample string 1", "Password": "sample string 2", "OsekMorsheNumber": "sample string 3" }
application/xml, text/xml
Sample:
<CaspitTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.caspit.biz/2013/03"> <OsekMorsheNumber>sample string 3</OsekMorsheNumber> <Password>sample string 2</Password> <UserName>sample string 1</UserName> </CaspitTokenRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Description
A Token. Example: B0D18327C19E8AED74D9FB3BEF7B0C14D9E0F52B4016138E
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>