Skip to content

Guide

How an integration works

Four steps take you from a registered app to your first authenticated API call.

  1. 1SetupRegister AppSend your app details to iResto. You receive an App KeyId and a one-time App Secret.One-time setup
  2. 2BrowserHandle InstallA restaurant clicks Install. Their browser lands on your Install URL with a one-time state.GET {your Install URL}?state=…

The browser never receives the Installation Token

The restaurant’s browser only ever carries the one-time state to your Install URL. Everything from /install/complete onward is a server-to-server exchange between iResto and your backend.

Three credentials, three jobs

Each credential authenticates exactly one thing. They are never interchangeable - presenting one where another is expected returns 401.

ApiKeyApp Credential authenticates/install/exchangewhich returns Bearer+ HMACfor one installation
ApiKey

App Credential

Your Partner App - shared by every restaurant

Authenticates the installation handshake. Nothing else.

Authorization: ApiKey {AppKeyId}.{AppSecret}

Issued: Once, when iResto publishes your app

Bearer

Installation Token

One restaurant installation

Authenticates every Partner API call, including /whoami.

Authorization: Bearer {InstallationToken}

Issued: Returned by /install/exchange

HMAC

Webhook Signing Secret

The same installation

Verifies the signature on every webhook iResto sends you.

HMAC-SHA256 key - never sent as a header

Issued: Returned by /install/exchange

Next: register your app

Step 1

Register your app

Send your app details, Install URL, webhook URL, requested scopes and events to iResto. Once approved, you’ll receive your App KeyId and one-time App Secret.

You send

  • App identity - name, description, publisher, logo, website, support/privacy/terms links
  • Install URL - the HTTPS page a restaurant’s browser is sent to on Install
  • Webhook URL - where signed events are delivered (if you subscribe to any)
  • Requested scopes - only what your integration calls
  • Subscribed events - only ones you act on

You receive

  • App KeyId (mpa_…) - safe to store in config
  • App Secret - shown exactly once; store it in your secret manager
  • A published app restaurants can install from their Store Dashboard
App KeyId:   mpa_xxxxxxxxxxxxxxxxxx
App Secret:  <shown exactly once>
  • • The App credential belongs to your app, not to a restaurant - every installation’s handshake uses the same pair.
  • • It is used only for /api/marketplace/install/complete and /exchange - never for a Partner API call or /whoami.
  • • Rotating or revoking it never invalidates a connected restaurant’s Installation Token; it only affects new handshakes.

Good to know

Registration is currently completed by iResto Platform Admin - there is no self-service developer portal yet. These are not OAuth Client ID / Client Secret values; there is no OAuth2 connection model in this contract.

Steps 2-3

Handle an installation

When a restaurant installs (or reconnects) your app, three things happen in order.

A The browser arrives at your Install URL

GET {your Install URL}?state={one-time state}
  • • state is short-lived and single-use. It is not a credential.
  • • Sign your customer in (or whatever your product needs) and decide which of your accounts this installation belongs to.

B Complete the handshake

POST/api/marketplace/install/complete ApiKey

From your backend, send the state with your App credential. You get a one-time exchangeCode - never the token itself.

Request

curl -X POST "https://api.resto.isoft4is.net/api/marketplace/install/complete" \
  -H "Authorization: ApiKey <APP_KEY_ID>.<APP_SECRET>" \
  -H "Content-Type: application/json" \
  -d '{ "state": "<STATE_FROM_REDIRECT>" }'

Response

{
  "exchangeCode": "<ONE_TIME_EXCHANGE_CODE>"
}
Replay and cross-App behavior

state is destroyed the moment it is consumed by the App it was issued for, so a second call always fails. If a different App presents it, that attempt fails and the state is left untouched - your own completion still succeeds afterward.

Every failure reason (never issued, expired, already used, wrong App) returns the same generic response. If you see it, send the customer back through Install.

{
  "status": 409,
  "title": "tenancy.app_installation.partner_handshake_state_invalid",
  "type": "tenancy.app_installation.partner_handshake_state_invalid",
  "detail": "This install handshake's state is missing, expired, or was already used. Start again.",
  "code": "tenancy.app_installation.partner_handshake_state_invalid"
}

