Developers · REST · v1

API

Read and change your menu, pick up orders, read your stock and send in what your till sold, from your own code. One key, JSON in and out.

Want an assistant to do it instead of code? The same account works from ChatGPT, Claude and Cursor through the MCP server.

Connecting a till? Connect a POS walks through it step by step: send a day’s sales, match the till’s items, see the stock go down.

Start in a minute

Make a key, then ask for your menus.

Your API keys
Terminal
export GUSTOQR_API_KEY="sk-…"

curl "https://api.gustoqr.com/v1/menus" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"

Basics

Base addresshttps://api.gustoqr.com/v1
Sign each requestAuthorization: Bearer sk-…
Read-only keysStart with gq_ro_. They answer every GET and refuse the rest with 403. Make one in the box above.
Limits1200 reads and 300 changes a minute per key. More
UndoThe menu as it was before each of its last 50 changes is kept, whether it came from the API, an assistant or the panel. Restore a version
FormatJSON, UTF-8. Send Content-Type: application/json with a body.
OpenAPI filehttps://api.gustoqr.com/v1/openapi.json, no key needed
PriceThe API is free on every plan. Orders, sent from waiters’ phones and by guests at a table to the bar and kitchen screens, come with Pro. Stock and the sales a till sends in come with Max.
Safe to repeatEvery GET, and every PUT: a day’s sales sent twice counts once. Retry them freely.
BrowsersAny origin may call it (CORS is open), but a key in a web page is a key anyone can read. Call from a server.

Errors

A failed request answers with its HTTP status and one shape:

JSON
{
  "error": {
    "code": "unauthorized",
    "message": "The API key is missing, wrong or deleted.",
    "docs": "https://www.gustoqr.com/docs/api"
  }
}
StatusCodeWhat happened
400invalid_jsonThe body is not a JSON object.
401unauthorizedThe key is missing, wrong or deleted.
403forbiddenYour plan or your role does not allow it.
403read_only_keyA read-only key tried to change something.
403needs_maxStock and POS sales need the Max plan or its trial.
404not_found, no_version, no_salesNo such thing, or it belongs to another account.
413too_large, too_many_lines, too_many_itemsThe body is over 2 MB, a day holds more than 5,000 different items, or a menu would know more than 3,000 till items.
422invalid_requestA field is missing or wrong. The message says which.
422invalid_day, invalid_source, no_lines, invalid_line, no_items, invalid_item, unknown_item, unknown_ingredientStock and POS sales: what is wrong with the day, a line or an item. The message names the line: lines[3]: quantity must be a number. Nothing of a refused request is kept.
429rate_limitedOver the limit for this minute. Retry-After says how long to wait.
503not_readyStock is being set up on our side. Try again in a few minutes.
5xxinternal_error, bad_gatewayOur side. Safe to retry a GET or a PUT.

Limits

WhatA minuteCounted
Reads (every GET)1200per key
Changes (POST, PATCH, PUT and DELETE)300per key
Without a key (the OpenAPI file, sign-in)300per address

Every answer says where you stand: RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset, the seconds until the count starts again. Over the limit you get a 429 with Retry-After.

A menu has two parts. menu_data is the content: its languages, then categories, each with its items. menu_style is the look. To change the content, read the menu, change menu_data and send it back whole.

Item fieldTypeWhat it is
idstringYours to choose, unique in the menu. Keep it stable: orders and translations follow it.
name, descriptionstringIn the menu’s main language. The other languages are translated for you.
pricenumberIn the menu’s currency, as guests read it: 12 or 12.5.
imagestringThe address of a photo.
dietary, allergensstring[]Diet tags and allergens shown on the item.

Fields you do not know are safe to leave as they are. Do not drop them when you send the menu back.

List menus

GET /menus

Every menu in the account, without its content.

Request
curl "https://api.gustoqr.com/v1/menus" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "menus": [
    {
      "id": 355,
      "name": "Sunset Cafe",
      "restaurant_name": "Sunset Cafe",
      "status": "published",
      "currency": "EUR",
      "url": "https://sunset-cafe.gustoqr.com",
      "visits": 1840,
      "qr_scans": 1215,
      "published_at": "2026-10-02T09:12:44Z",
      "updated_at": "2026-11-12T08:30:02Z"
    }
  ]
}

