PITSTOP

For developers

PITSTOP API

Show a restaurant's live menu on its own website or a TV screen, or pull its orders into accounting software. Everything is read-only: nothing here can change a menu or an order.

1. Get a key

The restaurant owner makes one on their PITSTOP dashboard, under Other apps → API keys, and picks what it can read (menu, orders). The key is shown once. Keep it on your server: a key that can read orders must never be put in a web page.

2. Call the API

curl -H "Authorization: Bearer ps_your_key_here" \
  https://<pitstop-address>/api/v1/menu

What a menu looks like

{
  "restaurant": { "id": "…", "name": "Sharma Dhaba", "open_now": true,
                  "serves": { "dine_in": true, "takeaway": true, "delivery": false }, … },
  "sections": [
    { "name": "Main Course",
      "dishes": [
        { "id": "…", "name": "Kadai Paneer", "price": 240, "veg": true, "available": true,
          "image": "https://…/kadai-paneer.webp", "badges": ["bestseller"],
          "options": [
            { "group": "Portion", "required": true, "max": 1, "pricing": "size",
              "choices": [ { "id": "…", "name": "Half", "price": 150 },
                           { "id": "…", "name": "Full", "price": 240 } ] } ] } ] } ]
}

pricing is size when the choice's price is the dish's price (Half ₹150), or addwhen it's added on top (Extra cheese +₹30).

Rules

ONDC

PITSTOP is also an ONDC seller app for food (ONDC:RET11). Buyer apps on the network reach it through the Beckn protocol, not this API.

Questions? hello@pitstop.dev