Docs / Connect API

Connect API documentation

Everything you need to publish menus, receive orders and send status updates through OCIMS Connect.

Your first request
# Publish your brand's menu
curl -X POST \
  "$BASE_URL/v1/brands/$BRAND_ID/menu" \
  -H "x-api-key: $API_KEY" \
  -H "Content-Type: application/json" \
  -d @menu.json

# → 202 Accepted
{ "publication": { "publicationId": "6f0b…",
    "providers": [{ "provider": "keeta", "state": "queued" }] } }
Introduction

Overview

A POS integrates once with OCIMS Connect and reaches Talabat, Keeta, Deliveroo and Snoonu through it. The POS sends one canonical menu per brand. Connect converts it, publishes it to every provider the brand is linked to, and reports the outcome to the brand’s webhook. Provider orders reach the POS in one order format, whatever the provider, and the POS sends order statuses back through one endpoint.

This guide is for POS developers. It covers authentication, the menu, order, item availability and store status endpoints, the webhooks Connect calls on your POS, and error handling.

Menus outPublish one menu per brand and Connect adapts it for each delivery app.
Orders inOrders from every app reach your webhook in one format.
Status both waysYour status updates reach the app; cancellations come back to you.

The API is versioned in the path (/v1). Base URLs for test and production are shared during onboarding. Opening the base URL in a browser shows a page listing the endpoints, and GET /health answers {"status":"ok"}.

Getting started

  1. Register. Contact sales@ocims.com or your account manager. When your brand is enrolled you receive its brandId, an API key and access to the partner portal.
  2. Configure. Add your three webhook URLs in the partner portal or with the API, and send us your POS location IDs so we can map them to each provider’s stores.
  3. Build and test. Publish a menu, receive test orders and send status updates on the test environment.
  4. Go live. We switch you to production and watch order flow, logs and API health with you through launch.

Authentication

Every brand endpoint (/v1/brands/{brandId}/…) and POST /v1/order/status need the brand’s API key in the x-api-key header. The key is issued when the brand is enrolled. A missing or wrong key, an unknown brand, or a brand with no key answers 401 {"error": "…"}.

http
POST /v1/brands/1/menu HTTP/1.1
x-api-key: sk_0f3c…
Content-Type: application/json

Connect sends the same key as x-api-key on every call it makes to your webhooks. Check it there to confirm a call comes from OCIMS. The helper endpoints under /v1/menus/… need no key.

Rotating the key

PUT/v1/brands/{brandId}/api-key

Send the current key in x-api-key and no body. The answer holds the new key: sk_ followed by 64 lowercase hex characters. The old key stops working at once, for your calls and for Connect’s calls to your webhooks. A wrong current key answers 401 and changes nothing.

httpResponse
HTTP/1.1 200 OK
Cache-Control: no-store
Content-Type: application/json

{ "newApiKey": "sk_7b1e9c04d2a35f86e0b47c19a3d2e58f6c0a91b4e7d3f25a8c6b0e19d4f7a2c3" }
ImportantStore the new key before you use it. The answer is the only place it appears, and the old key is already refused. Update your webhook listeners at the same time.

Webhooks

Connect calls three URLs on your POS, each with x-api-key set to the brand’s key. Set them in the partner portal, or register them yourself with the API.

Field What Connect POSTs there
menuSyncStatusWebhook Menu results, and item availability or store changes that failed
orderPlacedWebhook Each new order
orderStatusUpdateWebhook Provider cancellations, and Keeta and Snoonu deliveries

Register the URLs

PUT/v1/brands/{brandId}/webhooks
jsonRequest body
{
  "menuSyncStatusWebhook": "https://pos.example.com/connect/menu-results",
  "orderPlacedWebhook": "https://pos.example.com/connect/orders",
  "orderStatusUpdateWebhook": "https://pos.example.com/connect/order-status"
}

Only the URLs you send change; a field left out, null or blank keeps its current URL. Each URL must be an absolute http or https URL of at most 100 characters. The answer is 200 with the brand’s three webhooks as they now stand. If any URL is invalid, nothing is saved:

http
HTTP/1.1 400 Bad Request
Content-Type: application/json

{ "error": "orderPlacedWebhook must be an absolute http or https URL." }

GET /v1/brands/{brandId}/webhooks answers the same; a webhook that isn’t set is left out. Other answers: 400 when no URL is sent or one is too long, 401 for a wrong key, 404 for an unknown brand.

Previous versionPOST /v1/integration/register-webhooks takes the same fields plus brandId (a number or a string) and answers like the PUT.