Create a menu

POST /menus

A new draft menu. Guests see nothing until it is published.

BodyTypeWhat it is
namerequiredstringThe menu’s name in your panel.
currencyrequiredstringISO 4217 code, such as USD, EUR or TRY.
restaurant_namestringThe venue’s name as guests read it. Defaults to name.
taglinestringOne line under the venue’s name.
menu_dataobjectThe content: languages, categories and their items.
Request
curl -X POST "https://api.gustoqr.com/v1/menus" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Sunset Cafe","currency":"EUR","restaurant_name":"Sunset Cafe"}'
Response
{
  "menu": {
    "id": 355,
    "name": "Sunset Cafe",
    "restaurant_name": "Sunset Cafe",
    "status": "draft",
    "currency": "EUR",
    "url": "https://sunset-cafe.gustoqr.com",
    "menu_data": {
      "languages": [
        "en",
        "de"
      ],
      "categories": [
        {
          "id": "cocktails",
          "name": "Cocktails",
          "items": [
            {
              "id": "negroni",
              "name": "Negroni",
              "description": "Gin, Campari, sweet vermouth.",
              "price": 12,
              "dietary": [
                "vegan"
              ],
              "allergens": []
            }
          ]
        }
      ]
    },
    "menu_style": {
      "menuPrimaryLanguage": "en"
    }
  }
}

Get a menu

GET /menus/:id

One menu with its content (menu_data) and its look (menu_style).

Request
curl "https://api.gustoqr.com/v1/menus/355" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "menu": {
    "id": 355,
    "name": "Sunset Cafe",
    "restaurant_name": "Sunset Cafe",
    "status": "published",
    "currency": "EUR",
    "url": "https://sunset-cafe.gustoqr.com",
    "menu_data": {
      "languages": [
        "en",
        "de"
      ],
      "categories": [
        {
          "id": "cocktails",
          "name": "Cocktails",
          "items": [
            {
              "id": "negroni",
              "name": "Negroni",
              "description": "Gin, Campari, sweet vermouth.",
              "price": 12,
              "dietary": [
                "vegan"
              ],
              "allergens": []
            }
          ]
        }
      ]
    },
    "menu_style": {
      "menuPrimaryLanguage": "en"
    }
  }
}

Update a menu

PATCH /menus/:id

Send only what changes. menu_data and menu_style are replaced whole, so read the menu, change it and send it back. On a published menu guests see the change at once; translations into the menu’s other languages follow by themselves. The menu as it was is kept as a version you can restore.

BodyTypeWhat it is
namestringThe menu’s name in your panel.
restaurant_namestringThe venue’s name as guests read it.
currencystringISO 4217 code. Prices are relabelled, not converted.
menu_dataobjectThe whole content.
menu_styleobjectThe whole look.
Request
curl -X PATCH "https://api.gustoqr.com/v1/menus/355" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"restaurant_name":"Sunset Cafe"}'
Response
{
  "menu": {
    "id": 355,
    "name": "Sunset Cafe",
    "restaurant_name": "Sunset Cafe",
    "status": "published",
    "currency": "EUR",
    "url": "https://sunset-cafe.gustoqr.com",
    "menu_data": {
      "languages": [
        "en",
        "de"
      ],
      "categories": [
        {
          "id": "cocktails",
          "name": "Cocktails",
          "items": [
            {
              "id": "negroni",
              "name": "Negroni",
              "description": "Gin, Campari, sweet vermouth.",
              "price": 12,
              "dietary": [
                "vegan"
              ],
              "allergens": []
            }
          ]
        }
      ]
    },
    "menu_style": {
      "menuPrimaryLanguage": "en"
    }
  }
}

List a menu’s versions

GET /menus/:id/versions

The menu as it was before each of its last 50 changes, newest first, whoever made them: source is panel (the owner or the panel’s assistant), api, mcp (a connected assistant) or restore. Edits in the panel save by themselves, so they are kept at most once every two minutes.