C Exchange the code for credentials

POST/api/marketplace/install/exchange ApiKey

Store all three values: installationId (permanent identity), installationToken (send as Authorization: Bearer … - never parse it) and webhookSigningSecret (your HMAC key).

Request

curl -X POST "https://api.resto.isoft4is.net/api/marketplace/install/exchange" \
  -H "Authorization: ApiKey <APP_KEY_ID>.<APP_SECRET>" \
  -H "Content-Type: application/json" \
  -d '{ "exchangeCode": "<ONE_TIME_EXCHANGE_CODE>" }'

Response

{
  "installationId": "<INSTALLATION_ID>",
  "installationToken": "mpk_xxxxxxxxxxxxxxxxxx.<secret>",
  "webhookSigningSecret": "<secret>"
}

Retry-safe

Lost the response or timed out? Retry with the same exchangeCode while it is still valid - you get the identical installationId, token and secret, never a newly minted token. The code expires after a bounded TTL; after that, the installation must go through Install again.

Step 4

Identify the installation

Immediately after the exchange - and any time as a sanity check - call /whoami with the Installation Token.

GET/api/partner/v1/whoami Bearer

Request

curl "https://api.resto.isoft4is.net/api/partner/v1/whoami" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>"

Response

{
  "installationId": "<INSTALLATION_ID>",
  "app": {
    "id": "<APP_ID>",
    "key": "your-app-key",
    "name": "Your App Name"
  },
  "contractVersion": 4,
  "store": {
    "name": "Restaurant Name"
  },
  "scopes": [
    "Catalog.Read",
    "Orders.Create"
  ],
  "status": "Connected"
}

status is a string - "Installed" | "Connected" | "Error" | "Disabled" - the one REST field hand-converted from its enum to a name instead of a number; see Enum Reference.

Persist this mapping

installationIdyour customer / account / store

installationId is the canonical iResto identity for this Partner ↔ restaurant installation. Every webhook carries it in its envelope - route events by it, never by business fields in the payload.

tenantId is deliberately not part of this contract - not on /whoami, webhooks or any Partner API response.

You’re connected. Next, build your integration:

Build

Order Source

You describe customer intent; iResto alone decides validity, prices and totals. Every call uses Authorization: Bearer <InstallationToken>.

Catalog.Read Orders.Create GET /orders/{id} (poll)

  1. Read the branch’s catalog for real product, variant and modifier IDs (Catalog).
  2. Create the order with a fresh Idempotency-Key and your own externalOrderId.
  3. Store the returned orderId with your order record.
  4. Poll GET /orders/{orderId} for status changes.
  5. Cancel it yourself only while it is still Pending.

Create an order

POST/api/partner/v1/orders BearerOrders.Create

Every identifier is revalidated and the whole order is repriced server-side on every call. The response is authoritative - never an echo of your input.

Request

curl -X POST "https://api.resto.isoft4is.net/api/partner/v1/orders" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{
    "branchId": "<BRANCH_ID>",
    "orderMode": 2,
    "customerName": "Jane Doe",
    "customerPhone": "+15550009999",
    "paymentMethod": 1,
    "lines": [
      { "productId": "<PRODUCT_ID>", "variantId": "<VARIANT_ID>", "quantity": 1, "modifierSelections": [] }
    ],
    "externalOrderId": "your-own-order-id-123"
  }'

Response

{
  "orderId": "<ORDER_ID>",
  "orderNumber": "260101-143005-27",
  "status": 1,
  "paymentStatus": 1,
  "currencyCode": "USD",
  "subtotal": 10,
  "discountTotal": 0,
  "taxTotal": 1.5,
  "deliveryFee": 3,
  "serviceFee": 0,
  "grandTotal": 14.5,
  "externalOrderId": "your-own-order-id-124"
}
FieldAcceptedRejected (400)
orderMode1 Delivery, 2 PickupDineIn (3)
paymentMethod1 Cash, 2 CardOnDeliveryCardOnline (3), Wallet (4)

Idempotency-Key ≠ externalOrderId

externalOrderIdIdempotency-Key
What it identifiesYour durable business record for this orderThis specific HTTP request attempt
LifespanPermanent - stays on the orderDisposable - only for retry/replay detection
ReuseNever for a different orderFresh per attempt; same key only to retry the identical attempt

