Developers
Marketplace API
Build order-source, delivery-provider and catalog integrations for iResto restaurants.
Choose what you’re building
Guide
How an integration works
Four steps take you from a registered app to your first authenticated API call.
- 1SetupRegister AppSend your app details to iResto. You receive an App KeyId and a one-time App Secret.
One-time setup - 2BrowserHandle InstallA restaurant clicks Install. Their browser lands on your Install URL with a one-time state.
GET {your Install URL}?state=… Back channel - your server ↔ iResto, never the browser
- 3Server-to-serverExchange CredentialsComplete the handshake with your App credential, then exchange the code for the installation’s credentials.
POST /api/marketplace/install/complete → /exchange - 4Server-to-serverIdentify InstallationCall /whoami with the Installation Token and store installationId against your own account.
GET /api/partner/v1/whoami
- 3Server-to-serverExchange CredentialsComplete the handshake with your App credential, then exchange the code for the installation’s credentials.
The browser never receives the Installation Token
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.
/install/exchangewhich returns Bearer+ HMACfor one installationApp 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
Installation Token
One restaurant installation
Authenticates every Partner API call, including /whoami.
Authorization: Bearer {InstallationToken}Issued: Returned by /install/exchange
Webhook Signing Secret
The same installation
Verifies the signature on every webhook iResto sends you.
HMAC-SHA256 key - never sent as a headerIssued: Returned by /install/exchange
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/completeand/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
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}- •
stateis 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
/api/marketplace/install/complete ApiKeyFrom 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
/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
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.
/api/partner/v1/whoami BearerRequest
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)
- Read the branch’s catalog for real product, variant and modifier IDs (Catalog).
- Create the order with a fresh
Idempotency-Keyand your ownexternalOrderId. - Store the returned
orderIdwith your order record. - Poll
GET /orders/{orderId}for status changes. - Cancel it yourself only while it is still
Pending.
Create an order
/api/partner/v1/orders BearerOrders.CreateEvery 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"
}| Field | Accepted | Rejected (400) |
|---|---|---|
orderMode | 1 Delivery, 2 Pickup | DineIn (3) |
paymentMethod | 1 Cash, 2 CardOnDelivery | CardOnline (3), Wallet (4) |
Idempotency-Key ≠ externalOrderId
| externalOrderId | Idempotency-Key | |
|---|---|---|
| What it identifies | Your durable business record for this order | This specific HTTP request attempt |
| Lifespan | Permanent - stays on the order | Disposable - only for retry/replay detection |
| Reuse | Never for a different order | Fresh 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,
orderNumberorpaymentStatus. - Any authoritative financial value - only
expectedTotal, as a guard.
Read your order
/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
| Ownership | Requirement | Extra fields |
|---|---|---|
| Source-owned | Orders.Create + your installation created the order | paymentStatus, externalOrderId, subtotal, discountTotal, taxTotal, deliveryFee, serviceFee |
| Delivery-owned | Orders.Read + you hold the live delivery assignment | The 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
/api/partner/v1/orders/{orderId}/cancel BearerOrders.CreateOnly 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
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
/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
/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
}/api/partner/v1/deliveries/{orderId}/driver BearerDelivery.UpdateDriverRequest
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" }'/api/partner/v1/deliveries/{orderId}/eta BearerDelivery.UpdateEtaRequest
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" }'/api/partner/v1/deliveries/{orderId}/tracking BearerDelivery.UpdateTrackingMust 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>" }'/api/partner/v1/deliveries/{orderId}/status BearerDelivery.UpdateStatusLegal 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 }'/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
/api/partner/v1/deliveries/{orderId}/reject BearerDelivery.RejectOnly 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>"/api/partner/v1/deliveries/{orderId}/cancel BearerDelivery.CancelOnly 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
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.
/api/partner/v1/catalog/branches BearerCatalog.ReadEvery 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"
}
]/api/partner/v1/catalog/branches/{branchId}/products BearerCatalog.ReadThe 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
}/api/partner/v1/catalog/branches/{branchId}/products/{productId} BearerCatalog.ReadOne 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.Readis 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}/deliveryonly 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.cancelleddoes 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.updatedstill excludes the Cancelled transition, andGET /orders/{orderId}stays source/assignee-only. You will receive cancellations of orders you never handled: treat an unknownorderIdas a no-op and still acknowledge with2xx, never fail it.
Real precondition, not a gap to route around
(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(orDelivery.Updatefor the combined route), plusOrders.Read. - •
delivery.assignedis always targeted - you only ever learn about an assignment that is actually yours. - •
delivery.cancelledfires 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 viaPOST /deliveries/{orderId}/cancel- that ends only the assignment, not the order; your own HTTP response is your confirmation. - •
delivery.supersededfires only on reassignment to a different installation - you lost the order, nothing about it changed. - •
delivery.updatedalso reaches you: fired on everyPATCH /orders/{orderId}/deliverythat changes something, targeted at the live assignee and source. The single-field/deliveries/{orderId}/*routes never raise it.