{
  "info": {
    "name": "Fravolo Partner API (Public)",
    "_postman_id": "b1a7e0c2-0001-4a10-9f00-fravolopartner01",
    "description": "The public API a restaurant's own website uses to show its menu, check serviceability and delivery fees, let a diner sign in, place and pay for an order, and track it. Full reference: https://fravolo.com/developers\n\n## Setup\nCreate a website key in the Fravolo console as the owner (Setup → Website connection). You get a key id `pk_…` and a secret `sk_…` (shown once). Keep both on your server: never put either in a browser or app. The same page shows your restaurant id (`ten_…`).\n\nSet these collection variables:\n- `base_url`: `https://fravolo.com/api` (production) or `http://localhost:8080` (a local API without the edge)\n- `rid`: the restaurant id (`ten_…`)\n- `website_key_id`: `pk_…`\n- `website_secret`: `sk_…`\n\nThen run the requests in order: **Get menu** stores the first orderable item in `item_id` (and the choices it needs in `item_modifiers`), **Address autocomplete** stores the first suggestion in `place_id`, **Verify OTP** stores the diner tokens, **Create order** stores `order_id` / `order_code`.\n\n## Signing\nThe collection's pre-request script signs every call, adding four headers:\n- `X-Fravolo-Key`: the `pk_…` id\n- `X-Fravolo-Timestamp`: unix seconds (within ±5 min of server time)\n- `X-Fravolo-Nonce`: random, single-use, 16–128 characters (replays are rejected)\n- `X-Fravolo-Signature`: `hex(HMAC-SHA256(secret, stringToSign))`\n\n`stringToSign` is five lines joined by `\\n`:\n```\nUPPERCASE(METHOD)\nPATH?QUERY            (the request-target exactly as sent, percent-encoded; /api/v1/… through https://fravolo.com/api)\nTIMESTAMP\nNONCE\nhex(sha256(rawBody))  (sha256 of the empty string for GET)\n```\nEvery signing failure is the same `401 {\"error\":\"unauthorized\"}`. A key for another restaurant gets `403 restaurant_mismatch`.\n\n## Headers your website adds\n- `X-Fravolo-Customer`: the signed-in diner's access token, on customers/me, create order, pay, my orders and track. It lasts 15 minutes; use **Refresh diner token** (refresh tokens rotate: keep the new one).\n- `X-Fravolo-Client-IP`: the shopper's IP as your site saw it, on customers/otp/send and every places call. Those limits are per key + shopper IP; without it all your shoppers share one bucket.\n\n## Orders\n- `date` (YYYY-MM-DD) and `time` (HH:MM) are required on quote and create, in the restaurant's time zone. Today needs 3 hours' notice; at most 60 days ahead. This collection defaults `order_date` to two days from now and `order_time` to 13:00.\n- Modifiers are `{group, option}` names from the menu; prices always come from the menu.\n- The phone is read with the restaurant's country code (send E.164 to be safe).\n- Orders go to the restaurant's main (HQ) outlet.\n- Order codes are `<PREFIX>-YYYYMMDD-XXXXXX`, e.g. `FV-20261123-7K3Q9M`.\n- There is no outbound webhook: poll **Track order** for status.\n\n## Limits\n300 requests/min per calling IP; 1,200/min per key; the restaurant's plan limit (600/min on the free plan); sign-in codes 10/hour per key + client IP and 500/day per key; address search 120/hour per key + client IP and 3,000/day per key; 3 unfinished website orders per diner. Over a limit: `429 {\"error\":\"rate_limited\",\"retry_in\":…}`.\n\nErrors are `{\"error\":\"<code>\",\"message\":\"…\",\"request_id\":\"…\"}`; also 413 body_too_large (over 64 KB), 403/503 restaurant_unavailable and 503 moving (`retry_in`). X-RateLimit-* headers come only from the per-IP, per-key and per-shopper limiters, not the plan limit. The full list is on https://fravolo.com/developers.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// Default the order date to two days from now (always in the future, and",
          "// clear of the 3-hour same-day notice, in any time zone).",
          "if (!pm.collectionVariables.get('order_date')) {",
          "  const d = new Date(Date.now() + 2 * 24 * 3600 * 1000);",
          "  const pad = (n) => String(n).padStart(2, '0');",
          "  pm.variables.set('order_date', d.getFullYear() + '-' + pad(d.getMonth() + 1) + '-' + pad(d.getDate()));",
          "}",
          "if (!pm.collectionVariables.get('order_time')) { pm.variables.set('order_time', '13:00'); }",
          "",
          "// Fravolo website-key request signing (HMAC-SHA256).",
          "const CryptoJS = require('crypto-js');",
          "const keyId = pm.collectionVariables.get('website_key_id');",
          "const secret = pm.collectionVariables.get('website_secret');",
          "if (!keyId || !secret) { console.warn('Fravolo: set website_key_id (pk_...) and website_secret (sk_...) in collection variables'); return; }",
          "const ts = Math.floor(Date.now() / 1000).toString();",
          "const nonce = CryptoJS.lib.WordArray.random(16).toString(CryptoJS.enc.Hex);",
          "const method = pm.request.method.toUpperCase();",
          "// The request-target exactly as sent: with base_url https://fravolo.com/api",
          "// that is /api/v1/partner/...; keep query values percent-encoded.",
          "const full = pm.variables.replaceIn(pm.request.url.toString());",
          "const pathQuery = full.replace(/^[a-zA-Z]+:\\/\\/[^/]+/, '');",
          "let body = '';",
          "if (pm.request.body && pm.request.body.mode === 'raw' && pm.request.body.raw) {",
          "  body = pm.variables.replaceIn(pm.request.body.raw);",
          "}",
          "const bodyHash = CryptoJS.SHA256(body).toString(CryptoJS.enc.Hex);",
          "const stringToSign = [method, pathQuery, ts, nonce, bodyHash].join('\\n');",
          "const sig = CryptoJS.HmacSHA256(stringToSign, secret).toString(CryptoJS.enc.Hex);",
          "pm.request.headers.upsert({ key: 'X-Fravolo-Key', value: keyId });",
          "pm.request.headers.upsert({ key: 'X-Fravolo-Timestamp', value: ts });",
          "pm.request.headers.upsert({ key: 'X-Fravolo-Nonce', value: nonce });",
          "pm.request.headers.upsert({ key: 'X-Fravolo-Signature', value: sig });"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://fravolo.com/api"
    },
    {
      "key": "rid",
      "value": "ten_REPLACE_WITH_RESTAURANT_ID"
    },
    {
      "key": "website_key_id",
      "value": "pk_REPLACE"
    },
    {
      "key": "website_secret",
      "value": "sk_REPLACE"
    },
    {
      "key": "client_ip",
      "value": "203.0.113.10"
    },
    {
      "key": "diner_email",
      "value": "diner@example.com"
    },
    {
      "key": "diner_phone",
      "value": "+447700900123"
    },
    {
      "key": "item_id",
      "value": ""
    },
    {
      "key": "item_modifiers",
      "value": "[]"
    },
    {
      "key": "order_date",
      "value": ""
    },
    {
      "key": "order_time",
      "value": ""
    },
    {
      "key": "diner_access",
      "value": ""
    },
    {
      "key": "diner_refresh",
      "value": ""
    },
    {
      "key": "order_id",
      "value": ""
    },
    {
      "key": "order_code",
      "value": ""
    },
    {
      "key": "places_session",
      "value": "sess-0001"
    },
    {
      "key": "place_id",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Menu & discovery",
      "item": [
        {
          "name": "Get menu → saves item_id",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Store the first orderable item and the choices it needs, for the quote and order bodies.",
                  "const j = pm.response.json();",
                  "const item = (j.items || []).find((i) => i.available);",
                  "if (!item) { console.warn('Fravolo: no orderable item on the menu'); return; }",
                  "const mods = [];",
                  "(item.modifiers || []).forEach((g) => {",
                  "  let need = g.min_pick || 0;",
                  "  if (g.required && need < 1) need = 1;",
                  "  (g.options || []).slice(0, need).forEach((o) => mods.push({ group: g.name, option: o.name }));",
                  "});",
                  "pm.collectionVariables.set('item_id', item.id);",
                  "pm.collectionVariables.set('item_modifiers', JSON.stringify(mods));",
                  "console.log('item_id =', item.id, item.name, 'modifiers =', JSON.stringify(mods));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/menu",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "menu"
              ]
            },
            "description": "The live menu of the restaurant's main (HQ) outlet: `{restaurant:{id,name}, categories:[…], items:[{id, category_id, name, description, base_price, tax_percent, modifiers:[{name, required, min_pick, max_pick, options:[{name, price_diff}]}], available, is_veg, spice, image_url}]}`. Amounts are minor units of the restaurant's currency. The test script stores the first item with `available:true` in `item_id`, and the options its required groups need in `item_modifiers`."
          }
        },
        {
          "name": "Address autocomplete (places) → saves place_id",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (j.suggestions && j.suggestions.length) {",
                  "  pm.collectionVariables.set('place_id', j.suggestions[0].id);",
                  "  console.log('place_id =', j.suggestions[0].id, j.suggestions[0].main);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-Fravolo-Client-IP",
                "value": "{{client_ip}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/places?q=main%20street&session={{places_session}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "places"
              ],
              "query": [
                {
                  "key": "q",
                  "value": "main%20street"
                },
                {
                  "key": "session",
                  "value": "{{places_session}}"
                }
              ]
            },
            "description": "Address autocomplete for the delivery address field (Google-backed; India only today). `q` is 3–120 characters, percent-encoded exactly as sent and signed. `session` groups one search's keystrokes and the final pick. Send the shopper's IP in X-Fravolo-Client-IP. Returns `{suggestions:[{id, main, secondary}]}`. Errors: 422 invalid, 503 places_off, 502 places_unavailable."
          }
        },
        {
          "name": "Place details",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-Fravolo-Client-IP",
                "value": "{{client_ip}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/places/{{place_id}}?session={{places_session}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "places",
                "{{place_id}}"
              ],
              "query": [
                {
                  "key": "session",
                  "value": "{{places_session}}"
                }
              ]
            },
            "description": "Resolves a picked suggestion id to `{id, formatted, line1, line2, city, pincode, lat, lng}` for the delivery address."
          }
        },
        {
          "name": "Reverse geocode",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-Fravolo-Client-IP",
                "value": "{{client_ip}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/places/reverse?lat=12.9716&lng=77.5946",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "places",
                "reverse"
              ],
              "query": [
                {
                  "key": "lat",
                  "value": "12.9716"
                },
                {
                  "key": "lng",
                  "value": "77.5946"
                }
              ]
            },
            "description": "Turns a map pin into an address (`{formatted, line1, line2, city, pincode, lat, lng}`). India only today; elsewhere 422 invalid."
          }
        }
      ]
    },
    {
      "name": "Serviceability & delivery fee",
      "item": [
        {
          "name": "Quote (delivery): serviceability + courier fee",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/orders/quote",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "orders",
                "quote"
              ]
            },
            "description": "Prices the cart server-side (same body as Create order). `date`/`time` are required, in the restaurant's time zone (today needs 3 hours' notice; at most 60 days ahead), else 422 bad_schedule. For delivery with an address it prices the courier live and returns `delivery_fee`, or a flat fee when the restaurant has no courier partner; not serviceable → 422 not_deliverable. Returns `{items, subtotal, discount, delivery_fee, taxable, cgst, sgst, tax, round_off, total, tax_inclusive, tax_name, same_day, shortages}`. Replace the sample address with a real one in the restaurant's delivery area.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    { \"item_id\": \"{{item_id}}\", \"qty\": 2, \"modifiers\": {{item_modifiers}} }\n  ],\n  \"fulfillment\": \"delivery\",\n  \"address\": { \"line1\": \"1 Example Street\", \"line2\": \"\", \"city\": \"Example City\", \"pincode\": \"12345\", \"lat\": 0, \"lng\": 0, \"landmark\": \"\" },\n  \"date\": \"{{order_date}}\",\n  \"time\": \"{{order_time}}\",\n  \"payment_method\": \"online\",\n  \"name\": \"Sam Example\",\n  \"phone\": \"{{diner_phone}}\",\n  \"notes\": \"\"\n}"
            }
          }
        },
        {
          "name": "Quote (pickup)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/orders/quote",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "orders",
                "quote"
              ]
            },
            "description": "Pickup quote: no address, no delivery fee.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [ { \"item_id\": \"{{item_id}}\", \"qty\": 1, \"modifiers\": {{item_modifiers}} } ],\n  \"fulfillment\": \"pickup\",\n  \"date\": \"{{order_date}}\",\n  \"time\": \"{{order_time}}\",\n  \"payment_method\": \"cod\",\n  \"name\": \"Sam Example\",\n  \"phone\": \"{{diner_phone}}\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Diner sign-in",
      "item": [
        {
          "name": "Send OTP (email)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-Fravolo-Client-IP",
                "value": "{{client_ip}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/customers/otp/send",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "customers",
                "otp",
                "send"
              ]
            },
            "description": "Emails a one-time code to the shopper. Returns `{channel, expires_in, retry_after}` (plus `dev_code` only on a test server with a stub mail provider). Errors: 429 cooldown_active (`retry_after`), 503 email_unavailable, 422 invalid_email, 403 phone_sign_in_off (phone sign-in is off). Limits: 10/hour per key + X-Fravolo-Client-IP, 500/day per key.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"{{diner_email}}\"\n}"
            }
          }
        },
        {
          "name": "Verify OTP (email) → saves diner tokens",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (j.tokens) {",
                  "  pm.collectionVariables.set('diner_access', j.tokens.access_token);",
                  "  pm.collectionVariables.set('diner_refresh', j.tokens.refresh_token);",
                  "  console.log('diner signed in:', j.customer && j.customer.email);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/customers/otp/verify",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "customers",
                "otp",
                "verify"
              ]
            },
            "description": "Verifies the code. Returns `{tokens:{access_token, refresh_token, expires_in, token_type}, customer:{id, email, phone, name}}`; the access token lasts 15 minutes. The test script stores both tokens. Errors: 400 invalid_code, 400 code_expired, 429 too_many_attempts.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"{{diner_email}}\",\n  \"code\": \"123456\"\n}"
            }
          }
        },
        {
          "name": "Refresh diner token",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (j.access_token) {",
                  "  pm.collectionVariables.set('diner_access', j.access_token);",
                  "  pm.collectionVariables.set('diner_refresh', j.refresh_token);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/customers/refresh",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "customers",
                "refresh"
              ]
            },
            "description": "Returns a new `{access_token, refresh_token, expires_in, token_type}`. Refresh tokens rotate: the old one stops working, keep the new one. 401 diner_signed_out when it is no longer valid.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"refresh_token\": \"{{diner_refresh}}\"\n}"
            }
          }
        },
        {
          "name": "Logout diner",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-Fravolo-Customer",
                "value": "{{diner_access}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/customers/logout",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "customers",
                "logout"
              ]
            },
            "description": "Revokes the refresh token, and the access token when X-Fravolo-Customer is sent. Returns 204.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"refresh_token\": \"{{diner_refresh}}\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Order (diner-authenticated)",
      "item": [
        {
          "name": "Diner profile (me)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-Fravolo-Customer",
                "value": "{{diner_access}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/customers/me",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "customers",
                "me"
              ]
            },
            "description": "Returns `{id, email, phone, name}`. 401 diner_signed_out without a valid X-Fravolo-Customer."
          }
        },
        {
          "name": "Create order → saves order_id/code",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const j = pm.response.json();",
                  "if (j.order) {",
                  "  pm.collectionVariables.set('order_id', j.order.id);",
                  "  pm.collectionVariables.set('order_code', j.order.code);",
                  "  console.log('order', j.order.code, 'razorpay', j.razorpay_order_id || '(cod)');",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-Fravolo-Customer",
                "value": "{{diner_access}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/orders",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "orders"
              ]
            },
            "description": "Creates the order (201 `{order, razorpay_order_id?, razorpay_key_id?}`). The server re-prices from scratch; client prices are ignored. For `payment_method:\"online\"` open Razorpay checkout with `razorpay_order_id` + `razorpay_key_id`, then call Pay within 15 minutes; for `cod` the order is confirmed at once. Delivery needs `address` with `line1` and `pincode`. Errors: 422 bad_schedule / invalid_cart / invalid / invalid_phone / not_deliverable, 409 out_of_stock (`shortages`) / sold_out_today / online_payment_off, 429 too_many_open_orders (3 unfinished orders per diner), 403 restaurant_pending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    { \"item_id\": \"{{item_id}}\", \"qty\": 1, \"modifiers\": {{item_modifiers}}, \"notes\": \"\" }\n  ],\n  \"fulfillment\": \"pickup\",\n  \"date\": \"{{order_date}}\",\n  \"time\": \"{{order_time}}\",\n  \"payment_method\": \"cod\",\n  \"name\": \"Sam Example\",\n  \"phone\": \"{{diner_phone}}\",\n  \"notes\": \"Ring the bell\"\n}"
            }
          }
        },
        {
          "name": "Pay (confirm Razorpay)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-Fravolo-Customer",
                "value": "{{diner_access}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/orders/{{order_id}}/pay",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "orders",
                "{{order_id}}",
                "pay"
              ]
            },
            "description": "Confirms an online payment with the Razorpay checkout handshake. Returns `{ok:true, code:\"FV-…\"}`. Errors: 400 bad_signature, 409 payment_mismatch, 409 online_payment_off, 404 order_not_found.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"razorpay_order_id\": \"order_XXXXXXXX\",\n  \"razorpay_payment_id\": \"pay_XXXXXXXX\",\n  \"razorpay_signature\": \"<hex signature from Razorpay checkout>\"\n}"
            }
          }
        },
        {
          "name": "Track order (by code)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-Fravolo-Customer",
                "value": "{{diner_access}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/orders/{{order_code}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "orders",
                "{{order_code}}"
              ]
            },
            "description": "The order with live `status` and `status_history`, scoped to the signed-in diner (404 order_not_found otherwise). `:code` is `<PREFIX>-YYYYMMDD-XXXXXX`, e.g. FV-20261123-7K3Q9M. Statuses: PENDING_PAYMENT, CONFIRMED, ACCEPTED, PREPARING, READY, OUT_FOR_DELIVERY, DELIVERED, COMPLETED, CANCELLED, EXPIRED. There is no outbound webhook: poll this."
          }
        },
        {
          "name": "My orders",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-Fravolo-Customer",
                "value": "{{diner_access}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/partner/restaurants/{{rid}}/orders?limit=20",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "partner",
                "restaurants",
                "{{rid}}",
                "orders"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            },
            "description": "The diner's recent orders at this restaurant: `{orders:[…]}`."
          }
        }
      ]
    }
  ]
}
