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.
How it works
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.
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
Call this when an order is created. It’s safe to send the same order twice: the second call returns the existing pager.
| Field | Type | |
|---|---|---|
order_number | string | Required. 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
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:
| Call | Does |
|---|---|
POST /orders/{order_number}/ready | Rings the customer’s phone and shows the number on the pickup screen. |
POST /orders/{order_number}/collected | Closes the pager as picked up. |
POST /orders/{order_number}/cancel | Removes the pager (order voided). |
Order numbers
- Pager numbers are up to 6 letters or digits, so they fit on the pickup screen. Spaces and symbols are removed, letters become capitals.
- If you send a longer number (like
INV-0001234), Jaras uses its last 4 characters (1234) by default and returns"trimmed": true. The business can change this to 3, 5 or 6 characters, or switch it off so long numbers are refused. - A number can be reused once the previous order with that number is collected or removed. Daily restarting numbers are fine.
Errors
| HTTP | error | Meaning |
|---|---|---|
| 400 | missing_order_number | No order number sent. |
| 400 | order_number_too_long | Longer than 6 characters and trimming is off for this key. |
| 401 | invalid_key | Missing, wrong or revoked key. |
| 403 | plan_paused, account_paused, pending_approval | The business can’t take orders right now. Show the cashier a message; don’t retry. |
| 404 | not_found | No order with this number today. |
| 429 | too_many | Over 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.