A different Idempotency-Key with the same externalOrderId returns 409tenancy.partner_api.external_order_id_conflict - never a duplicate.

Optional: expectedTotal

Compared after iResto computes the real grandTotal. A mismatch returns 409tenancy.order.price_mismatch and creates nothing - retry the corrected request with the same key.

Delivery orders - zone and address

deliveryZoneId and deliveryAddress are required together for Delivery (orderMode: 1) and absent for Pickup. The zone must exist, belong to the branch, be active, and contain the submitted coordinates - the same geometry checks the first-party checkout uses. Failures are rejected before anything is persisted.

curl -X POST "https://api.resto.isoft4is.net/api/partner/v1/orders" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{
    "branchId": "<BRANCH_ID>",
    "orderMode": 1,
    "customerName": "Jane Doe",
    "customerPhone": "+15550009999",
    "paymentMethod": 2,
    "lines": [
      { "productId": "<PRODUCT_ID>", "variantId": "<VARIANT_ID>", "quantity": 1, "modifierSelections": [] }
    ],
    "externalOrderId": "your-own-order-id-124",
    "deliveryZoneId": "<DELIVERY_ZONE_ID>",
    "deliveryAddress": {
      "addressLine": "42 Example Rd",
      "latitude": 31.930,
      "longitude": 35.925
    },
    "expectedTotal": 13.00
  }'
Duplicate externalOrderId response
{
  "status": 409,
  "title": "tenancy.partner_api.external_order_id_conflict",
  "type": "tenancy.partner_api.external_order_id_conflict",
  "detail": "An order with this externalOrderId already exists for your installation.",
  "code": "tenancy.partner_api.external_order_id_conflict"
}
What V1 does not support
  • DineIn, or any order mode besides Pickup/Delivery.
  • CardOnline, or any “already paid” assertion.
  • Submitting a status, orderNumber or paymentStatus.
  • Any authoritative financial value - only expectedTotal, as a guard.

Read your order

GET/api/partner/v1/orders/{orderId} BearerOrders.Create or Orders.Read

Readable because your installation created it. Anything not yours returns the same generic 404 as an order that doesn’t exist. status (1-8) and orderMode (1-3) are wire integers - full value tables: Enum Reference.

Request

curl "https://api.resto.isoft4is.net/api/partner/v1/orders/<ORDER_ID>" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>"

Response

{
  "orderId": "<ORDER_ID>",
  "orderNumber": "260101-143005-27",
  "status": 1,
  "orderMode": 2,
  "tableNumber": null,
  "customerName": "Jane Doe",
  "customerPhone": "+15550009999",
  "grandTotal": 11.5,
  "currencyCode": "USD",
  "items": [
    {
      "productName": "Classic Cheeseburger",
      "variantName": "Regular",
      "quantity": 1,
      "lineTotal": 8.5,
      "modifiers": []
    }
  ],
  "deliveryAddress": null,
  "branch": {
    "name": "Downtown",
    "address": "1 Main St",
    "latitude": 31.93,
    "longitude": 35.92,
    "externalLocationId": "STORE-4821"
  },
  "paymentStatus": 1,
  "externalOrderId": "your-own-order-id-123",
  "subtotal": 10,
  "discountTotal": 0,
  "taxTotal": 1.5,
  "deliveryFee": 0,
  "serviceFee": 0
}
Source-owned vs delivery-owned reads
OwnershipRequirementExtra fields
Source-ownedOrders.Create + your installation created the orderpaymentStatus, externalOrderId, subtotal, discountTotal, taxTotal, deliveryFee, serviceFee
Delivery-ownedOrders.Read + you hold the live delivery assignmentThe fields above are null

Delivery-owned response

