Vai al contenuto principale
GET
/
menu
/
product
Dettagli prodotto
curl --request GET \
  --url https://app.xmenu.it/api/menu/product \
  --header 'X-Api-Key: <api-key>'
{
  "success": true,
  "product": {
    "uid": "<string>",
    "category_uid": "<string>",
    "name": "<string>",
    "ingredients": "<string>",
    "price": 123,
    "prices_table": {},
    "image": "<string>",
    "allergens": [
      "<string>"
    ],
    "symbols": [
      "<string>"
    ],
    "suggested": true,
    "price_sale_alert": true,
    "price_sale_badge": 123,
    "checkout_selling": true,
    "url": "<string>",
    "hidden": true,
    "position": 123,
    "subrestaurant_uids": [
      "<string>"
    ],
    "ext_id": "<string>",
    "inherits_options": "sync",
    "options": [
      {
        "uid": "<string>",
        "name": "<string>",
        "short_name": "<string>",
        "type": "single",
        "min_selectable": 123,
        "max_selectable": 123,
        "max_quantity": 123,
        "note": "<string>",
        "hidden": true,
        "position": 123,
        "primary": true,
        "first_default": true,
        "show_caption": true,
        "print_caption": true,
        "subrestaurant_uids": [
          "<string>"
        ],
        "ext_id": "<string>",
        "option_values": [
          {
            "uid": "<string>",
            "name": "<string>",
            "short_name": "<string>",
            "price_operator": "+",
            "price_operand": 123,
            "hidden": true,
            "position": 123,
            "checked_default": true,
            "subrestaurant_uids": [
              "<string>"
            ],
            "restrict_to_primary_value_uids": [
              "<string>"
            ],
            "ext_id": "<string>"
          }
        ]
      }
    ]
  },
  "error": "<string>",
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://api-doc.xmenu.it/llms.txt

Use this file to discover all available pages before exploring further.

Autorizzazioni

X-Api-Key
string
header
obbligatorio

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

Parametri della query

uid
string
obbligatorio

Identificatore univoco prodotto

Risposta

Risposta prodotto

success
boolean
obbligatorio

Risultato dell'operazione: true se ha avuto successo, false se fallita

product
object

Prodotto del menu

error
string

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

  • PRODUCT_NOT_FOUND = Prodotto richiesto non trovato

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

message
string

Descrizione leggibile dell'errore se l'operazione è fallita