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_key

The 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.

StatusWhen
400The body or the shop setup cannot complete the call.
401The sales key is missing or does not match a shop.
404That shop, table, order, or job does not exist.
409A 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.

GET/api/public/v1/{tenantId}/sales
FieldTypeDescription

tenantId

Path · required

uuidThis shop’s id from Settings → Account. Another shop’s key does not work on this address.

Authorization

Header · required

stringBearer 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.

GET/api/public/restaurant/{slug}/menu
FieldTypeDescription

slug

Path · required

stringShop slug from the public menu link.

tableId

Query · optional

uuidDining table. Omit it for a pre-order menu.

Request

curl https://bytriq.bytrionix.com/api/public/restaurant/apsara/menu

Response

{
  "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.

POST/api/public/restaurant/{slug}/order
FieldTypeDescription

guestName

Body · required

stringAt least 2 characters.

guestPhone

Body · required

string10-digit Indian mobile starting with 6, 7, 8, or 9.

tableId

Body · optional

uuidOmit for a pre-order. The shop must accept it before the kitchen ticket is created.

payment

Body · optional

due | paiddue means pay at the store. paid is used after a confirmed online payment.

lines

Body · required

arrayEach 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.

GET/api/public/restaurant/{slug}/order
FieldTypeDescription

orderId

Query · required

uuidReturned 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.

POST/api/public/restaurant/{slug}/pay
FieldTypeDescription

orderId

Body · required

uuidGuest order to collect.

action

Body · optional

start | confirmstart opens the Razorpay order. confirm checks the signature and marks the guest note paid.

razorpayPaymentId

Body · optional

stringRequired when action is confirm.

razorpaySignature

Body · optional

stringHMAC from Razorpay Checkout. Required when action is confirm.

method

Body · optional

upi | cardRecorded 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.

GET/api/public/salon/{slug}

Request

curl https://bytriq.bytrionix.com/api/public/salon/apsara-salon

Response

{
  "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.

GET/api/public/salon/{slug}/availability
FieldTypeDescription

date

Query · required

dateYYYY-MM-DD.

resourceId

Query · required

stringStylist id from the salon catalog.

durationMinutes

Query · optional

numberVisit 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.

POST/api/public/salon/{slug}/book
FieldTypeDescription

resourceId

Body · required

stringStylist id.

startsAt

Body · required

datetimeISO start, taken from an open slot.

endsAt

Body · required

datetimeISO end.

clientName

Body · required

stringGuest name.

clientPhone

Body · required

stringGuest phone.

services

Body · required

arrayService 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.

GET/api/public/repair/{slug}

Request

curl https://bytriq.bytrionix.com/api/public/repair/apsara-repair

Response

{
  "shop": { "name": "Apsara Repair", "slug": "apsara-repair" }
}

Track a job

Returns one job when the job number and the client phone match.

POST/api/public/repair/{slug}/track
FieldTypeDescription

documentNumber

Body · required

stringJob number printed on the receipt.

phone

Body · required

stringMust 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.

GET/api/public/attend/{slug}

Request

curl https://bytriq.bytrionix.com/api/public/attend/apsara

Response

{
  "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.

POST/api/public/attend/{slug}
FieldTypeDescription

resourceId

Body · required

stringStaff id from List staff.

action

Body · optional

check_in | check_outDefaults 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"
}