Skip to content
outale

Developers

Partner API

Connect an ordering or loyalty app to a business that runs Outale. Read the menu, use the customer's points, and send orders straight to the till and the kitchen.

v1https://www.outale.com/api/partner/v1

For developers building an ordering or loyalty app for a café, restaurant or shop that runs Outale. In this reference, the merchant is that business, and your app is what you are building for them.

The Partner API connects your app to the merchant's Outale point of sale. With it your app can:

  • read the menu (products, categories, modifiers, per-branch prices and availability, promotions) and the branches with their opening state;
  • register customers and read their points, tier and history;
  • place orders that land on the merchant's till and kitchen screen, paid in your app or paid at the counter, picked up at the counter or at the car;
  • hear when an order is being made, ready, collected or cancelled;
  • give points (missions, referrals) and spend points (a points store).

Who keeps the points is the merchant's choice:

  • Outale keeps them. Customers earn at the counter and in your app, so there is one balance, held here. Your app reads it and asks us to move it, and never keeps its own copy (section 5).
  • Your app keeps them. You run your own loyalty engine. The merchant switches Outale's loyalty off and turns on the sales feed, which sends you every sale made at the counter, so those purchases earn in your app (section 7, *Sales feed*), and can give you a rewards address so customers spend your app's rewards at the counter (section 7, *Rewards at the counter*).

1. Basics

Getting access

There is nothing to sign up for. The merchant connects your app from their Outale dashboard (Partners → Your own app), names it (their staff see the name on every order it sends), and gives you:

  1. a test key, to build against their real menu without touching their books;
  2. a live key, when you are ready to take real orders;
  3. a webhook signing secret, once you give them the address you want order updates sent to.

One connection covers the merchant's whole chain: every branch.

Base URL

https://www.outale.com/api/partner/v1

There is one base URL. Test and live are chosen by the key, not the URL (see Authentication).

Authentication

Every request carries an API key:

Authorization: Bearer opk_live_…

Keys are issued by the merchant in the Outale dashboard (Partners → Your own app). Each key is shown once.

KeyWhat it does
opk_test_…Reads the merchant's real menu, branches and customers. Every write (orders, sign-ups, points) is validated fully and then not saved. Responses carry "test": true and the header Outale-Mode: test. Use it to build and test without touching the merchant's books.
opk_live_…Real. Orders go to the till and the kitchen; points move.

Keep keys on your server. Never put a key in the mobile app or web front end: anyone can read it there. Your app talks to your server; your server talks to us.

No IP allow-listing is needed. Always use HTTPS.

Amounts

Every amount is an integer in minor units (dirhams): 1800 means QAR 18.00. There is no VAT in Qatar; no tax fields exist.

Identifiers

ThingIdentifierStable?
BranchbranchRef, e.g. OUT-01Yes. Never reused.
Productref from GET /menuYes
Categoryref (slug of its name)Changes if the merchant renames it
Modifier grouprefYes
Modifier optionref, opt:<group>:<name>Changes if the option is renamed
Customerid from the customers endpointsYes. Store it against your user.
Orderyour own orderIdYours

Phones: send them in international form (+97455551234). We match a customer whichever way the merchant's till typed the number (55551234, +974…), so one person is always one profile.

Errors

Every error has the same shape:

json
{ "error": { "code": "unknown_branch", "message": "No branch OUT-09. GET /v1/branches lists them." } }

code is stable — branch on it. message is for your logs and may change. Some errors add fields (for example expected, balance).

StatusMeaningWhat to do
400The request is malformed (invalid_json, invalid_request with issues)Fix the request. Don't retry as-is.
401unauthorized: missing, wrong or revoked keyCheck the key.
403connection_disabled (the merchant paused the connection) or forbiddenStop; contact the merchant.
404Not found (customer_not_found, order_not_found)—
409Conflict (idempotency_conflict, already_collected, loyalty_disabled)Don't retry as-is.
422Valid but refused (unknown_branch, amounts_inconsistent, insufficient_points…)Show the customer; don't retry as-is.
429rate_limitedWait Retry-After seconds.
503unavailable: temporaryRetry with backoff (e.g. 1s, 2s, 4s… up to a minute). Writes are idempotent, so a retry is always safe.