Answering and retries

  • Answer with any 2xx. The body of your answer isn’t read.
  • Make handlers idempotent: the same call can arrive more than once after a retry.
  • Order and order status calls that time out or answer 408, 429 or 5xx are retried with backoff (10 seconds, doubling to 2 minutes) for 30 minutes.
  • Menu result calls are retried every 30 seconds for up to 30 minutes. Other answers are not retried.

Conventions

  • JSON: UTF-8, camelCase property names, enums as camelCase strings (awaitingCallback, monday). Arabic text is sent as is, not escaped. Menu responses leave out null fields; order JSON writes them.
  • IDs are your POS IDs. Connect never rewrites category, item, group or option IDs on any provider, so order lines come back with the same codes you published.
  • Money: decimal numbers, tax-inclusive, in the menu’s currency. KWD, BHD, OMR and JOD allow 3 decimals; most others allow 2. A price with more decimals than its currency allows is a validation error.
  • Currency: an ISO 4217 code. A brand menu may leave it out; the brand’s own currency is then used.
  • Text: names and descriptions are objects keyed by language, {"en": "Fries", "ar": "بطاطس"}. English is required. Missing Arabic is a warning, and providers then show English. Snoonu refuses names without Arabic.
  • Times: order times carry the brand’s UTC offset (2026-11-22T17:09:13+03:00). Menu schedules are store-local HH:mm:ss.

Errors and status codes

Code Meaning
200 Done; the body holds the result
202 Accepted for background processing (menus, availability, store status)
400 Malformed request, unknown status word, or not a legacy menu
401 x-api-key missing or wrong
404 Unknown brand, publication or order
409 The order can’t take that status change
422 The menu is invalid, or there is nothing to publish or send
5xx Connect failed; retry later

Errors carry {"error": "…"}. A body that isn’t valid JSON, or is missing a required field, is refused with 400 and an empty body. An unknown publication or change answers 404 with no body.

Menu errors also carry a validation report. Issue codes are stable (menu.*, legacy.*, and per provider keeta.*, talabat.*, deliveroo.*, snoonu.*), so match on codes, not messages. Errors block publishing; warnings don’t.

httpMenu not published
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json

{
  "error": "The menu has validation errors; nothing was published.",
  "validation": {
    "issues": [
      {
        "severity": "error",
        "code": "menu.unknown-modifier-group",
        "path": "items[PRO_101].modifierGroupIds",
        "message": "Item references unknown modifier group 'MEN_999_1'."
      }
    ],
    "isValid": false,
    "errors": [ … the same issue … ],
    "warnings": []
  }
}

Other 422 errors include Brand '1' has no active link to talabat. (nothing to publish to) and The menu has no currency and brand '1' has none set; nothing was published.

Publishing a menu

Send one menu per brand, not per store. Connect publishes it to each provider the brand is linked to: Talabat and Deliveroo get one brand menu, Keeta gets one menu per store, and Snoonu gets one menu with settings per store. Stores that don’t sell an item are listed in the menu itself.

POST/v1/brands/{brandId}/menu

The menu is checked at once. You get your answer as soon as it’s checked, and each provider’s outcome arrives later on your menu results webhook.

The canonical menu

The menu is normalized: categories list item IDs, items and options list modifier group IDs, and groups are defined once and shared.

