Jaras

Jaras API for POS systems

Send Jaras the order number when an order is created. Jaras creates the pager with that number and the counter screen shows the QR code straight away: no typing for the cashier, no app for the customer.

واجهة جرس البرمجية لأنظمة نقاط البيع: يرسل نظامك رقم الطلب عند إنشائه، فيُنشئ جرس البيجر بنفس الرقم ويظهر رمز QR على شاشة الكاونتر فوراً، بدون إدخال يدوي من الكاشير. النداء والاستلام يبقيان في جرس كما هما.
How it worksAuthenticationCreate a pagerOrder statusOptional callsOrder numbersErrorsExamples

How it works

1Order createdYour POS sends the order number to Jaras.
2QR on the counter screenThe customer scans it and their phone becomes the pager.
3ReadyStaff tap “Call” in Jaras (or your kitchen screen calls the API). The phone rings.
4Picked upStaff mark it collected in Jaras. Reports show the POS as the creator.

Coffee shops and restaurants can still type pager numbers by hand in the Jaras cashier screen. Both work at the same time.

Authentication

Each branch creates its own key in Jaras › Settings › POS connection. The key decides the branch, so you never send a branch name. Send it as a bearer token (or in an X-Api-Key header). Keys start with jrs_ and can be revoked by the business at any time.

Authorization: Bearer jrs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Base URL: https://getjaras.com/api/v1 · JSON in and out · up to 300 calls a minute per key.

GET/ping

Checks the key and tells you which branch it belongs to.

{ "ok": true, "branch": { "id": "…", "name": "Olaya", "brand": "Sample Café", "slug": "sample-cafe" } }

Create a pager

POST/orders

Call this when an order is created. It’s safe to send the same order twice: the second call returns the existing pager.

FieldType
order_numberstringRequired. The short number printed on the receipt, like 47 or A12. Letters and digits, up to 6 characters (see order numbers).
// 201 Created
{
  "pager_number": "47",
  "status": "waiting",
  "created": true,
  "customer_url": "https://getjaras.com/o/sample-cafe/k3j9x2m1qa",
  "branch": "Olaya",
  "order_number": "47"
}

customer_url is the customer’s pager page (the same page the QR code opens). You don’t need to show it: the counter screen already displays the QR code.

Order status

GET/orders/{order_number}

Returns status: waiting, called, collected or removed, with created_at and called_at (milliseconds).

Optional calls

Most businesses call customers from Jaras. These are for POS systems with a kitchen screen or cancellations:

CallDoes
POST /orders/{order_number}/readyRings the customer’s phone and shows the number on the pickup screen.
POST /orders/{order_number}/collectedCloses the pager as picked up.
POST /orders/{order_number}/cancelRemoves the pager (order voided).

Order numbers

Errors

HTTPerrorMeaning
400missing_order_numberNo order number sent.
400order_number_too_longLonger than 6 characters and trimming is off for this key.
401invalid_keyMissing, wrong or revoked key.
403plan_paused, account_paused, pending_approvalThe business can’t take orders right now. Show the cashier a message; don’t retry.
404not_foundNo order with this number today.
429too_manyOver 300 calls a minute. Wait and retry.

Every error has a readable message. If Jaras can’t be reached, carry on with the sale: the cashier can still type the number in Jaras.

Examples

curl

curl -X POST https://getjaras.com/api/v1/orders \
  -H "Authorization: Bearer $JARAS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"order_number":"47"}'

JavaScript

await fetch("https://getjaras.com/api/v1/orders", {
  method: "POST",
  headers: { "Authorization": "Bearer " + JARAS_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ order_number: order.callNumber })
});

Testing

Create a free Jaras account, add a key in Settings › POS connection, and open the counter screen on any browser: each order you send appears on it with its QR code. Questions or a partnership? Become a partner or email sales@getjaras.com.

TEST SITE · test.getjaras.com · sample data only · موقع الاختبار