Every response carries X-Request-Id. Quote it when you contact us.

Retries and idempotency

  • Orders are idempotent on your orderId. Sending the same order again returns the same order (200, "replayed": true) and never creates a second one. Sending a *different* order under an orderId you already used is refused with 409 idempotency_conflict.
  • Points grants and redemptions need an Idempotency-Key header (8–128 printable characters, unique per movement — a UUID is ideal). The same key twice moves points once.

So the rule is simple: on a timeout or a 503, send exactly the same request again.

Rate limit

300 requests a minute per connection. Each response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you get 429 with Retry-After. Cache the menu (see ETag below) and you will not come close.

2. Branches

GET /branches

json
{
  "branches": [
    {
      "ref": "OUT-01",
      "name": "West Bay",
      "open": true,
      "address": "Al Waab St, Doha",
      "hours": "6am – 11pm",
      "mapsUrl": "https://maps.app.goo.gl/…",
      "phone": "+97444445555"
    }
  ]
}

open means the branch has a shift open on its till right now. Show a closed branch as closed before the customer pays. A paid order for a closed branch is still accepted (it is queued and goes to the kitchen the moment the branch opens), but the customer would be waiting for coffee nobody is making.

address, hours, mapsUrl and phone are whatever the merchant has filled in; any of them may be null.

GET /menu

The whole menu, as one consistent snapshot.

json
{
  "version": "3f9a1c0b7d2e4a5b6c7d",
  "generatedAt": "2026-11-26T05:00:00.000Z",
  "currency": "QAR",
  "branches": [{ "ref": "OUT-01", "name": "West Bay" }],
  "categories": [
    { "ref": "hot-coffee", "name": { "en": "Hot coffee", "ar": "قهوة ساخنة" }, "position": 0 }
  ],
  "modifierGroups": [
    {
      "ref": "grp_milk",
      "name": { "en": "Milk" },
      "selection": "single",
      "required": true,
      "minSelect": 1,
      "maxSelect": 1,
      "options": [
        { "ref": "opt:grp_milk:full-fat", "name": { "en": "Full fat" }, "price": 0 },
        { "ref": "opt:grp_milk:oat", "name": { "en": "Oat" }, "price": 300 }
      ]
    }
  ],
  "products": [
    {
      "ref": "p_latte",
      "categoryRef": "hot-coffee",
      "name": { "en": "Latte", "ar": "لاتيه" },
      "description": null,
      "price": 1800,
      "branchPrices": [{ "branchRef": "OUT-03", "price": 2000 }],
      "unavailableAt": ["OUT-04"],
      "modifierGroupRefs": ["grp_milk"],
      "imageUrl": "https://utfs.io/f/…",
      "active": true
    }
  ],
  "promotions": [
    {
      "ref": "disc_welcome",
      "code": "WELCOME10",
      "name": { "en": "Welcome" },
      "kind": "percent",
      "value": 10,
      "startsAt": null,
      "endsAt": "2026-12-31T20:59:59.000Z",
      "active": true,
      "maxUses": null
    }
  ]
}

Reading it:

  • Price at a branch = the branchPrices entry for that branch if there is one, else price.
  • Sold at a branch = active and the branch is not in unavailableAt. active: false means no branch sells it at the moment; keep it, it may come back with the same ref.
  • Stock. Coffee is made, not counted, so there is no stock quantity. Availability per branch is the signal.
  • Names always have en; ar is present when the merchant has written one. Never show en as if it were the Arabic.
  • Modifier prices are per unit of the product.
  • Promotions are only the codes the merchant chose to put online. kind: "percent" → value is 1–100; kind: "fixed" → value is minor units off the order. Each applies to the whole order. Enforce startsAt, endsAt and maxUses in your app.

