Richiesta OTP

[baseUrl]/api/sync/v1/SendOTP

Descrizione

Questa API consente di richiedere l'invio di un codice OTP per verificare il recapito dell'utente oppure per confermare un'operazione.

Parametri Richiesta

Field Type Required Default Description Notes
Email string null Email dell'utente Richiesto se non si passa l'header AccessToken
OTPLength int 5 Lunghezza del codice OTP da inviare
INFO

L'Email è da passare nel caso di verifica del recapito mail del cliente.AccessToken nell'header.

Nel caso di conferma di operazione è necessario passare l'

Esempio Richiesta

OTP per verificare una mail

sh
curl --location '[baseUrl]/api/sync/v1/SendOTP' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Email":"mail",
    "OTPLength":4
}'

OTP per confermare un'operazione

sh
curl --location '[baseUrl]/api/sync/v1/SendOTP' \
--header 'AccessToken: {{token}}' \
--header 'Content-Type: application/json' \

--data-raw '{
    "OTPLength":4
}'

Risposta

JSON
{
  "statusCode": 200,
  "errorCode": null,
  "message": null,
  "result": {
    "totalCount": 0,
    "totalPages": 0,
    "page": 0,
    "count": 0,
    "records": null,
    "record": {
      "Token": "20ee9c849c734d98ad029f08e322c565",
      "Expiration": "2024-10-16T11:20:21.7488927+02:00"
    }
  },
  "debug": null
}