Request
curl "https://api.gustoqr.com/v1/menus/355/versions" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "versions": [
    {
      "id": "4812",
      "saved_at": "2026-11-12T18:04:11.000Z",
      "source": "mcp",
      "before": "Negroni: €12 → €13"
    }
  ]
}

Restore a version

POST /menus/:id/restore

Undo: puts the menu’s content and look back as a version has them, taking back the change it was kept before and every change after it. The menu as it was a moment ago is kept too, so a restore can be undone. Whether the menu is published does not change.

BodyTypeWhat it is
version_idstringThe version, from the list. Left out: the newest, which undoes the last change.
Request
curl -X POST "https://api.gustoqr.com/v1/menus/355/restore" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "restored": {
    "id": "4812",
    "saved_at": "2026-11-12T18:04:11.000Z",
    "source": "mcp",
    "before": "Negroni: €12 → €13"
  },
  "undo_version_id": "4815",
  "guests_see_it": "now"
}

Publish a menu

POST /menus/:id/publish

Makes a draft live at its own address.

BodyTypeWhat it is
custom_urlstringThe first part of the address: 3 to 30 letters, digits or hyphens.
Request
curl -X POST "https://api.gustoqr.com/v1/menus/355/publish" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"custom_url":"sunset-cafe"}'
Response
{
  "url": "https://sunset-cafe.gustoqr.com"
}

Menu analytics

GET /menus/:id/analytics

Visits, QR scans, orders and their value by day. Best sellers, top earners and the most viewed items come with Pro.

QueryTypeWhat it is
daysintegerHow far back, 1 to 365. Default 30.
Request
curl "https://api.gustoqr.com/v1/menus/355/analytics?days=30" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "analytics": {
    "summary": {
      "total_visits": 1840,
      "total_qr_scans": 1215,
      "total_orders": 96,
      "total_revenue": 2890.5
    },
    "daily_stats": [
      {
        "date": "2026-11-11",
        "visits": 71,
        "qr_scans": 48,
        "orders": 5,
        "revenue": 142
      }
    ],
    "popular_items": [],
    "earning_items": [],
    "hourly_distribution": {}
  }
}

List a menu’s items

GET /menus/:id/items

Every item of the menu once, in the menu’s order, with the id that orders, recipes and a till’s sales name it by. Lighter than reading the whole menu when all you need is the ids.

Request
curl "https://api.gustoqr.com/v1/menus/355/items" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "items": [
    {
      "id": "gin-tonic",
      "name": "Gin & Tonic",
      "section": "Long drinks",
      "price": 12
    },
    {
      "id": "negroni",
      "name": "Negroni",
      "section": "Cocktails",
      "price": 12
    }
  ]
}

Orders

List orders

GET /orders

Orders sent from waiters’ phones and by guests at a table, newest first: the table, what was ordered, its value at the menu’s prices and whether it is being made, ready or cancelled. An order split over the bar and kitchen screens comes once, with each screen’s part. Poll with date_from to pick up new ones. Orders come with Pro.

QueryTypeWhat it is
menu_idintegerOnly this menu’s orders.
statusstringOne status, several with commas, or all. preparing is being made, ready is made, cancelled was taken back; pending reads as preparing, served and paid as ready. One of: pending, preparing, ready, served, paid, cancelled, all.
date_fromstringA day (2026-11-01) or a moment (2026-11-01T18:00:00Z). Default: 7 days ago.
date_tostringThe same, for the end. Default: now.
Request
curl "https://api.gustoqr.com/v1/orders?status=preparing&date_from=2026-11-12" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "orders": [
    {
      "id": 9120,
      "menu_id": 355,
      "status": "preparing",
      "table_number": "7",
      "items": [
        {
          "id": "negroni",
          "name": "Negroni",
          "quantity": 2,
          "price": 12
        },
        {
          "id": "burrata",
          "name": "Burrata",
          "quantity": 1,
          "price": 7.5
        }
      ],
      "total_amount": 31.5,
      "note": "No ice in one",
      "waiter_name": "Deniz",
      "created_at": "2026-11-12T18:04:11Z",
      "screens": [
        {
          "name": "Bar",
          "status": "ready"
        },
        {
          "name": "Kitchen",
          "status": "preparing"
        }
      ]
    }
  ],
  "summary": {
    "total_orders": 1,
    "total_amount": 31.5,
    "pending_count": 0,
    "preparing_count": 1,
    "ready_count": 0
  }
}

