Vai al contenuto principale
GET
/
customerstats
/
customer
Singolo cliente
curl --request GET \
  --url https://app.xmenu.it/api/customerstats/customer \
  --header 'X-Api-Key: <api-key>'
{
"success": true,
"error": "<string>",
"message": "<string>",
"customer": {
"email": "<string>",
"uid": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"phone": "<string>",
"address": "<string>",
"number": "<string>",
"city": "<string>",
"province": "<string>",
"zip": "<string>",
"country": "<string>",
"orders_count": 123,
"pickup_orders_count": 123,
"delivery_orders_count": 123,
"offline_orders_count": 123,
"first_order": "<string>",
"last_order": "<string>",
"last_offline_order": "<string>",
"orders_total": 123,
"added": "<string>",
"signedup": true,
"signup_uid": "<string>",
"devices_unregistered": "<string>",
"code": "<string>",
"subrestaurant_code": "<string>",
"subrestaurant_uid": "<string>",
"signup_deleted": "<string>"
}
}

Autorizzazioni

X-Api-Key
string
header
obbligatorio

Chiave API del ristorante. Può essere ottenuta da Strumenti > Accesso API nella dashboard xMenu.

Parametri della query

restuid
string
obbligatorio

Identificativo univoco del ristorante

email
string

Indirizzo email del cliente (alternativa a uid)

uid
string

Identificativo univoco del cliente (alternativa a email)

Risposta

Risposta singolo cliente

success
boolean
obbligatorio

Stato dell'operazione:

  • false = Errore
  • true = Successo
error
string

Codice errore se l'operazione è fallita. Valori possibili:

  • CUSTOMER_NOT_FOUND = Cliente non trovato

Vedi Codici di errore per i codici di errore generali che possono verificarsi.

message
string

Descrizione testuale dell'errore se l'operazione è fallita

customer
object

Oggetto cliente