Developer
Restaurant Orders API
Push menus and orders from delivery partners, hotel systems, or your own apps. Guest bills follow the same KOT, VAT, and CBMS path as your floor POS.
Overview
The Restro Nepal REST API lets server-side applications create orders, sync menus, and finalize guest bills with the same KOT routing, VAT rules, and CBMS configuration as your outlets.
All requests use JSON over HTTPS. Responses use standard HTTP status codes; validation errors return a structured error body with field-level hints.
Authentication
Send a workspace API key on every request using the X-API-Key header.
- Sign in as a workspace admin.
- Open Settings → API Keys.
- Create a key and copy the raw value immediately, it is displayed only once.
- Store the key in server environment variables (for example
RESTRO_NEPAL_API_KEY).
Example keys look like RN_live_••••••••. Rotate keys from Settings if compromised.
Base URL
Each workspace has a dedicated API host. Replace {workspace} with your workspace slug from the dashboard:
https://{workspace}.api.restronepal.appExample: https://himalaya-cafe.api.restronepal.app
POST /v1/orders
Create a dine-in, takeaway, delivery, or room-charge order. On success KOT tickets route to configured stations and the order stays open until billed.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| service_mode | enum | Yes | DINE_IN, TAKEAWAY, DELIVERY, or ROOM_CHARGE for hotel outlets. |
| table_id | string | Conditional | Required for dine-in when your floor plan assigns tables. |
| guest_name | string | No | Guest or aggregator label on the ticket. |
| guest_phone | string | No | Contact for SMS receipts or rider handoff. |
| lines | array | Yes | Menu lines with modifiers; at least one line required. |
| lines[].menu_item_id | string | Yes | Restro Nepal menu item ID from catalog sync. |
| lines[].quantity | number | Yes | Portions or units sold. |
| lines[].modifiers | array | No | Add-on IDs (extra cheese, spice level, half-and-half crust, etc.). |
| lines[].notes | string | No | Kitchen or packaging note printed on KOT. |
| discount_amount | number | No | Order-level discount before tax and service charge. |
| external_reference | string | No | Aggregator or PMS order ID for idempotency. |
POST /v1/orders/{id}/bill
Close an open order into a guest bill or tax invoice. When CBMS sync is enabled, transmission uses the same pipeline as counter checkout.
| Field | Type | Required | Description |
|---|---|---|---|
| order_id | string (UUID) | Yes | Order returned from POST /v1/orders. |
| payment_mode | enum | Yes | CA cash, CR credit, BA bank, QR, KH Khalti, ES eSewa. |
| buyer_pan | string | No | Guest PAN when they request a tax invoice. |
| service_charge | number | No | Percent or fixed service charge per outlet rules. |
Payment mode codes
CA cash · CR credit · BA bank · QR QR pay · KH Khalti · ES eSewa
Examples
Sample JSON body
{
"service_mode": "DELIVERY",
"guest_name": "Rider pickup · Foodmandu",
"guest_phone": "9800000000",
"external_reference": "FD-2026-4421",
"lines": [
{
"menu_item_id": "menu_momo-steam",
"quantity": 2,
"modifiers": ["mod_extra-chutney"],
"notes": "Pack chutney separately"
},
{
"menu_item_id": "menu-masala-tea",
"quantity": 1
}
]
}cURL
curl -X POST "https://himalaya-cafe.api.restronepal.app/v1/orders" \
-H "Content-Type: application/json" \
-H "X-API-Key: $RESTRO_NEPAL_API_KEY" \
-d '{
"service_mode": "DELIVERY",
"guest_name": "Rider pickup · Foodmandu",
"guest_phone": "9800000000",
"external_reference": "FD-2026-4421",
"lines": [
{
"menu_item_id": "menu_momo-steam",
"quantity": 2,
"modifiers": ["mod_extra-chutney"],
"notes": "Pack chutney separately"
},
{
"menu_item_id": "menu-masala-tea",
"quantity": 1
}
]
}'fetch (Node / browser server routes)
const res = await fetch(
'https://himalaya-cafe.api.restronepal.app/v1/orders',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.RESTRO_NEPAL_API_KEY!,
},
body: JSON.stringify({
service_mode: 'DINE_IN',
table_id: 'T-12',
lines: [{ menu_item_id: 'menu-dal-bhat', quantity: 1 }],
}),
},
);
const data = await res.json();Success responses
A 201 Created response includes the order identity and totals:
{
"id": "9a1b2c3d-4e5f-6789-abcd-ef0123456789",
"order_number": "ORD-2084-00087",
"kot_status": "routed",
"bill_status": "open",
"total_amount": 1450,
"vat_amount": 167.26,
"created_at": "2026-03-15T10:42:00+05:45",
"bill_url": "https://himalaya-cafe.api.restronepal.app/v1/orders/9a1b2c3d../bill.pdf"
}After billing, cbms_status on the issued invoice moves from pending to synced when transmission completes.
Notes
- Menu item IDs must exist in the outlet catalog before you POST orders.
- VAT, service charge, and buyer PAN rules follow the same configuration as the floor POS.
- Never embed API keys in mobile apps or browser bundles; proxy through your backend.
- Configure allowed origins in Settings if you call the API from a dedicated integration subdomain; prefer server-to-server calls.
- Use
external_referenceto safely retry order POSTs without duplicate KOTs where your integration supports idempotency.
FAQ
- Do API orders fire KOT printers?
- Yes. Accepted orders route to the same KOT/BOT stations configured in your outlet, just like tickets punched from the floor POS.
- How do I get an API key?
- Workspace admins open Settings → API Keys in the dashboard, create a key, and copy the raw value immediately. Store it on your server, not in client-side code.
- What can I build with the API?
- Delivery-aggregator middleware, hotel PMS room-charge hooks, brand apps, loyalty checkouts, and custom QR menus that still bill through one fiscal stack.
- Which plans include API access?
- Orders, menu sync, and guest bill endpoints are included on Pro and Chain. See pricing for outlet limits and CBMS options.
Ready to integrate?
Request API-enabled onboarding or map your delivery or hotel stack with our team.