Update an order’s status

PATCH /orders/:id

Marks an order made, or takes it back. ready (served and paid do the same) marks every part of it done on the bar and kitchen screens, and the phone that sent it hears it is ready. cancelled takes back the parts not made yet; a made order stays made. preparing and pending change nothing.

BodyTypeWhat it is
statusrequiredstringThe new status. One of: pending, preparing, ready, served, paid, cancelled.
Request
curl -X PATCH "https://api.gustoqr.com/v1/orders/9120" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"ready"}'
Response
{
  "order": {
    "id": 9120,
    "menu_id": 355,
    "status": "ready",
    "table_number": "7",
    "items": [
      {
        "id": "negroni",
        "name": "Negroni",
        "quantity": 2,
        "price": 12
      },
      {
        "id": "burrata",
        "name": "Burrata",
        "quantity": 1,
        "price": 7.5
      }
    ],
    "total_amount": 31.5,
    "note": "No ice in one",
    "waiter_name": "Deniz",
    "created_at": "2026-11-12T18:04:11Z",
    "screens": [
      {
        "name": "Bar",
        "status": "ready"
      },
      {
        "name": "Kitchen",
        "status": "ready"
      }
    ],
    "ready_at": "2026-11-12T18:11:40Z"
  }
}

Tables

List tables

GET /tables

The venue’s tables, as on its table QR codes, and whether an order is being made for each (occupied) or not (free).

QueryTypeWhat it is
menu_idintegerOnly this menu’s tables.
Request
curl "https://api.gustoqr.com/v1/tables?menu_id=355" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "tables": [
    {
      "id": "7",
      "table_number": "7",
      "menu_id": 355,
      "capacity": null,
      "location": null,
      "current_status": "occupied",
      "current_order_id": 9120
    }
  ]
}

Activity

Activity log

GET /logs

What happened at the venue: orders sent from waiters’ phones and by guests, each screen’s part made or cancelled, tables calling a waiter or asking for the bill, and a phone answering. The newest 500 in the period.

QueryTypeWhat it is
menu_idrequiredintegerThe menu whose venue you ask about.
date_fromstringA day (2026-11-01) or a moment (2026-11-01T18:00:00Z). Default: 30 days ago.
date_tostringThe same, for the end. Default: now.
typestringOnly one kind of entry: order (orders sent, made and cancelled), table (the tables’ calls and bill requests, and their answers) or waiter (what the waiters’ phones did: orders they sent, calls they answered). One of: order, payment, table, waiter.
waiter_namestringOnly what this phone did, by its name; Guest for guests’ own orders.
Request
curl "https://api.gustoqr.com/v1/logs?menu_id=355&date_from=2026-11-12" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "logs": [
    {
      "id": "answered_5521",
      "type": "table",
      "action": "Call answered",
      "details": "Answered in 40 s",
      "amount": null,
      "table_number": "4",
      "order_id": null,
      "waiter_name": "Deniz",
      "timestamp": "2026-11-12T18:09:02Z"
    },
    {
      "id": "order_9120",
      "type": "order",
      "action": "Order sent",
      "details": "2 × Negroni, 1 × Burrata",
      "amount": 31.5,
      "table_number": "7",
      "order_id": 9120,
      "waiter_name": "Deniz",
      "timestamp": "2026-11-12T18:04:11Z"
    }
  ]
}

Stock

Get the stock

GET /menus/:id/stock

What the venue has on hand, worked out on every read: what came in, less what was sold times each item’s recipe. Amounts are in the ingredient’s own unit (bottles, kilos, pieces). on_hand is null for an ingredient that never came in; days_left is null when none of it went out in the last 7 days. low is true under two days at this pace, or at or under the owner’s warning level (min). Stock comes with Max.