Caching. Send the version back as If-None-Match: "<version>" and an unchanged menu answers 304 Not Modified with no body. Poll every 5–15 minutes, and on app start. A product removed from the response should be hidden, not deleted: it can return with the same ref.

4. Customers

GET /customers?phone=+97455551234

Finds a customer by phone (any spelling of the same number). 404 customer_not_found if there is none.

POST /customers

Registers a customer, or returns the one this phone already belongs to.

json
{ "name": "Sara Al-Kuwari", "phone": "+97455551234", "email": "sara@example.com", "birthday": "1994-03-21" }

email and birthday (YYYY-MM-DD or MM-DD) are optional.

  • 201 with "created": true → new profile.
  • 200 with "created": false → this person already exists (perhaps they have bought at the counter). Their existing details are not overwritten.

GET /customers/{customerId}

json
{
  "id": "Vb3kQ9…",
  "name": "Sara Al-Kuwari",
  "phone": "+97455551234",
  "email": "sara@example.com",
  "birthday": "1994-03-21",
  "joinedAt": "2026-11-26T08:00:00.000Z",
  "loyalty": {
    "points": 450,
    "stamps": 0,
    "tier": { "id": "silver", "name": "Silver" },
    "nextTier": { "id": "gold", "name": "Gold", "spendNeeded": 118750 },
    "rewardsAvailable": 2
  },
  "stats": { "visits": 9, "lifetimeSpend": 81250 }
}

