Passa al contenuto principale

Loginโ€‹

[baseUrl]/api/sync/v1/login

Descrizioneโ€‹

Questa API consente di effettuare l'autenticazione utilizzando un nome utente e una password, e restituisce un token con validitร  temporanea.

Parametri Richiestaโ€‹

FieldTypeRequiredDefaultDescriptionNotes
UsernamestringN/ANome utente
PasswordstringN/APassword dell'utente

Esempio Richiestaโ€‹

JSON
{
"Username": "example_user",
"Password": "example_password"
}

Rispostaโ€‹

JSON
{
"statusCode": 200,
"errorCode": null,
"message": null,
"result": {
"IRID": 1
"UserID": 1,
"Username": "nome_utente",
"Denomination": "Nome Cognome",
"Surname": "Cognome",
"Name": "Nome",
"Token": "your_access_token_here",
"RefreshToken": "your_refresh_token_here".
"TokenExpiration": "2023-10-23T13:00:00Z"
},
"debug": {
"RequestTime": "2023-10-23T12:00:00Z",
"ResponseTime": "2023-10-23T12:00:02Z",
"Duration": "00:00:02",
"ClientIP": "192.168.0.1"
}
}