Product options API
Server-side REST API to create, update, and archive Zapiet Eats product options.
Server-side API for integrations (for example a POS) that create, update, and archive the options shown in Zapiet Eats → Settings → Product options.
This API manages Zapiet Eats product options only. It does not manage the separate Zapiet Product Options app or Shopify variant options.
This is a server-side-only API. Never put a writer token in a diner app, mobile binary, or browser code.
Authentication
Product options management is enabled per store. During the pilot, request a writer credential from Zapiet. Settings → API credentials does not offer the catalog:write scope yet, and api:* is not a substitute.
Send the token on every request:
Authorization: Bearer {token}
Accept: application/json
Content-Type: application/jsonA writer token must:
include the
catalog:writescope explicitly, on every endpoint below, including the GET endpoints.api:*orcatalog:readalone is not enough.belong to a confidential OAuth client. Public/native clients are rejected even with
catalog:write.be bound to the store whose options it manages.
A writer-only token cannot call the published-catalog read endpoints. Add catalog:read to the same token only if your backend also needs those.
Keep writer tokens and client secrets in your integration server's secret store. Never paste them into tickets, logs, or command history.
Endpoints
Base: https://{eats-host}/api/catalog/v1. Same per-store rate limits and error envelope as the Catalog API.
GET
/product-options
200, paginated non-archived options, including drafts, ordered by id
GET
/product-options/{option}
200, one non-archived option, including drafts. 404 if archived, unknown, or another store's
POST
/product-options
Upsert by external_id: 201 when created, 200 when it already exists. 409 if that external_id was archived
PUT
/product-options/{option}
Full replacement of an existing option. 200, or 404 if archived, unknown, or another store's
DELETE
/product-options/{option}
Archive. 204 with no body; repeating it also returns 204
{option} is the Zapiet Eats option id returned by this API, not your external_id. There is no PATCH.
Listing accepts page (≥ 1, default 1) and per_page (1–100, default 50) and returns data, links, and meta.
Write contract
POST and PUT replace the whole option, including all values and product attachments. They do not merge. Send every value and product you want on every write. Required fields are required on PUT too.
external_id
Your ID, up to 191 characters. Required on POST, optional on PUT. Cannot change once set.
name
Required, up to 255 characters. Unique per store, including archived options.
input_type
Required: Checkbox or Textarea (case-sensitive).
status
Required: published or draft. Drafts are not shown to diners.
help_text
Optional string up to 255 characters, or null. Omitting it clears it.
is_required
Required boolean.
availability
Required. Only specific_products is supported.
shopify_product_ids
Required list of 1–100 distinct Shopify numeric product IDs as strings, e.g. "9123456789012". Not GIDs, variant IDs, or Zapiet Eats IDs.
min_selections
Checkbox only, required: integer ≥ 0 and ≤ max_selections.
max_selections
Checkbox only, required: integer ≥ 1 and ≤ the number of values.
first_option_selected_by_default
Checkbox only, optional boolean. Omitting it resets it to false.
values
Checkbox only, required: 1–100 values with distinct labels.
values[].value
Required label, up to 255 characters.
values[].price
Required extra price in shop-currency cents, 0–2147483647.
values[].calories
Optional integer or null. Omitting it clears it.
Each Shopify product must already be synced into the store's Zapiet Eats catalog. The option is attached to all synced variants of each product.
Values keep the order you send. A value whose label is unchanged keeps its id, even if its price or position changes. Renamed or removed labels lose their id. Value objects accept only value, price, and calories.
For Textarea, omit values, min_selections, max_selections, and first_option_selected_by_default.
Create or replace a Checkbox option
Response (201 when created, 200 when external_id already exists):
To replace by ID, send the full payload to PUT /product-options/88. Omit external_id or send it unchanged; a different value returns 409.
Textarea example
List, retrieve, and archive
After archiving, GET and PUT return 404, DELETE returns 204, and POST with the same external_id returns 409. An archived option keeps its external_id and name reserved and cannot be restored through the API.
Errors
Same { "error", "message" } envelope as the Catalog API. Validation errors return the first message, not a per-field map.
HTTP
error
Meaning
401
unauthorized
Missing, expired, revoked, or unbound token
403
forbidden
Shop header mismatch, or the token's client is not confidential
403
missing_scope
Token does not include catalog:write
404
not_found
Unknown, archived, or another store's option, or API not enabled for the store
409
conflict
POST with an archived external_id, or PUT changing external_id
422
validation_error
Invalid body, duplicate option name, or product not synced
429
rate_limited
Too many requests
Last updated