{
  "orderId": "<ORDER_ID>",
  "orderNumber": "260101-143005-27",
  "status": 2,
  "orderMode": 1,
  "tableNumber": null,
  "customerName": "Jane Doe",
  "customerPhone": "+15550009999",
  "grandTotal": 14.5,
  "currencyCode": "USD",
  "items": [
    {
      "productName": "Classic Cheeseburger",
      "variantName": "Regular",
      "quantity": 1,
      "lineTotal": 8.5,
      "modifiers": []
    }
  ],
  "deliveryAddress": {
    "label": null,
    "addressLine": "42 Example Rd",
    "latitude": 31.93,
    "longitude": 35.925,
    "instructions": null
  },
  "branch": {
    "name": "Downtown",
    "address": "1 Main St",
    "latitude": 31.93,
    "longitude": 35.92,
    "externalLocationId": "STORE-4821"
  },
  "paymentStatus": null,
  "externalOrderId": null,
  "subtotal": null,
  "discountTotal": null,
  "taxTotal": null,
  "deliveryFee": null,
  "serviceFee": null
}

Cancel your order

POST/api/partner/v1/orders/{orderId}/cancel BearerOrders.Create

Only while the order is still Pending. No body - the order id and an Idempotency-Key are the whole request.

Request

curl -X POST "https://api.resto.isoft4is.net/api/partner/v1/orders/<ORDER_ID>/cancel" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>"

Response

{
  "orderId": "<ORDER_ID>",
  "orderNumber": "260101-143005-27",
  "status": 8,
  "externalOrderId": "your-own-order-id-123"
}

409 - order already past Pending

{
  "status": 409,
  "title": "tenancy.partner_api.order_not_cancellable",
  "type": "tenancy.partner_api.order_not_cancellable",
  "detail": "Order '<ORDER_ID>' can no longer be cancelled by its source; its status is 'Accepted'.",
  "code": "tenancy.partner_api.order_not_cancellable",
  "details": {
    "status": "Accepted"
  }
}

Good to know

This is the certified cancellation surface: your own still-Pending order, plus restaurant-initiated cancellations delivered to you as orders.cancelled. There is no bulk-cancel or cancel-after-acceptance capability.

Update your order

PATCH/api/partner/v1/orders/{orderId} BearerOrders.Update

Editable until the order is Completed, Cancelled or Rejected: customerName, customerPhone, customerEmail, customerNotes, and for Delivery orders deliveryAddressLabel and deliveryInstructions. Omit a field to leave it unchanged; send null to clear it (not allowed for name or phone). Any other field is rejected with 400. A concurrent change to the same order returns 409 - re-read and retry with a new key.

Request

curl -X PATCH "https://api.resto.isoft4is.net/api/partner/v1/orders/<ORDER_ID>" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{ "customerPhone": "+15550001111", "deliveryInstructions": null }'

Response

{
  "orderId": "<ORDER_ID>",
  "orderNumber": "261004-120000-27",
  "status": 1,
  "orderMode": 1,
  "externalOrderId": "your-order-123",
  "customerName": "Jane Doe",
  "customerPhone": "+15550001111",
  "customerEmail": null,
  "customerNotes": null,
  "deliveryAddress": {
    "label": "Home",
    "addressLine": "1 Main St",
    "latitude": 30.0444,
    "longitude": 31.2357,
    "instructions": null
  }
}

Track status

Subscribe to orders.updated to hear about status changes, and orders.cancelled for cancellations. You can also poll GET /orders/{orderId} on your own schedule.

async function pollOrderUntilSettled(orderId: string): Promise<void> {
  const SETTLED_STATUSES = new Set([6, 7, 8]); // Completed, Rejected, Cancelled

  while (true) {
    const response = await fetch(`https://api.resto.isoft4is.net/api/partner/v1/orders/${orderId}`, {
      headers: { Authorization: authHeader },
    });
    const order = await response.json();

    if (SETTLED_STATUSES.has(order.status)) {
      return; // done - update your own system of record
    }

    await new Promise((resolve) => setTimeout(resolve, 15_000)); // poll on your own schedule
  }
}

Build

Delivery Provider

Learn about new work from a webhook, then move the delivery through its lifecycle. Every action returns the assignment’s current state.

delivery.assigned GET order Accept Driver ETA Tracking InTransit Delivered

Scopes: Delivery.Accept, Delivery.Reject, Delivery.Cancel, Delivery.UpdateStatus, Delivery.UpdateDriver, Delivery.UpdateEta, Delivery.UpdateTracking, plus Orders.Read. Or use Delivery.Update to send any combination of them in one request.