jsonRequest body
{
  "menuId": "brand-1",
  "currency": "KWD",
  "categories": [
    {
      "id": "CAT_10",
      "name": { "en": "Burgers", "ar": "برجر" },
      "sortOrder": 1,
      "availability": {
        "windows": [
          { "day": "sunday",    "from": "11:00:00", "to": "02:00:00" },
          { "day": "monday",    "from": "11:00:00", "to": "02:00:00" },
          { "day": "tuesday",   "from": "11:00:00", "to": "02:00:00" },
          { "day": "wednesday", "from": "11:00:00", "to": "02:00:00" },
          { "day": "thursday",  "from": "11:00:00", "to": "02:00:00" },
          { "day": "friday",    "from": "11:00:00", "to": "02:00:00" },
          { "day": "saturday",  "from": "11:00:00", "to": "02:00:00" }
        ]
      },
      "itemIds": ["PRO_101"]
    }
  ],
  "items": [
    {
      "id": "PRO_101",
      "name": { "en": "Classic Burger", "ar": "برجر كلاسيك" },
      "description": { "en": "Beef patty, cheese", "ar": "لحم بقري، جبن" },
      "price": 1.750,
      "isAvailable": true,
      "imageUrl": "https://example.com/images/burger.jpg",
      "allergens": [],
      "modifierGroupIds": ["MEN_412_1"],
      "providerOverrides": [
        { "provider": "keeta", "excluded": true }
      ]
    }
  ],
  "modifierGroups": [
    {
      "id": "MEN_412_1",
      "name": { "en": "Fries Choice", "ar": "اختيار البطاطس" },
      "minSelection": 1,
      "maxSelection": 1,
      "options": [
        {
          "id": "PRM_7039",
          "name": { "en": "Regular Fries", "ar": "بطاطس عادي" },
          "price": 0.000,
          "isAvailable": true,
          "sortOrder": 1,
          "modifierGroupIds": []
        },
        {
          "id": "PRM_7040",
          "name": { "en": "Large Fries", "ar": "بطاطس كبير" },
          "price": 0.250,
          "isAvailable": true,
          "sortOrder": 2,
          "modifierGroupIds": []
        }
      ]
    }
  ],
  "locationExclusions": [
    { "locationId": "1003", "itemIds": ["PRO_101"] }
  ]
}
Field Rules
menuId Required
currency Optional for brand menus; the brand’s currency is used
categories[].itemIds Item IDs in display order; an item may sit in several categories
availability Weekly windows in store-local time; to before from runs past midnight; omitted means always available
items[].isAvailable false means sold out or hidden on every provider
nutrition, allergens Optional; leave nutrition out when unknown, never send zeros
providerOverrides Per provider: excluded leaves the item off that provider; price replaces its price there
minSelection / maxSelection maxSelection omitted means no upper limit
options[].price Price of the option in this group; the same option may cost differently in another group
options[].modifierGroupIds Groups opened by choosing the option, e.g. meal size, then drink
locationExclusions Items a POS location doesn’t sell, by your location ID

Providers differ in what they can show; some can’t nest groups or show schedules. Connect reports what a provider can’t take as provider issues, such as talabat.nesting-too-deep, in the publication.

Query parameters

Parameter Meaning
providers Optional, comma-separated (keeta,deliveroo). Default: every active provider of the brand
force true also sends menus identical to the last successful one; by default those are skipped

The answer

An invalid menu, or a brand with no active provider, answers 422 with the validation report. Otherwise the answer is 202 Accepted, with a Location header pointing to the publication:

json202 Accepted
{
  "publication": {
    "publicationId": "6f0b…",
    "brandId": "1",
    "createdAt": "…",
    "providers": [ { "provider": "keeta", "state": "queued", "pushes": [] } ]
  },
  "validation": { "issues": [], "isValid": true }
}

Publishing to each provider then runs in the background. Each accepted menu is also saved as the brand’s menu on the OCIMS dashboard.

POST/v1/brands/{brandId}/legacy-menu

Takes the menu JSON of the previous API version, with the same providers and force options. Connect converts it to the canonical menu using the brand’s currency and the menu ID brand-{brandId}. The answer also carries an import report. 400 means the body isn’t a legacy menu; 422 means import or validation errors.

In the conversion, legacy hours have no days, so 11:00–02:00 becomes the same window on every day (warning legacy.availability-assumed-daily). All-zero nutrition means unknown and is left out. aggregatorExceptions become providerOverrides, and unavailableInLocations becomes locationExclusions.

The same menu in the previous version’s format
json
{
  "categories": [
    {
      "categoryId": "CAT_10",
      "name": "Burgers",
      "alternativeName": "برجر",
      "description": null,
      "alternativeDescription": null,
      "sortOrder": 1,
      "limited": false,
      "availableFrom": "11:00",
      "availableTo": "02:00",
      "items": [
        {
          "itemId": "PRO_101",
          "name": "Classic Burger",
          "alternativeName": "برجر كلاسيك",
          "description": "Beef patty, cheese",
          "alternativeDescription": "لحم بقري، جبن",
          "price": 1.750,
          "available": true,
          "sortOrder": 0,
          "imageUrl": "https://example.com/images/burger.jpg",
          "nutrition": { "calories": 0, "fat": 0, "carb": 0, "protein": 0, "fiber": 0 },
          "allergens": [],
          "modifiers": [
            {
              "modifierId": "MEN_412_1",
              "name": "Fries Choice",
              "alternativeName": "اختيار البطاطس",
              "sortOrder": 0,
              "minSelection": 1,
              "maxSelection": 1,
              "choices": [
                { "choiceId": "PRM_7039", "name": "Regular Fries", "alternativeName": "بطاطس عادي", "price": 0.000, "available": true, "sortOrder": 1, "modifiers": null },
                { "choiceId": "PRM_7040", "name": "Large Fries", "alternativeName": "بطاطس كبير", "price": 0.250, "available": true, "sortOrder": 2, "modifiers": null }
              ]
            }
          ],
          "aggregatorExceptions": ["Keeta"],
          "aggregatorPriceExceptions": []
        }
      ]
    }
  ],
  "unavailableInLocations": [
    { "locationId": "1003", "itemIds": ["PRO_101"] }
  ]
}