Request
curl "https://api.gustoqr.com/v1/menus/355/stock" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "stock": {
    "sales_from": "pos",
    "pos": {
      "since": "2026-11-01",
      "last_day": "2026-11-18",
      "last_received_at": "2026-11-19T02:14:09Z",
      "unmatched": 1
    },
    "ingredients": [
      {
        "key": "gin",
        "name": "Gin",
        "unit": "bottle",
        "base": "ml",
        "size": 700,
        "on_hand": 9.5,
        "used_7_days": 4.2,
        "days_left": 15.8,
        "low": false,
        "min": 2,
        "price": 14.5,
        "supplier": "ege-icecek"
      },
      {
        "key": "tonic",
        "name": "Tonic water",
        "unit": "bottle",
        "base": "pc",
        "size": 1,
        "on_hand": 31,
        "used_7_days": 58,
        "days_left": 3.7,
        "low": false,
        "min": null,
        "price": 0.6,
        "supplier": "ege-icecek"
      }
    ],
    "recipes": [
      {
        "item_id": "gin-tonic",
        "sold_7_days": 58,
        "ingredients": [
          {
            "ingredient": "gin",
            "amount": 50
          },
          {
            "ingredient": "tonic",
            "amount": 1
          }
        ]
      }
    ],
    "suppliers": [
      {
        "key": "ege-icecek",
        "name": "Ege İçecek",
        "phone": "+90 232 555 01 01",
        "email": null
      }
    ]
  }
}

Add goods that came in

POST /menus/:id/stock/receipts

A delivery: what came in and how much, in each ingredient’s own unit. It is on hand at once. A price, when given, is what one unit cost on this delivery.

BodyTypeWhat it is
linesrequiredarrayWhat came in.
lines[].ingredientrequiredstringThe ingredient’s key, from the stock.
lines[].quantityrequirednumberHow many units: 12 bottles, 2.5 kg. Below zero takes stock off (broken, lost, poured away).
lines[].pricenumberWhat one unit cost.
supplierstringThe supplier’s key, from the stock.
totalnumberThe delivery’s total, as on the invoice.
Request
curl -X POST "https://api.gustoqr.com/v1/menus/355/stock/receipts" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "supplier": "ege-icecek",
  "total": 181.2,
  "lines": [
    {
      "ingredient": "gin",
      "quantity": 12,
      "price": 14.5
    },
    {
      "ingredient": "tonic",
      "quantity": 12,
      "price": 0.6
    }
  ]
}'
Response
{
  "receipt": {
    "id": 5120,
    "at": "2026-11-19T10:02:41Z",
    "supplier": "ege-icecek",
    "total": 181.2,
    "lines": [
      {
        "ingredient": "gin",
        "quantity": 12,
        "price": 14.5
      },
      {
        "ingredient": "tonic",
        "quantity": 12,
        "price": 0.6
      }
    ]
  }
}

Take a delivery back

DELETE /menus/:id/stock/receipts/:receipt_id

Undo: what the delivery brought is no longer on hand.

PathTypeWhat it is
receipt_idrequiredintegerThe delivery, from the answer that added it.
Request
curl -X DELETE "https://api.gustoqr.com/v1/menus/355/stock/receipts/5120" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "removed": true
}

POS sales

Send a day’s sales

PUT /menus/:id/sales/:day

What the venue’s own till sold on one business day: one line per item, with how many. Stock takes it off what is on hand by each item’s recipe. Send the whole day; sent again, it replaces what the same source sent for that day, so a retry, a correction and the running totals during service are all this one request and nothing counts twice. Lines with the same code are added up. An empty lines array is a day on which nothing was sold. The answer says how each line was matched to a menu item; unmatched lines wait, and count from the moment they are matched. The step-by-step guide is at gustoqr.com/docs/pos. Comes with Max.