// 1. Receive + verify the delivery.assigned webhook (see Webhooks below)
app.post("/webhooks/iresto", async (req, res) => {
  if (!verifyWebhookSignature(secret, req.header("X-IResto-Timestamp")!, req.rawBody, req.header("X-IResto-Signature")!)) {
    return res.status(401).end();
  }

  const envelope = JSON.parse(req.rawBody.toString("utf8"));
  if (envelope.type === "delivery.assigned") {
    await handleDeliveryAssigned(envelope.installationId, envelope.data.orderId); // enqueue; respond 2xx fast
  }
  res.status(200).end();
});

// 2. Fetch full order details, then move through the lifecycle
async function handleDeliveryAssigned(installationId: string, orderId: string) {
  const order = await getOrder(orderId); // GET /api/partner/v1/orders/{orderId}

  await acceptDelivery(orderId); // POST /deliveries/{orderId}/accept
  await updateDriver(orderId, "Omar K.", "+15550001234"); // PATCH .../driver
  await updateEta(orderId, new Date(Date.now() + 25 * 60_000).toISOString()); // PATCH .../eta
  await updateTracking(orderId, `https://track.example.com/${orderId}`); // PATCH .../tracking
  await updateStatus(orderId, 4); // PATCH .../status -> InTransit
  // ... driver completes the delivery ...
  await updateStatus(orderId, 5); // PATCH .../status -> Delivered
}

Lifecycle endpoints

POST/api/partner/v1/deliveries/{orderId}/accept BearerDelivery.Accept

The response shape is shared by every delivery mutation below. status is a wire integer - full value/meaning table: Enum Reference § DeliveryAssignmentStatus.

Request

curl -X POST "https://api.resto.isoft4is.net/api/partner/v1/deliveries/<ORDER_ID>/accept" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>"

Response

{
  "assignmentId": "<ASSIGNMENT_ID>",
  "orderId": "<ORDER_ID>",
  "appInstallationId": "<APP_INSTALLATION_ID>",
  "status": 2,
  "assignedAtUtc": "2026-10-04T12:00:00Z",
  "respondedAtUtc": "2026-10-04T12:00:05Z",
  "driverName": null,
  "driverPhone": null,
  "etaUtc": null,
  "trackingUrl": null
}
PATCH/api/partner/v1/deliveries/{orderId}/driver BearerDelivery.UpdateDriver

Request

curl -X PATCH "https://api.resto.isoft4is.net/api/partner/v1/deliveries/<ORDER_ID>/driver" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{ "driverName": "Omar K.", "driverPhone": "+15550001234" }'
PATCH/api/partner/v1/deliveries/{orderId}/eta BearerDelivery.UpdateEta

Request

curl -X PATCH "https://api.resto.isoft4is.net/api/partner/v1/deliveries/<ORDER_ID>/eta" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{ "etaUtc": "2026-10-04T12:35:00Z" }'
PATCH/api/partner/v1/deliveries/{orderId}/tracking BearerDelivery.UpdateTracking

Must be an absolute https:// URL.

Request

curl -X PATCH "https://api.resto.isoft4is.net/api/partner/v1/deliveries/<ORDER_ID>/tracking" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{ "trackingUrl": "https://track.example.com/<ORDER_ID>" }'
PATCH/api/partner/v1/deliveries/{orderId}/status BearerDelivery.UpdateStatus

Legal targets: 4 InTransit, 5 Delivered.

Request

curl -X PATCH "https://api.resto.isoft4is.net/api/partner/v1/deliveries/<ORDER_ID>/status" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{ "targetStatus": 4 }'
PATCH/api/partner/v1/orders/{orderId}/delivery BearerDelivery.Update

Any combination of status, driverName, driverPhone, etaUtc and trackingUrl, applied atomically: details first, then status. Omit a field to leave it unchanged; send null to clear it (not allowed for status). The live assignee updates its assignment. With no provider assigned, the order’s source updates the order’s own delivery state (assignmentId is then null); while another installation holds the assignment, the source gets 409.

Request

curl -X PATCH "https://api.resto.isoft4is.net/api/partner/v1/orders/<ORDER_ID>/delivery" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>" \
  -d '{ "status": 4, "driverName": "Omar K.", "driverPhone": "+15550001234", "etaUtc": "2026-10-04T12:35:00Z" }'