Helper endpoints

These need no API key.

Endpoint Use
POST /v1/menus/validate Check a canonical menu; answers the validation report
POST /v1/menus/import/ocims-legacy?menuId=&currency= Convert a legacy menu to the canonical menu, without publishing
POST /v1/menus/transform?provider=keeta&locations=1003,1004 Preview what would be sent to one provider (keeta, talabat, deliveroo, snoonu), without sending it

Receiving orders

Connect pushes each provider order to your POS in one format, whatever the provider. Your POS sends status changes back, and Connect forwards them to the provider. An order is identified by orderId, Connect’s order number (e.g. 100047); orderNo is the provider’s own order ID.

Connect POSTs each new order to your order URL (orderPlacedWebhook) with x-api-key set to the brand’s key. Orders are sent only for brands with POS integration switched on, and only for locations set to receive orders. Answer with any 2xx; the body of your answer isn’t read. A provider may send the same order twice, but Connect passes each order to the POS once.

By default Connect accepts the order with the provider straight away (autoAccepted: true). A brand can instead be set so the POS accepts or rejects each order itself; watch acceptBefore, after which the provider cancels the order.

jsonOrder body
{
  "orderNo": "4324100000000047",
  "orderId": "100047",
  "brandName": "Burger House",
  "locationId": "1001",
  "initiatedTime": "2026-11-22T22:20:00.889+03:00",
  "orderType": "delivery",
  "source": "Keeta",
  "customerComment": "Need cutlery",
  "customerInfo": {
    "name": "Keeta",
    "email": null,
    "phone": "12345"
  },
  "deliveryInfo": {
    "type": "self",
    "deliveryTime": "2026-11-22T22:46:01+03:00",
    "addressDetails": null,
    "area": null,
    "street": null,
    "buildingNo": null,
    "floor": null,
    "apartment": null,
    "comments": null,
    "longitude": 47.97,
    "latitude": 29.37,
    "deliveredBy": "provider",
    "riderPickupTime": null,
    "block": null,
    "city": null
  },
  "pickupInfo": null,
  "priceInfo": {
    "total": 5.15,
    "subTotal": 4.4,
    "deliveryFees": 0.75,
    "discount": 0,
    "itemsTotal": 4.4,
    "serviceFee": 0,
    "tip": 0,
    "tax": 0,
    "itemDiscount": 0,
    "deliveryDiscount": 0
  },
  "payment": {
    "status": "paid",
    "type": "online",
    "method": "prepaid",
    "amountDue": 0
  },
  "items": [
    {
      "name": "DOUBLE BURGER MEAL",
      "paidPrice": 2.9,
      "unitPrice": 2.7,
      "quantity": 1,
      "itemCode": "PRO_7286",
      "comment": null,
      "selectedOptions": [
        {
          "name": "Pepsi Large",
          "price": 0,
          "unitPrice": 0,
          "quantity": 1,
          "code": "PRM_7138",
          "selectedOptions": null,
          "groupCode": "MEN_283_1",
          "lineTotal": 0,
          "discount": 0
        },
        {
          "name": "Onion Rings",
          "price": 0.2,
          "unitPrice": 0.2,
          "quantity": 1,
          "code": "PRM_7039",
          "selectedOptions": null,
          "groupCode": "MEN_412_1",
          "lineTotal": 0.2,
          "discount": 0
        }
      ],
      "lineTotal": 2.9,
      "discount": 0,
      "providerLineId": null
    },
    {
      "name": "Mushroom Swiss Burger",
      "paidPrice": 1.5,
      "unitPrice": 1.5,
      "quantity": 1,
      "itemCode": "PRO_7078",
      "comment": null,
      "selectedOptions": [
        {
          "name": "Grill Sauce",
          "price": 0,
          "unitPrice": 0,
          "quantity": 1,
          "code": "CON_839",
          "selectedOptions": null,
          "groupCode": "COM_7078_1",
          "lineTotal": 0,
          "discount": 0
        }
      ],
      "lineTotal": 1.5,
      "discount": 0,
      "providerLineId": null
    }
  ],
  "discounts": [],
  "tableNumber": null,
  "provider": "keeta",
  "brandId": "1",
  "providerLocationId": "860000001",
  "displayCode": "12",
  "currency": "KWD",
  "acceptBefore": "2026-11-22T22:25:00+03:00",
  "isPreOrder": false,
  "cutleryRequested": true,
  "isTest": false,
  "autoAccepted": true
}

