POST | /dealers/authenticate | Authenticate with user name and password. Returns session token. Note: the token expires after 5 minutes of inactivity. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserName | query | string | Yes | User name for your account. |
Password | query | string | Yes | Password provided by your supplier. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | model | T | No | Result value |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
IsSuccessful | model | bool | No | Specifies if the operation was successful. |
ErrorMessage | model | string | No | States error message in case of unsuccessful operation. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
SessionToken | model | string | No | Session token to use in successive calls to the services. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /dealers/authenticate HTTP/1.1
Host: services.acct.2service.nl
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"UserName":"String","Password":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Result":{"SessionToken":"String"},"IsSuccessful":false,"ErrorMessage":"String"}