tier is decided by lifetime spend (the merchant's tier ladder); once reached, a tier is kept. nextTier.spendNeeded is minor units still to spend. rewardsAvailable is how many order rewards the balance pays for now.

GET /customers/{customerId}/loyalty/transactions?limit=50

Points history, newest first (max 200).

json
{
  "transactions": [
    { "id": "pa_9c…", "type": "earn", "points": 22, "stamps": 0, "orderId": "pa_9c…", "reason": null, "at": "2026-11-26T08:04:00.000Z" },
    { "id": "pgrant_1f…", "type": "partner_grant", "points": 100, "stamps": 0, "orderId": null, "reason": "Mission: morning coffee ×3", "at": "…" }
  ]
}

Types: earn (a purchase), redeem (a reward on an order), stamps_redeem, void_reversal and refund_clawback (an order reversed at the till), partner_grant, partner_redeem, partner_redeem_reversal (your calls).

5. Loyalty

This section applies when Outale keeps the points. If your app runs its own loyalty, skip it and use the sales feed (section 7).

GET /loyalty/program

The merchant's rules, so your app can explain them.

json
{
  "enabled": true,
  "spendPerPoint": 1000,
  "reward": { "points": 200, "value": 2000 },
  "stamps": { "enabled": false, "required": 10, "rewardValue": 2000 },
  "tiers": [
    { "id": "bronze", "name": "Bronze", "minLifetimeSpend": 0, "multiplier": 1 },
    { "id": "silver", "name": "Silver", "minLifetimeSpend": 50000, "multiplier": 1.25 }
  ],
  "partnerGrants": { "maxPointsPerGrant": 500, "maxPointsPerCustomerPerDay": 1000 }
}

Read it as: one point per spendPerPoint spent (QAR 10 here), times the customer's tier multiplier; reward.points buys reward.value off an order.

Earning on purchases — nothing to call

An order placed through this API is a sale, and the sale earns points exactly as it does at the counter. Do not also grant points for a purchase, or the customer earns twice.

POST /customers/{customerId}/loyalty/grants

Give points for something that is not a purchase: a mission, a referral, a streak, listening time.

Idempotency-Key: 6f1c2a9e-…
json
{ "points": 150, "reason": "Mission: morning coffee ×3", "reference": "mission_8812" }

reason (max 80 characters) is shown to the merchant's staff against the entry. Answers 201:

json
{ "id": "pgrant_1f…", "customerId": "Vb3kQ9…", "points": 150, "balance": 600, "replayed": false }

Grants are capped by the merchant (partnerGrants in /loyalty/program): 422 grant_too_large over the per-grant limit, 422 daily_cap_reached over the per-customer daily limit (Qatar time).

POST /customers/{customerId}/loyalty/redemptions

Spend points outside an order, for example a tote bag from your points store. Same body and Idempotency-Key rule as grants. 422 insufficient_points (with balance) if the customer does not have enough.

POST /customers/{customerId}/loyalty/redemptions/{id}/reverse

Undo one redemption (the item was out of stock): gives back exactly what it took, once. No body.

A reward on an order

To take a reward off an order, put it in the order's discounts (see below): { "type": "loyalty_reward", "amount": 2000 }. The points are only spent if the order is actually recorded, and come back automatically if the order is cancelled.

6. Orders

POST /orders

json
{
  "orderId": "app-20261126-000123",
  "code": "A-123",
  "branchRef": "OUT-01",
  "placedAt": "2026-11-26T08:01:00+03:00",
  "pickup": {
    "type": "asap",
    "method": "curbside",
    "car": { "description": "White Land Cruiser", "plate": "123456" }
  },
  "customer": { "id": "Vb3kQ9…", "name": "Sara", "phone": "+97455551234" },
  "lines": [
    {
      "productRef": "p_latte",
      "name": "Latte",
      "quantity": 2,
      "unitPrice": 1800,
      "modifiers": [{ "ref": "opt:grp_milk:oat", "name": "Oat", "price": 300 }],
      "note": "Extra hot"
    }
  ],
  "subtotal": 4200,
  "discounts": [{ "type": "promotion", "ref": "disc_welcome", "code": "WELCOME10", "amount": 420 }],
  "total": 3780,
  "payment": { "status": "paid", "method": "apple_pay", "reference": "ch_3PqX…" },
  "note": "Please call when ready"
}
FieldRules
orderIdYour id, unique per order. Letters, digits, _ . : -, up to 100. It is the idempotency key.
codeOptional. What staff call out ("A-123"). Without it, our order number is used.
pickup.typeasap, or scheduled with pickup.at (ISO time).
pickup.methodcounter, or curbside with pickup.car.description (and optional plate). Staff see the car on the order.
customername and phone always; id when you have it. Without an id we match by phone, and create the profile on the first order if there is none. A wrong id is refused (422 unknown_customer), never guessed.
lines[].unitPriceThe product's price without modifiers. Each modifier price is per unit.
subtotalMust equal Σ (unitPrice + Σ modifier prices) × quantity.
discountsAt most one: a promotion (ref from the menu, or null for a code you made, plus code and amount), or a loyalty_reward (amount = the programme's reward value, capped at the subtotal).
totalMust equal subtotal − discounts. It is what the customer was charged.
payment.statuspaid (charged in your app) or pay_at_counter. For paid, send your gateway's reference so a refund can be traced.

We check that the amounts add up (422 amounts_inconsistent, with the expected figure). We do not re-price lines against our menu: the customer paid what your app showed them.

Answer:

json
{ "orderId": "app-20261126-000123", "branchRef": "OUT-01", "status": "received", "orderNumber": "57", "code": "A-123", "paid": true, "total": 3780 }

201 the first time, 200 with "replayed": true on a retry.

What happens on the merchant's side:

OrderBranch openResult
paidyesRecorded as a paid sale and sent to the kitchen. Status received.
paidnoAccepted and queued (status queued, orderNumber: null). It is recorded and sent to the kitchen the moment the branch opens.
pay_at_countereitherSent to the kitchen as an open tab; the cashier takes payment when the customer arrives. Status received. A reward cannot be used on these (422 reward_requires_online_payment).

Order statuses

StatusMeaning
receivedOn the till and the kitchen screen.
queuedPaid, waiting for the branch to open.
preparingThe kitchen started it.
readyReady for pickup.
collectedHanded to the customer. Final.
cancelledCancelled by you or the merchant. Final.
failedPaid, but the till refused it when the branch opened. The merchant is alerted and resolves it by hand. Treat it as "contact the merchant".

GET /orders/{orderId}

The order's current status, by your orderId. Same shape as the create answer.

POST /orders/{orderId}/cancel

Cancels an order that has not been collected. No body. Idempotent. A paid order is voided on the till (and its points reversed; a reward it used is returned); an open tab is discarded; a queued order is dropped before it lands. The refund of a paid order is yours to make in your payment gateway: Outale never holds the money. A collected order cannot be cancelled (409 already_collected); that refund is the merchant's decision at the till.

7. Webhooks

The merchant enters your webhook URL in the dashboard (a public https:// address). We then POST events to it:

json
{
  "id": "evt_5b2f…",
  "type": "order.status_changed",
  "occurredAt": "2026-11-26T08:09:12.000Z",
  "test": false,
  "data": {
    "orderId": "app-20261126-000123",
    "branchRef": "OUT-01",
    "status": "ready",
    "previousStatus": "preparing",
    "orderNumber": "57",
    "code": "A-123"
  }
}

Events:

  • order.status_changed: every move in the table above, including queued → received, and a cancel made at the till.
  • sale.completed, sale.voided, sale.refunded: the sales feed, below. Only sent when the merchant has switched it on.
  • webhook.test.

Sales feed

For an app that runs its own loyalty. When the merchant switches it on (dashboard → Partners → Your own app → *Send till sales to the app*), every sale the till completes, voids or refunds is sent to your webhook:

json
{
  "id": "evt_8a1d…",
  "type": "sale.completed",
  "occurredAt": "2026-11-26T08:15:03.000Z",
  "test": false,
  "data": {
    "saleId": "a9Xk2…",
    "branchRef": "OUT-01",
    "orderNumber": "58",
    "occurredAt": "2026-11-26T08:15:01.000Z",
    "total": 3300,
    "discount": 0,
    "items": [
      { "productRef": "p_latte", "name": "Latte", "quantity": 1, "unitPrice": 1800, "modifiers": [{ "name": "Oat", "price": 300 }] },
      { "productRef": "p_croissant", "name": "Croissant", "quantity": 1, "unitPrice": 1200, "modifiers": [] }
    ],
    "paymentMethods": ["card"],
    "customer": { "name": "Sara", "phone": "+97455551234" }
  }
}
  • customer is present only when the cashier attached a customer (by phone) at checkout; otherwise it is null and there is nobody to credit. Match the phone to your user; spellings vary (55551234, +97455551234).
  • sale.voided carries the same data for the reversed sale: take back what it earned. sale.refunded adds "refund": { "type": "full" | "partial", "amount": 1500 }: take back a proportional share. A sale can be refunded more than once (two partials), so each refund is its own event.
  • Your own orders are not sent back. Orders placed through your connection are already yours; the feed skips them so you never count one twice.
  • saleId is stable: sale.completed and sale.voided for one sale share it, and their event id is stable too, so a duplicate delivery has the same id.

Verify every delivery

Each request carries:

Outale-Signature: t=1795680552,v1=5d41402abc4b2a76b9719d911017c592…
Outale-Event-Id: evt_5b2f…

v1 is the hex HMAC-SHA256 of "<t>.<raw request body>" with your webhook signing secret (whsec_…, shown once to the merchant in the dashboard). Verify against the raw body, before parsing it, and reject anything more than 5 minutes old:

js
import crypto from "node:crypto";

function verifyOutale(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  const given = Buffer.from(parts.v1 ?? "", "hex");
  const want = Buffer.from(expected, "hex");
  return given.length === want.length && crypto.timingSafeEqual(given, want);
}

Delivery

  • Answer any 2xx within 5 seconds. Do slow work after answering.
  • A failed delivery is retried after 1, 5, 30, 120, 360 and 720 minutes, then dropped.
  • Deliveries can arrive out of order or twice. De-duplicate on id, and ignore an event whose occurredAt is older than the last one you applied for that order. When in doubt, GET /orders/{orderId}: it is always the truth.

Rewards at the counter

For an app that runs its own loyalty and wants customers to spend their app rewards when paying at the counter. Here Outale calls you: you give the merchant one base address (for example https://api.example.com/outale/rewards), they enter it in the dashboard, and the till calls three endpoints under it. Every call is signed exactly like our webhooks (Outale-Signature, your whsec_… secret): verify it.

How it looks at the till. The cashier adds the customer by phone. The till asks you what that customer can use, shows each reward with what it takes off the current bill, and the cashier taps one. You mark it used only when the sale is recorded.

POST {base}/lookup

json
{
  "phone": "+97455551234",
  "branchRef": "OUT-01",
  "cart": {
    "subtotal": 4200,
    "lines": [{ "productRef": "p_latte", "unitPrice": 2100, "quantity": 2 }]
  }
}

Answer 200 with the rewards this customer can use right now (an empty list if none, or if you don't know the phone):

json
{
  "rewards": [
    { "id": "rw_8812", "name": "Free latte", "type": "free_item", "value": 0, "productRefs": ["p_latte"], "maxValue": 2500 },
    { "id": "rw_9001", "name": "QAR 10 off", "type": "amount", "value": 1000 }
  ]
}
typevalueWhat comes off the bill
amountminor unitsvalue, at most the subtotal
percent1–100that share of the subtotal (or of the productRefs lines)
free_itemunused (0)the dearest single unit among productRefs (any product if absent), capped at maxValue

productRefs (optional) limits a reward to those products; maxValue (optional) caps what it can take off. A reward that comes to nothing on this bill (a free latte with no latte) is not shown. Outale works out the amount from the bill; you decide which rewards are valid.

POST {base}/redeem

Sent when the sale is being recorded, before it is final:

json
{ "rewardId": "rw_8812", "phone": "+97455551234", "saleId": "a9Xk2…", "branchRef": "OUT-01", "amount": 2100 }

Mark the reward used and answer { "redeemed": true }. If it can no longer be used (already used, expired, not this customer's), answer { "redeemed": false, "message": "Already used today" }: the cashier sees your message and removes the reward. Be idempotent on (rewardId, saleId): the same pair again must answer redeemed: true without using a second reward, because a sale can be retried.

If you can't be reached at checkout, the cashier is asked to try again or continue without the reward. A sale made during an internet outage is sent when the till reconnects; its redeem arrives late, and is recorded even if you refuse it (the customer has left), so refuse only when the reward really was not available.

POST {base}/reverse

The sale failed after redeem, or was later voided or fully refunded. Give the reward back:

json
{ "rewardId": "rw_8812", "phone": "+97455551234", "saleId": "a9Xk2…", "reason": "voided" }

reason is sale_failed, voided or refunded. Answer { "reversed": true }. Be idempotent on (rewardId, saleId) here too.

All three must answer within 5 seconds.

POST /webhooks/test

Sends a signed webhook.test event to your URL right now and tells you whether it was delivered: { "eventId": "evt_…", "delivered": true }.

8. Putting it together

Sign-up. Your user verifies their phone in your app → POST /customers → store the returned id against your user. If created is false, they already had a profile from the counter, points and all.

Home screen. GET /customers/{id} for points, tier and rewards; GET /loyalty/program (cache it) to explain them.

Menu. GET /branches and GET /menu (with If-None-Match) on app start and every few minutes. Price and availability per the chosen branch.

Checkout. Take payment → POST /orders with payment.status: "paid" and the gateway reference. On a timeout, resend the same body. If the order is refused with a 422, refund the customer in your gateway.

Tracking. Update the order screen from webhooks; poll GET /orders/{id} if a webhook is late.

Missions and the points store. Grants and redemptions with an Idempotency-Key. Purchases earn on their own: never grant for them.

9. Support

Start with the merchant: their Outale account owner sees your connection's failed orders and can pause or resume it. For anything on our side, contact Outale through outale.com and include the X-Request-Id, the time, and your orderId; with those we can find the request in our logs.

10. Versioning

This is v1. Within v1 we only add: new endpoints, new optional request fields, new response fields, new error codes, new webhook event types. Your code should ignore fields and event types it does not know. Anything that would break an existing integration goes into a new version (/v2), and v1 keeps working alongside it. Every response carries Outale-Api-Version.