API reference
Bytriq Public API
Orders, menus, salon bookings, repair tracking, attendance, and posted sales. An MCP client calls the HTTP URLs below. The tool catalog names each call. It is a catalog, and the live session is ordinary HTTP.
- Base URL
- https://bytriq.bytrionix.com
- Money
- Integer paise. ₹180 is 18000.
- Guest phone
- 10 digits, starting 6–9.
Authentication
Posted sales is the only call that needs a key. In the signed-in app, open Settings → Account and rotate the public API key. Send it on every sales request.
Header
Authorization: Bearer btq_your_key
x-api-key: btq_your_keyThe key reads that shop’s last 50 posted invoices. Menu, order, booking, repair, and attendance calls use the shop slug and need no key.
Errors
A refused call returns JSON with an error string.
| Status | When |
|---|---|
| 400 | The body or the shop setup cannot complete the call. |
| 401 | The sales key is missing or does not match a shop. |
| 404 | That shop, table, order, or job does not exist. |
| 409 | A salon slot is already booked, or attendance was already punched. |
Sales
List posted sales
Returns the last 50 posted invoices for this shop. The address includes the shop id, and the key must belong to that shop.
/api/public/v1/{tenantId}/salesAPI key| Field | Type | Description |
|---|---|---|
tenantId Path · required | uuid | This shop’s id from Settings → Account. Another shop’s key does not work on this address. |
Authorization Header · required | string | Bearer btq_… from this shop. The same value is accepted as x-api-key. |
Request
curl https://bytriq.bytrionix.com/api/public/v1/00000000-0000-4000-8000-000000000001/sales \
-H "Authorization: Bearer btq_your_key"Response
{
"tenantId": "00000000-0000-4000-8000-000000000001",
"sales": [
{
"id": "00000000-0000-4000-8000-000000000002",
"document_number": "INV-1042",
"total_paise": 18000,
"tax_paise": 857,
"status": "posted",
"posted_at": "2026-11-27T10:15:00.000Z"
}
]
}Restaurant and cafe
Read a menu
Dishes, groups, prices, and Make your own sections for a public menu link.
/api/public/restaurant/{slug}/menuPublic| Field | Type | Description |
|---|---|---|
slug Path · required | string | Shop slug from the public menu link. |
tableId Query · optional | uuid | Dining table. Omit it for a pre-order menu. |
Request
curl https://bytriq.bytrionix.com/api/public/restaurant/apsara/menuResponse
{
"restaurant": { "name": "Apsara", "slug": "apsara" },
"onlinePayment": true,
"table": null,
"categories": [{ "id": "cat_starters", "name": "Starters" }],
"items": [
{
"id": "item_dosa",
"name": "Masala dosa",
"pricePaise": 18000,
"categoryId": "cat_starters",
"dietaryType": "veg",
"remaining": null,
"buildYourOwn": null
}
]
}Place an order
Places a pre-order, or a table order when tableId is set. Name and an Indian mobile are required. Prices come from the menu.
/api/public/restaurant/{slug}/orderPublic| Field | Type | Description |
|---|---|---|
guestName Body · required | string | At least 2 characters. |
guestPhone Body · required | string | 10-digit Indian mobile starting with 6, 7, 8, or 9. |
tableId Body · optional | uuid | Omit for a pre-order. The shop must accept it before the kitchen ticket is created. |
payment Body · optional | due | paid | due means pay at the store. paid is used after a confirmed online payment. |
lines Body · required | array | Each line is itemId, quantity, and optional optionIds for a portion or Make your own picks. |
Request
curl https://bytriq.bytrionix.com/api/public/restaurant/apsara/order \
-H "Content-Type: application/json" \
-d '{
"guestName": "Asha Rao",
"guestPhone": "9845012345",
"payment": "due",
"lines": [{ "itemId": "item_dosa", "quantity": 1 }]
}'Response
{
"orderId": "00000000-0000-4000-8000-000000000003",
"orderNumber": "ORD-32",
"kotNumber": null,
"awaitingAccept": true,
"notified": false
}Read an order
Status sentence for an order placed on that shop’s public link.
/api/public/restaurant/{slug}/orderPublic| Field | Type | Description |
|---|---|---|
orderId Query · required | uuid | Returned by Place an order. |
Request
curl "https://bytriq.bytrionix.com/api/public/restaurant/apsara/order?orderId=00000000-0000-4000-8000-000000000003"Response
{
"status": "open",
"orderNumber": "ORD-32",
"reason": null,
"stage": "received",
"message": "Apsara: Order ORD-32 is received. Someone at the cafe will accept or decline it. It does not start cooking until they accept.",
"payment": "due"
}Pay for an order
Starts a Razorpay order for a guest bill, or confirms the payment. The shop must have saved its own Razorpay keys.
/api/public/restaurant/{slug}/payPublic| Field | Type | Description |
|---|---|---|
orderId Body · required | uuid | Guest order to collect. |
action Body · optional | start | confirm | start opens the Razorpay order. confirm checks the signature and marks the guest note paid. |
razorpayPaymentId Body · optional | string | Required when action is confirm. |
razorpaySignature Body · optional | string | HMAC from Razorpay Checkout. Required when action is confirm. |
method Body · optional | upi | card | Recorded on confirm. Defaults to upi. |
Start
curl https://bytriq.bytrionix.com/api/public/restaurant/apsara/pay \
-H "Content-Type: application/json" \
-d '{ "orderId": "00000000-0000-4000-8000-000000000003", "action": "start" }'Start response
{
"keyId": "rzp_live_your_key",
"gatewayOrderId": "order_Nxxxxx",
"amountPaise": 18000,
"orderNumber": "ORD-32"
}Confirm response
{
"ok": true,
"orderNumber": "ORD-32",
"payment": "paid"
}Salon
Read a salon
Active stylists and services for the public booking page.
/api/public/salon/{slug}PublicRequest
curl https://bytriq.bytrionix.com/api/public/salon/apsara-salonResponse
{
"salon": { "name": "Apsara Salon", "slug": "apsara-salon" },
"stylists": [{ "id": "sty_1", "name": "Meera" }],
"services": [
{ "id": "svc_cut", "name": "Haircut", "pricePaise": 50000, "durationMinutes": 45 }
]
}Read openings
Open slots for one stylist on one date. The day runs 10:00 to 19:00.
/api/public/salon/{slug}/availabilityPublic| Field | Type | Description |
|---|---|---|
date Query · required | date | YYYY-MM-DD. |
resourceId Query · required | string | Stylist id from the salon catalog. |
durationMinutes Query · optional | number | Visit length used to space the slots. |
Request
curl "https://bytriq.bytrionix.com/api/public/salon/apsara-salon/availability?date=2026-11-28&resourceId=sty_1&durationMinutes=45"Response
{
"slots": ["2026-11-28T10:00:00.000Z", "2026-11-28T10:45:00.000Z"]
}Book a visit
Books a scheduled visit. A clash with an existing booking returns 409.
/api/public/salon/{slug}/bookPublic| Field | Type | Description |
|---|---|---|
resourceId Body · required | string | Stylist id. |
startsAt Body · required | datetime | ISO start, taken from an open slot. |
endsAt Body · required | datetime | ISO end. |
clientName Body · required | string | Guest name. |
clientPhone Body · required | string | Guest phone. |
services Body · required | array | Service ids from the catalog. |
Request
curl https://bytriq.bytrionix.com/api/public/salon/apsara-salon/book \
-H "Content-Type: application/json" \
-d '{
"resourceId": "sty_1",
"startsAt": "2026-11-28T10:00:00.000Z",
"endsAt": "2026-11-28T10:45:00.000Z",
"clientName": "Asha Rao",
"clientPhone": "9845012345",
"services": ["svc_cut"]
}'Response
{
"ok": true,
"appointmentId": "00000000-0000-4000-8000-000000000004",
"startsAt": "2026-11-28T10:00:00.000Z"
}Repair
Read a repair shop
Confirms the public job-tracking page belongs to a repair shop.
/api/public/repair/{slug}PublicRequest
curl https://bytriq.bytrionix.com/api/public/repair/apsara-repairResponse
{
"shop": { "name": "Apsara Repair", "slug": "apsara-repair" }
}Track a job
Returns one job when the job number and the client phone match.
/api/public/repair/{slug}/trackPublic| Field | Type | Description |
|---|---|---|
documentNumber Body · required | string | Job number printed on the receipt. |
phone Body · required | string | Must match the phone stored on the job. |
Request
curl https://bytriq.bytrionix.com/api/public/repair/apsara-repair/track \
-H "Content-Type: application/json" \
-d '{ "documentNumber": "JOB-18", "phone": "9845012345" }'Response
{
"shopName": "Apsara Repair",
"documentNumber": "JOB-18",
"status": "in_progress",
"statusLabel": "In progress",
"clientName": "Asha Rao",
"device": "iPhone 13",
"promisedAt": "2026-11-29",
"duePaise": 250000
}Attendance
List staff
Names on the public attendance page for that shop.
/api/public/attend/{slug}PublicRequest
curl https://bytriq.bytrionix.com/api/public/attend/apsaraResponse
{
"businessName": "Apsara",
"staff": [{ "id": "staff_1", "name": "Ravi" }]
}Punch attendance
Checks a staff member in or out for today. A second check-in before check-out is refused.
/api/public/attend/{slug}Public| Field | Type | Description |
|---|---|---|
resourceId Body · required | string | Staff id from List staff. |
action Body · optional | check_in | check_out | Defaults to check_in. |
Request
curl https://bytriq.bytrionix.com/api/public/attend/apsara \
-H "Content-Type: application/json" \
-d '{ "resourceId": "staff_1", "action": "check_in" }'Response
{
"ok": true,
"action": "check_in",
"staffName": "Ravi",
"businessName": "Apsara"
}