Every field is always present, with null when unknown. The fields up to tableNumber are the previous API version’s order format, unchanged; the fields after it were added by Connect.

Field Meaning
orderType delivery or pickup
deliveryInfo.deliveredBy provider means the provider’s rider; merchant means the restaurant delivers (address filled)
itemCode, code, groupCode The IDs you published, passed through exactly as the provider sends them
selectedOptions Options per one unit of the parent; options can nest
lineTotal (item unitPrice + options’ lineTotal) × quantity − line discount. An option’s lineTotal is its price × its quantity, nested options included
paidPrice, unitPrice, option price As the provider reports them (rules differ slightly by provider); prefer lineTotal for totals
priceInfo.total What the customer pays
payment.method prepaid, cash or card_on_delivery; amountDue is what the driver or counter collects
discounts[] name, value, code, scope (order, item, delivery), itemCode, fundedBy, merchantAmount, providerAmount
displayCode The short number the rider and customer see
acceptBefore Deadline for accepting before the provider cancels

Status updates from Connect

When the provider cancels an order, or Keeta or Snoonu reports it delivered, Connect POSTs to your order status URL (orderStatusUpdateWebhook) with x-api-key:

json
{ "orderId": "100047", "status": "canceled", "reason": "Customer cancelled" }

status is canceled or completed. Other provider events (rider assigned, collected) are kept in the order’s history and not sent. Answer with any 2xx; failed calls are retried for 30 minutes, as for orders.

Case reason
Keeta cancelled Keeta’s reason, plus who cancelled: Customer changed mind; cancelled by the customer
Talabat cancelled Talabat’s status word, then its message: ORDER_CANCELLED: Restaurant did not respond
No reason given Order canceled by Deliveroo
Delivered by the provider’s rider (Keeta and Snoonu, completed) Always empty

The reason texts are examples; the formats match what Connect sends.

Sending a status

POST/v1/brands/{brandId}/orders/{orderId}/status
jsonRequest body
{
  "status": "rejected",
  "reason": "busy"
}
status Effect at the provider
accepted Accepts the order (no change if it was auto-accepted)
rejected Rejects it; reason is passed on (e.g. busy, closed, item unavailable)
preparing Recorded only
ready Marks it ready for pickup
picked_up Marks it collected (pickup and restaurant-delivered orders)
completed / delivered Recorded
canceled / cancelled Cancels it (a cancel before acceptance is a rejection)

Connect answers at once and calls the provider in the background, retrying for up to 30 minutes. A provider’s refusal shows in the order’s history, not in this answer.

Answers

json200 OK: status changed
{ "orderId": "100047", "status": "ready", "changed": true }

changed: false means the order was already at or past that step (for example ready after the rider collected it), and nothing is sent to the provider:

json200 OK: already past that step
{ "orderId": "100047", "status": "pickedUp", "changed": false }
json409 Conflict: not allowed
{
  "error": "Order 100047 is CancelledByProvider and cannot become Ready.",
  "status": "cancelledByProvider"
}

400 for an unknown status word ({ "error": "Unknown status 'done'." }), 404 for an unknown order ({ "error": "Order 100047 not found." }).

Previous versionPOST /v1/order/status with {"orderId": "100047", "status": "ready", "reason": null} still works. It is checked against the order’s brand key and answered the same way.

Looking up an order

GET/v1/brands/{brandId}/orders/{orderId}

Returns order (as sent to your order URL), status, posDelivery (whether it reached your order URL), posDeliveredAt, posDeliveryError, and events: the history, each with at, event, source and description.

The Keeta order from Receiving orders, after the rider delivered it:

json200 OK
{
  "order": {
    "orderNo": "4324100000000047",
    "orderId": "100047",
    "source": "Keeta",
    "…": "the whole order, as sent to the order URL",
    "autoAccepted": true
  },
  "status": "Delivered",
  "posDelivery": "Delivered",
  "posDeliveredAt": "2026-11-22T22:20:02.114+03:00",
  "posDeliveryError": null,
  "events": [
    { "at": "2026-11-22T22:20:01.402+03:00", "event": "received",  "source": "Keeta",    "description": null },
    { "at": "2026-11-22T22:20:01.415+03:00", "event": "accepted",  "source": "Ocims",    "description": "Accepted automatically" },
    { "at": "2026-11-22T22:20:02.114+03:00", "event": "sent",      "source": "Ocims",    "description": "Sent to the POS" },
    { "at": "2026-11-22T22:31:40.870+03:00", "event": "ready",     "source": "Merchant", "description": null },
    { "at": "2026-11-22T22:36:12.000+03:00", "event": "picked up", "source": "Keeta",    "description": "Rider collected the order" },
    { "at": "2026-11-22T22:46:05.000+03:00", "event": "completed", "source": "Keeta",    "description": "Delivered" }
  ]
}
  • status: one of Received, Accepted, Preparing, Ready, PickedUp, Delivered, Rejected, CancelledByProvider, CancelledByMerchant, Failed. Note the capital letter here; the status answer uses camelCase (pickedUp).
  • posDelivery: Pending, Delivered, Failed (retries used up, see posDeliveryError) or NotSent (the brand or location doesn’t take orders).
  • source: the provider’s name, Merchant (your POS) or Ocims (Connect itself).