Response

{
  "orderId": "<ORDER_ID>",
  "orderNumber": "261004-120000-27",
  "assignmentId": null,
  "status": 4,
  "driverName": "Omar K.",
  "driverPhone": "+15550001234",
  "etaUtc": "2026-10-04T12:35:00+00:00",
  "trackingUrl": null
}

Declining or backing out

POST/api/partner/v1/deliveries/{orderId}/reject BearerDelivery.Reject

Only while Assigned - before you accept.

Request

curl -X POST "https://api.resto.isoft4is.net/api/partner/v1/deliveries/<ORDER_ID>/reject" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>"
POST/api/partner/v1/deliveries/{orderId}/cancel BearerDelivery.Cancel

Only while Accepted or InTransit - after you accept.

Request

curl -X POST "https://api.resto.isoft4is.net/api/partner/v1/deliveries/<ORDER_ID>/cancel" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>" \
  -H "Idempotency-Key: <IDEMPOTENCY_KEY>"

Warning

Reject and Cancel are not interchangeable - the wrong one for the delivery’s current state returns 409. Neither triggers reassignment or changes the order’s own status or payment.

Reassignment happens to you: if the restaurant gives the order to another provider you receive delivery.superseded (not delivery.cancelled), and the new provider receives its own delivery.assigned.

Build

Catalog / ERP

Read-only, full-snapshot and pull-based - no pagination or change feed. Poll on your own schedule to resolve order IDs or sync a menu into your system.

GET/api/partner/v1/catalog/branches BearerCatalog.Read

Every active branch of the restaurant that installed your app.

Request

curl "https://api.resto.isoft4is.net/api/partner/v1/catalog/branches" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>"

Response

[
  {
    "id": "<BRANCH_ID>",
    "name": "Downtown",
    "isActive": true,
    "externalLocationId": "STORE-4821"
  }
]
GET/api/partner/v1/catalog/branches/{branchId}/products BearerCatalog.Read

The branch’s effective catalog - categories with product summaries. No modifier detail.

Request

const response = await fetch(
  `https://api.resto.isoft4is.net/api/partner/v1/catalog/branches/${branchId}/products`,
  { headers: { Authorization: `Bearer ${installationToken}` } },
);

if (!response.ok) throw new Error(`Catalog.Read failed: ${response.status}`);
const catalog = await response.json();

Response

{
  "categories": [
    {
      "id": "<CATEGORY_ID>",
      "name": "Burgers",
      "products": [
        {
          "id": "<PRODUCT_ID>",
          "sku": "BRG-001",
          "name": "Classic Cheeseburger",
          "imageUrl": "https://cdn.example.com/products/classic-cheeseburger.jpg",
          "taxCategory": {
            "rate": 15,
            "isInclusive": true
          },
          "availability": 0,
          "startingPrice": 8.5,
          "variants": [
            {
              "id": "<VARIANT_ID>",
              "sku": "BRG-001-REG",
              "name": "Regular",
              "price": 8.5,
              "compareAtPrice": null,
              "isDefault": true,
              "availability": 0
            },
            {
              "id": "<VARIANT_ID_2>",
              "sku": "BRG-001-LRG",
              "name": "Large",
              "price": 10.5,
              "compareAtPrice": null,
              "isDefault": false,
              "availability": 0
            }
          ]
        }
      ]
    }
  ],
  "resolvedLanguage": null
}
GET/api/partner/v1/catalog/branches/{branchId}/products/{productId} BearerCatalog.Read

One product with its full, recursively nested modifier hierarchy. Inactive products return 404.

Response

