For the complete documentation index, see llms.txt. This page is also available as Markdown.

Operations API

Merchant-facing API for staff mobile apps that need to open/close a restaurant and update today's inventory (86'd items). This is not the Catalog API.

Why a separate API? Restaurant status and today's stock-outs apply to both the App Proxy ordering page and the theme-embed widget. They are operational writes, not catalog reads. A token with catalog:read cannot call these endpoints.

Authentication

  • In Zapiet Eats go to Settings → API credentials.

  • Create a personal access token. Copy the secret once (it is not shown again).

  • Send it on every request:

Authorization: Bearer {token}
Accept: application/json

Optional (must match the token’s store if present):

X-Zapiet-Eats-Shop-Url: your-store.myshopify.com

A mismatched shop header returns 403.

Scopes

Scope
Access

operations

Read and write restaurant status and today's inventory for the bound store.

api:*

Full REST access. Accepted here so existing full-access tokens keep working when the flag is on.

Issue operations to a staff mobile app. Do not put api:* in a mobile binary.

Errors

HTTP

error

Meaning

401

unauthorized

Missing, expired, revoked, or unbound token

403

forbidden

Shop header does not match the token’s store

403

missing_scope

Valid token without operations or api:*

404

not_found

Unknown id, other store’s id, or flag off

422

validation_error

Bad body or query params

429

rate_limited

Too many requests

REST

Base: https://app.zapieteats.com/api/operations/v1

Restaurant ids are the same ids Catalog API returns as locations[].id.

List restaurants

status is open or closed. Closing a restaurant pauses pickup and delivery for that location (the same dashboard toggle).

Open or close a restaurant

Closing dispatches the same cancel-and-refund job as the admin dashboard for NEW orders. Reopening does not restore those orders.

Today's inventory

Inventory rows are scoped to the restaurant's local today (Restaurant::todayCountAt()). Products with no row are treated as unlimited (not sold out).

Update today's inventory

remaining

Effect

0

86 / sold out for the rest of today

N

Set units remaining for today

null

Clear today's limit (product is unlimited)

The response is the restaurant's current today's inventory after the write (re-queried from the database). Metafield sync jobs are dispatched the same way as the admin inventory modal.

Rate limits

Default 40 requests per second

Last updated