The event words and descriptions are examples. An unknown order, or one of another brand, answers 404 {"error": "Order 100047 not found."}.

Provider differences

The order JSON, the endpoints and the status words are the same for every provider. What differs is how each provider fills some fields, and which status changes it can take.

Order fields

Field Talabat Keeta Deliveroo Snoonu
orderNo Talabat order code Keeta order view ID Deliveroo order number Snoonu order ID
displayCode Talabat short code Keeta sequence number Deliveroo display ID None; show orderNo
acceptBefore Talabat’s expiry time About 5 minutes after the order 7 minutes after the order in Kuwait and the UAE, else 10 (ASAP orders only) Not sent; Snoonu expects acceptance within 5 minutes
orderType pickup Pickup orders Pickup orders Customer collects Takeaway and drive-thru; car plate and colour in customerComment
Customer name and phone As sent Masked by Keeta (Keeta, 12345) First name and contact number Snoonu customer when no name is sent
cutleryRequested Always false Customer’s choice From Deliveroo’s cutlery notes Always false

Item and option codes are passed through as each provider sends them, so orders on a menu published by an earlier integration may carry its codes.

Statuses your POS sends

Status Talabat Keeta Deliveroo Snoonu
accepted Sent Sent Sent Sent
rejected Sent; reason TOO_BUSY, ITEM_UNAVAILABLE …, else TOO_BUSY Sent; item unavailable, store closed, busy, or your text Sent; busy, closing early, ingredient unavailable, or other with your text Only once Snoonu enables it; no reason sent
ready Sent Sent Sent Sent
picked_up Sent Pickup orders only Pickup and restaurant-delivered orders only Restaurant-delivered orders only
canceled after acceptance Sent Sent Not possible; Deliveroo support cancels Only once Snoonu enables it

Talabat sends a call only when the order includes its callback URL.

Statuses sent back to your POS

Talabat Keeta Deliveroo Snoonu
canceled canceled, completed canceled canceled, completed

Item availability

Mark items sold out or back in stock between menu publishes. Connect forwards the change to every provider store of the brand, or of one location. Only items can be changed; option IDs are reported as warnings and not sent. The next menu you publish replaces these changes, so a menu must carry the availability that should last.

POST/v1/brands/{brandId}/availability
jsonRequest body
{ "locationId": "1001", "available": false, "itemIds": ["PRO_7039", "PRO_7040"] }
Field Meaning
locationId The POS location. Leave it out to change every location of the brand
available Required. false means sold out, true back in stock
itemIds Required, at least one. POS item IDs, as in the menu

The answer is 202 Accepted with {change, validation} and a Location header to the change. Connect checks the IDs against the brand’s last published menu; unknown IDs and option IDs come back as warnings and aren’t sent. 400 means no itemIds or no available; 404 an unknown brand; 422 nothing to send (no known item, or no provider store for the location).

Each accepted change also updates the brand’s menu on the OCIMS dashboard: with a locationId it adds or removes that location’s exclusion; without one it sets the item’s availability.

json202 Accepted
{
  "change": {
    "changeId": "3f6c2a1e-8b4d-4e57-9a0c-5d1e2f3a4b6c",
    "brandId": "1",
    "locationId": "1001",
    "available": false,
    "itemIds": ["PRO_7039"],
    "createdAt": "2026-11-24T10:15:02+00:00",
    "validation": { … as below … },
    "providers": [
      {
        "provider": "keeta",
        "linkId": 3,
        "calls": [
          {
            "callId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
            "stores": [ { "providerLocationId": "860000001", "locationIds": ["1001"], "itemIds": ["PRO_7039"] } ],
            "state": "pending",
            "attempts": 0
          }
        ]
      }
    ],
    "state": "Pending"
  },
  "validation": {
    "issues": [
      {
        "severity": "warning",
        "code": "availability.unknown-item",
        "path": "itemIds[PRO_7040]",
        "message": "Not an item of the brand's last published menu; not sent."
      }
    ],
    "isValid": true
  }
}

Warnings