{
  "id": "<PRODUCT_ID>",
  "sku": "BRG-001",
  "name": "Classic Cheeseburger",
  "imageUrl": "https://cdn.example.com/products/classic-cheeseburger.jpg",
  "taxCategory": {
    "rate": 15,
    "isInclusive": true
  },
  "availability": 0,
  "resolvedLanguage": null,
  "variants": [
    {
      "id": "<VARIANT_ID>",
      "sku": "BRG-001-REG",
      "name": "Regular",
      "price": 8.5,
      "compareAtPrice": null,
      "isDefault": true,
      "availability": 0,
      "modifierGroups": [
        {
          "id": "<MODIFIER_GROUP_ID>",
          "name": "Extras",
          "minSelections": 0,
          "maxSelections": 3,
          "isRequired": false,
          "sortOrder": 0,
          "options": [
            {
              "id": "<MODIFIER_OPTION_ID>",
              "name": "Extra Cheese",
              "price": 0.75,
              "isDefault": false,
              "availability": 0,
              "childGroups": []
            }
          ]
        }
      ]
    }
  ]
}

Stable IDs

Branch, category, product, variant, modifier group and option IDs are the same Guids you submit on POST /orders.

Branch-effective prices

Every price is already resolved for that branch. It is a display price - orders are always repriced server-side.

Tax metadata

taxCategory = { rate, isInclusive }. Metadata for order-time pricing; catalog prices are never tax-adjusted at read time.

Availability

A wire integer: 0 Available, 1 SoldOut, 2 Unavailable - usually filtered out rather than returned.

Modifiers & nesting

Product detail returns modifierGroups → options → childGroups, recursively. isRequired = minSelections > 0.

Inventory boundary

Availability means “orderable here now”. No stock counts, ledger, cost or supplier data is exposed.

Language selection (?language=)

Both product routes accept an optional ?language=, resolved from the parameter alone - never from Accept-Language. Unsupported or omitted falls back to the restaurant’s default (resolvedLanguage: null).

curl "https://api.resto.isoft4is.net/api/partner/v1/catalog/branches/<BRANCH_ID>/products?language=ar" \
  -H "Authorization: Bearer <INSTALLATION_TOKEN>"

Build

Integration Patterns

Two distinct shapes, each with its own preconditions - verified against current source, not aspirational. Pick the one matching what your app actually subscribes to and holds.

(a) Order-event consumer / delivery orchestration

orders.created/updated (full snapshot) local UPSERT your orchestration PATCH /orders/{id}/delivery

  • • No Orders.Read is needed to consume the broadcast - subscribing to the event is itself the entitlement, independent of any scope (see Scopes).
  • • The PATCH is not available to every subscriber. PATCH /orders/{orderId}/delivery only succeeds for the live delivery-assignment holder, or the order’s source while no live assignment exists. A plain broadcast subscriber that is neither gets a generic 404 on every order it doesn’t own, every time - this is the actual, implemented ownership check, not a bug.
  • • orders.cancelled does reach a plain subscriber - it’s one broadcast row, delivered once to every Connected installation subscribed to it, whether or not you created, manage or were assigned the order. orders.updated still excludes the Cancelled transition, and GET /orders/{orderId} stays source/assignee-only. You will receive cancellations of orders you never handled: treat an unknown orderId as a no-op and still acknowledge with 2xx, never fail it.

Real precondition, not a gap to route around

This pattern is for an app that is also the order’s source, or that becomes a live delivery assignee (pattern b) - not a generic “subscribe and orchestrate any order” capability. Design your integration around becoming the source or the assignee for any order you need delivery/cancellation authority over.

(b) Delivery Assignment Provider

delivery.assigned (targeted) accept/reject driver/eta/tracking/status delivery.cancelled/superseded (if it happens to you)

  • • Scopes: Delivery.Accept, Delivery.Reject, Delivery.Cancel, Delivery.UpdateStatus, Delivery.UpdateDriver, Delivery.UpdateEta, Delivery.UpdateTracking (or Delivery.Update for the combined route), plus Orders.Read.
  • • delivery.assigned is always targeted - you only ever learn about an assignment that is actually yours.
  • • delivery.cancelled fires whenever the order becomes Cancelled while assigned to you - by the restaurant or by the order’s source (same side-effect logic either way). It does not fire when you cancel your own assignment via POST /deliveries/{orderId}/cancel - that ends only the assignment, not the order; your own HTTP response is your confirmation.
  • • delivery.superseded fires only on reassignment to a different installation - you lost the order, nothing about it changed.
  • • delivery.updated also reaches you: fired on every PATCH /orders/{orderId}/delivery that changes something, targeted at the live assignee and source. The single-field /deliveries/{orderId}/* routes never raise it.