PathTypeWhat it is
dayrequiredstringThe business day, as the till closes it: 2026-11-18.
BodyTypeWhat it is
linesrequiredarrayOne line per item sold.
lines[].codestringThe till’s own number for the item (PLU, item id). Send it when the till has one: a match then survives the button being renamed. code or name is required.
lines[].namestringThe item as the till names it.
lines[].quantityrequirednumberHow many left the bar or kitchen that day: sold and on the house, less voids and refunds.
lines[].amountnumberWhat the line brought in, net, in the menu’s currency. Kept for reports; stock does not need it.
lines[].item_idstringThe GustoQR menu item this is, when you know it. It is then matched at once; a match made by hand (Match the till’s items) stays.
sourcestringWhich till, for a venue with more than one: 1 to 30 lowercase letters, digits, - or _. Each source replaces only its own day. Default pos.
totalnumberThe day’s net sales, as the till’s report has them.
Request
curl -X PUT "https://api.gustoqr.com/v1/menus/355/sales/2026-11-18" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "total": 1840.5,
  "lines": [
    {
      "code": "1042",
      "name": "GIN TONIC",
      "quantity": 24,
      "amount": 288
    },
    {
      "code": "1043",
      "name": "GIN TONIC DBL",
      "quantity": 5,
      "amount": 95
    },
    {
      "code": "2210",
      "name": "NEGRONI SBAGL",
      "quantity": 8,
      "amount": 104
    }
  ]
}'
Response
{
  "sales": {
    "day": "2026-11-18",
    "source": "pos",
    "received_at": "2026-11-19T02:14:09Z",
    "updated_at": "2026-11-19T02:14:09Z",
    "total": 1840.5,
    "line_count": 3,
    "quantity": 37,
    "matched": 2,
    "unmatched": 1,
    "ignored": 0,
    "without_recipe": 0,
    "lines": [
      {
        "code": "1042",
        "name": "GIN TONIC",
        "status": "matched",
        "item_id": "gin-tonic",
        "item_name": "Gin & Tonic",
        "portions": 1,
        "has_recipe": true,
        "matched_by": "name",
        "quantity": 24,
        "amount": 288
      },
      {
        "code": "1043",
        "name": "GIN TONIC DBL",
        "status": "matched",
        "item_id": "gin-tonic",
        "item_name": "Gin & Tonic",
        "portions": 2,
        "has_recipe": true,
        "matched_by": "owner",
        "quantity": 5,
        "amount": 95
      },
      {
        "code": "2210",
        "name": "NEGRONI SBAGL",
        "status": "unmatched",
        "item_id": null,
        "item_name": null,
        "portions": 1,
        "has_recipe": false,
        "matched_by": null,
        "quantity": 8,
        "amount": 104
      }
    ]
  }
}

List the days that came in

GET /menus/:id/sales

The days the till has sent, newest first, each with how many of its lines stock could use. A gap in the list is a day that never arrived. Without dates: the last 30 days.

QueryTypeWhat it is
date_fromstringThe first day: 2026-11-01.
date_tostringThe last day.
sourcestringWhich till, when the venue has more than one. Default pos.
Request
curl "https://api.gustoqr.com/v1/menus/355/sales?date_from=2026-11-01" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "sales": [
    {
      "day": "2026-11-18",
      "source": "pos",
      "received_at": "2026-11-19T02:14:09Z",
      "updated_at": "2026-11-19T02:14:09Z",
      "total": 1840.5,
      "line_count": 3,
      "quantity": 37,
      "matched": 2,
      "unmatched": 1,
      "ignored": 0,
      "without_recipe": 0
    }
  ]
}

Get one day

GET /menus/:id/sales/:day

One day line by line, as it stands now: a line matched since the day came in reads matched.

PathTypeWhat it is
dayrequiredstringThe business day, as the till closes it: 2026-11-18.
QueryTypeWhat it is
sourcestringWhich till, when the venue has more than one. Default pos.
Request
curl "https://api.gustoqr.com/v1/menus/355/sales/2026-11-18" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "sales": {
    "day": "2026-11-18",
    "source": "pos",
    "received_at": "2026-11-19T02:14:09Z",
    "updated_at": "2026-11-19T02:14:09Z",
    "total": 1840.5,
    "line_count": 3,
    "quantity": 37,
    "matched": 2,
    "unmatched": 1,
    "ignored": 0,
    "without_recipe": 0,
    "lines": [
      {
        "code": "1042",
        "name": "GIN TONIC",
        "status": "matched",
        "item_id": "gin-tonic",
        "item_name": "Gin & Tonic",
        "portions": 1,
        "has_recipe": true,
        "matched_by": "name",
        "quantity": 24,
        "amount": 288
      },
      {
        "code": "1043",
        "name": "GIN TONIC DBL",
        "status": "matched",
        "item_id": "gin-tonic",
        "item_name": "Gin & Tonic",
        "portions": 2,
        "has_recipe": true,
        "matched_by": "owner",
        "quantity": 5,
        "amount": 95
      },
      {
        "code": "2210",
        "name": "NEGRONI SBAGL",
        "status": "unmatched",
        "item_id": null,
        "item_name": null,
        "portions": 1,
        "has_recipe": false,
        "matched_by": null,
        "quantity": 8,
        "amount": 104
      }
    ]
  }
}