Code Meaning
availability.unknown-item The ID isn’t in the brand’s last published menu; not sent
availability.option-not-supported An option ID; only items can be changed
availability.no-menu The brand has no published menu yet; IDs were sent unchecked
availability.no-store A provider has no store for the location; nothing sent to it
availability.excluded-for-provider The menu excludes the item for that provider; not sent there
availability.excluded-at-location Making it available everywhere, but every POS location of that store excludes it in the menu; not sent there
availability.link-inactive, availability.unsupported The brand’s link to a provider is off, or the provider can’t take availability changes
deliveroo.item-not-uploaded The item isn’t on the menu uploaded to Deliveroo (unavailable or excluded at upload); not sent
availability.dashboard-not-updated The change was sent, but the OCIMS dashboard couldn’t be updated

Following a change

GET/v1/brands/{brandId}/availability-changes/{changeId}

The change is sent in the background, and failed provider calls are retried for 30 minutes. This shows the change (without the change wrapper) with its state: Pending while any request is pending, then Failed if any failed, else Succeeded. Each request shows its stores, items, attempts, completedAt, the provider’s answer in providerResponse and, on failure, error. A request that fails for good also reaches your menu result URL as a failed result for each location. An unknown change ID, or one of another brand, answers 404.

jsonA request that failed
{
  "callId": "c4d5e6f7-0a1b-4c2d-8e3f-4a5b6c7d8e9f",
  "stores": [ { "providerLocationId": "1001", "locationIds": ["1001"], "itemIds": ["PRO_7039"] } ],
  "state": "failed",
  "attempts": 1,
  "error": "Deliveroo answered 400: {\"message\":\"invalid site_id\"}",
  "providerResponse": "{\"message\":\"invalid site_id\"}",
  "completedAt": "2026-11-24T10:15:03+00:00"
}

What each provider receives

Provider What Connect sends
Talabat One request for all branches, items available or not
Keeta One request per shop, up to 200 items each
Snoonu One snooze or unsnooze request per channel, covering all its items; stays until changed
Deliveroo One request per site: available or hidden. Hidden lasts until you make the item available; it doesn’t reset each morning. Items not on the uploaded menu are left out with a warning
Previous versionPOST /v1/menu/item/availability with {brandId, locationId, itemId, available} and POST /v1/menu/items/availability with {brandId, locationId, available, itemIds} still work, with the brand’s x-api-key. brandId may be a number or a string; a missing available means false, and a missing locationId means every location. They answer 200 with the same {change, validation} body.

Store status

Open or close one location on its delivery providers, and read its state. A closed store stays closed until you open it again; there is no timed pause. Connect does this on Talabat, Keeta and Deliveroo. Snoonu has no API to close a store, so it is skipped with a warning; change it in the Snoonu portal.

Open or close a location

PUT/v1/brands/{brandId}/locations/{locationId}/status
jsonRequest body
{
  "status": "closed",
  "reason": "TOO_BUSY_KITCHEN"
}
Field Required Meaning
status Yes open or closed
reason No Why the store closes, up to 200 characters. Talabat takes it when it’s one of its reasons (TOO_BUSY_KITCHEN, TOO_BUSY_NO_DRIVERS, BAD_WEATHER, TECHNICAL_PROBLEM, HOLIDAY_SPECIAL_DAY …), otherwise CLOSED. Keeta and Deliveroo take no reason
providers No Only these providers, e.g. ["talabat", "keeta"]. Omitted means every provider of the location

The answer is 202 Accepted with {change, validation} and a Location header to the change. Connect then opens or closes each provider store in the background. Temporary provider failures are retried for 30 minutes, and a newer change of the same location replaces a request still being retried. A store it couldn’t change is reported to your menu result URL as a failed result.

json202 Accepted
{
  "change": {
    "changeId": "0f6b3c1e-8d2a-4e57-9a61-3c2f0d9b7a10",
    "brandId": "1",
    "locationId": "1001",
    "status": "closed",
    "reason": "TOO_BUSY_KITCHEN",
    "createdAt": "2026-11-24T15:20:04.512+00:00",
    "providers": [
      {
        "provider": "talabat",
        "linkId": 1,
        "calls": [ { "callId": "5a0c…", "providerLocationId": "1001", "locationIds": ["1001"], "state": "pending", "attempts": 0 } ]
      },
      {
        "provider": "keeta",
        "linkId": 3,
        "calls": [ { "callId": "9e41…", "providerLocationId": "880001", "locationIds": ["1001"], "state": "pending", "attempts": 0 } ]
      }
    ],
    "state": "Pending"
  },
  "validation": {
    "issues": [
      {
        "severity": "warning",
        "code": "storestatus.not-supported",
        "path": "providers[snoonu]",
        "message": "snoonu has no API to open or close a store; change it on the snoonu portal or tablet."
      }
    ],
    "isValid": true
  }
}

