Info

Created 21-09-2020 by Lavinia Gheghea

Revision



Description

The API allows you to login on database and retrieve the UID(Unique Identification Number)  to use on the other API functions.

Endpoints


POST: /portallogin


Parameters
 Name
 Description
 Type
 API-key - required
 Authorization Token 
 String(64)
Request Body
{
  "sEMail": "demo@smarttid.dk",
  "sPassword": "xxxx"
}
  

Curl example
curl -X POST "https://smartapi.smarttid.dk/portallogin" -H "accept: application/json" -H "API-Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"-H "Content-Type: application/json-patch+json" -d "{ \"sEMail\": \"demo@smarttid.dk\", \"sPassword\": \"xxxx\"}"

Response

200 (OK) : The UID, language and database version

Response Body
[
  {
    "UID": "2e60fb62-a23d-4a4d-9694-62064de3057c",
    "LanguageCode": "EN",
    "DatabaseVersion": "6.17.72"
  }
]
Response Headers
content-encoding: gzip 
 content-length: 138 
 content-type: application/json; charset=utf-8 
 date: Mon, 24 Aug 2020 09:24:44 GMT 
 server: Microsoft-IIS/10.0 
 vary: Accept-Encoding  x-powered-by: ASP.NET

400 (ERROR) : Error message

Response Body
Error message