Take a day back

DELETE /menus/:id/sales/:day

Removes what a source sent for a day; stock no longer counts it. To correct a day, send it again instead.

PathTypeWhat it is
dayrequiredstringThe business day, as the till closes it: 2026-11-18.
QueryTypeWhat it is
sourcestringWhich till, when the venue has more than one. Default pos.
Request
curl -X DELETE "https://api.gustoqr.com/v1/menus/355/sales/2026-11-18" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "removed": true
}

List the till’s items

GET /menus/:id/pos-items

Every item the till has ever sent, the ones that wait first, then by how much they sold in 30 days. matched: stock counts it as that menu item. unmatched: it waits, and stock does not count it. ignored: marked as not stock (a service charge, a cover). has_recipe false on a matched item means it is counted as sold and nothing leaves the shelf until the owner gives the menu item a recipe in Stock.

QueryTypeWhat it is
statusstringOnly these. One of: matched, unmatched, ignored.
Request
curl "https://api.gustoqr.com/v1/menus/355/pos-items?status=unmatched" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "items": [
    {
      "code": "2210",
      "name": "NEGRONI SBAGL",
      "status": "unmatched",
      "item_id": null,
      "item_name": null,
      "portions": 1,
      "has_recipe": false,
      "matched_by": null,
      "last_sold": "2026-11-18",
      "sold_30_days": 61
    }
  ]
}

Match the till’s items

PUT /menus/:id/pos-items

Says which menu item a till item is. Only the items you name change. A match holds for the days already sent too: stock is worked out again with it at once. A till item may be matched before the till ever sends it. Answers with the whole list.

BodyTypeWhat it is
itemsrequiredarrayThe till items to change.
items[].codestringThe till’s number for the item, as it was sent. code or name is required; give the name alone only for an item the till sends without a code.
items[].namestringThe item as the till names it.
items[].item_idstringThe menu item it is, from the menu’s items. null takes the match back.
items[].portionsnumberHow many of the menu item one sale is: 2 for a double, 0.5 for a half. Default 1.
items[].ignorebooleantrue: not stock, never count it.
Request
curl -X PUT "https://api.gustoqr.com/v1/menus/355/pos-items" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "items": [
    {
      "code": "2210",
      "item_id": "negroni-sbagliato"
    },
    {
      "code": "1043",
      "item_id": "gin-tonic",
      "portions": 2
    },
    {
      "name": "SERVICE CHARGE",
      "ignore": true
    }
  ]
}'
Response
{
  "items": [
    {
      "code": "2210",
      "name": "NEGRONI SBAGL",
      "status": "matched",
      "item_id": "negroni-sbagliato",
      "item_name": "Negroni Sbagliato",
      "portions": 1,
      "has_recipe": true,
      "matched_by": "owner",
      "last_sold": "2026-11-18",
      "sold_30_days": 61
    }
  ]
}

Keys

Make a read-only key

POST /keys/read-only

The read-only form of the key you call with: it reads everything that key reads and changes nothing. Give it to dashboards, reports and assistants that only need to look. The same key always gives the same read-only key, and deleting the key cuts its read-only form off too. Limits are counted per key: 1200 reads and 300 changes a minute.

Request
curl -X POST "https://api.gustoqr.com/v1/keys/read-only" \
  -H "Authorization: Bearer $GUSTOQR_API_KEY"
Response
{
  "key": "gq_ro_Zk3…",
  "read_only": true
}

Help

Something missing or not working? Write to support@luvi.io and say what you are building.