400 means status isn’t open or closed, or the reason is too long; 404 an unknown brand; 422 the location has no store on a provider Connect can open or close (warning storestatus.no-store). storestatus.not-supported means the provider has no store status API (Snoonu), so nothing was sent there.

Read a location’s state

GET/v1/brands/{brandId}/locations/{locationId}/status

Asks each provider live and returns one entry per provider store: state (open, closed or unknown), the provider’s own words in detail, or error when it couldn’t be read. lastChange is the last change you made through Connect. 404 means an unknown brand.

json200 OK
{
  "brandId": "1",
  "locationId": "1001",
  "stores": [
    { "provider": "talabat",   "linkId": 1,  "providerLocationId": "1001",      "state": "closed",  "detail": "TB/600001: CLOSED (TOO_BUSY_KITCHEN)" },
    { "provider": "keeta",     "linkId": 3,  "providerLocationId": "880001",    "state": "closed",  "detail": "status 4, availableForOrder false" },
    { "provider": "deliveroo", "linkId": 2,  "providerLocationId": "1001",      "state": "open",    "detail": "OPEN" },
    { "provider": "snoonu",    "linkId": 39, "providerLocationId": "019eac45-…", "state": "unknown", "error": "snoonu has no API to read a store's status." }
  ],
  "lastChange": { "changeId": "0f6b3c1e-8d2a-4e57-9a61-3c2f0d9b7a10", "status": "closed", "state": "Succeeded", "…": "…" }
}

Following a change

GET/v1/brands/{brandId}/store-status-changes/{changeId}

Returns the change as above. Each request’s state becomes succeeded or failed, with attempts, completedAt, the provider’s answer in providerResponse and, on failure, error. The change’s state is Pending while any request is, Failed if any failed, else Succeeded. An unknown change ID, or one of another brand, answers 404 with no body.

What each provider does

Provider What Connect sends
Talabat Reads the branch first, then sets each Talabat restaurant behind it to OPEN or CLOSED with a reason. Fails when Talabat doesn’t allow a change at that moment. Delivery Hero must switch this feature on for the integration
Keeta Suspends or reactivates the shop (delivery and pickup together). Can’t lift a stop Keeta itself set, e.g. for bad weather
Deliveroo Sets the site OPEN or CLOSED. Deliveroo refuses to open a site outside its opening hours, on holiday or during a closure it set
Snoonu Nothing; there is no API to close a store

Endpoint reference

Endpoints you call

Method and path Key Purpose
POST /v1/brands/{brandId}/menu Yes Publish a menu (202)
POST /v1/brands/{brandId}/legacy-menu Yes Publish a menu in the previous version’s format (202)
GET /v1/brands/{brandId}/menu-publications/{id} Yes Progress of a publication
GET /v1/brands/{brandId}/orders/{orderId} Yes An order, its status and history
POST /v1/brands/{brandId}/orders/{orderId}/status Yes Send an order status
POST /v1/order/status Order’s brand Same, in the previous version’s form
POST /v1/brands/{brandId}/availability Yes Mark items sold out or back in stock (202)
GET /v1/brands/{brandId}/availability-changes/{id} Yes Outcome of an availability change per provider
POST /v1/menu/item(s)/availability Body’s brand Same, in the previous version’s form
PUT /v1/brands/{brandId}/locations/{locationId}/status Yes Open or close a location (202)
GET /v1/brands/{brandId}/locations/{locationId}/status Yes A location’s state on each provider, read live
GET /v1/brands/{brandId}/store-status-changes/{id} Yes Outcome of a store status change per provider store
PUT /v1/brands/{brandId}/api-key Yes Replace the brand’s API key
PUT /v1/brands/{brandId}/webhooks Yes Register the brand’s webhook URLs
GET /v1/brands/{brandId}/webhooks Yes Show the brand’s webhook URLs
POST /v1/integration/register-webhooks Body’s brand Same, in the previous version’s form
POST /v1/menus/validate No Validate a canonical menu
POST /v1/menus/import/ocims-legacy No Convert a legacy menu to canonical
POST /v1/menus/transform No Preview a provider’s payload
GET /health No Liveness check

Webhooks Connect calls on your POS

Each call carries x-api-key set to the brand’s key.

Webhook When
Menu result URL Each menu push accepted, confirmed or failed, and failed availability or store changes
Order URL Each new provider order
Order status URL Provider cancellation or completion

Stuck on something?

Our integration team replies within one business day.

Talk to the team →