Login

This is how you can obtain the UID 

There are 2 cases:

1. If you work on SmartTId Portal  with username and password and you will obtain the UID by executing PortalLogin
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\"}"
where
API-key is the Authorization Token 
sEMail= your email address with which you make the account
 sPassword= the chosen password

Response:
[{"UID":"a6969eed-bc27-419c-b15c-92c136f70e0a","LanguageCode":"EN","DatabaseVersion":"6.17.77"}]

2.If you have Customer API key provided by us you will obtain the UID by executing APILogin
Example:
curl -X POST "https://smartapi.smarttid.dk/apilogin" -H "accept: application/json" -H "API-Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: multipart/form-data" -F "sAPIKey=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx"
where
API-key is the Authorization Token 
sAPIKey is the Customer API Key

Response:
[{"UID":"ab10aa82-6a72-4465-961f-0e5722cf60be","LanguageCode":"EN","DatabaseVersion":"6.17.77"}]