Base URL
Each environment has its own host, both served under the/v1 prefix:
mpk_test_… in the sandbox, mpk_live_… in production). See Environments.
Authentication
Send aBearer credential on every request:
mpk_test_… for the sandbox, mpk_live_… for production) as the bearer token. GET /v1/me returns the app, environment, and scopes for any key. Full detail in Authentication.
Resource conventions
- Opaque IDs carry a type prefix —
str_(location),ord_(order),dws_(webhook subscription),evt_(event), and so on. Treat them as opaque strings. - Money is integer USD cents.
450means $4.50. Never parse amounts as floats. Currency codes are always uppercase ISO‑4217 (USD). - Field casing. Menu payloads use camelCase (
externalId,minSelections,modifierGroups); order and webhook payloads use snake_case (fulfillment_type,menu_entity_id,payment_status). A line item’smenu_entity_idcarries theexternalIdyou published for that menu object. - Timestamps on events and orders are Unix seconds (the
createdfield). - Object typing. Most resources carry an
objectfield (order,location,event, …) so you can tell them apart.
Lists
List endpoints return an envelope with anobject of list and a data array:
has_more flag rather than a total count:
GET /v1/ordersreturns up to 100 orders across your connected locations. Newest first by default; see the catch-up parameters below.GET /v1/webhook_eventsreturns up to 50 events, most recent first.GET /v1/locationsandGET /v1/webhook_subscriptionsreturn the full set for your app.
Draining orders after downtime
GET /v1/orders takes three optional query parameters, built for reconciling a backlog:
Request
GET /v1/orders?since=<checkpoint>&limit=100, then repeat with starting_after set to the last returned order id while has_more is true. There is no location_id filter — filter client-side on location_id.
To make Maple redeliver a webhook rather than pull the order yourself, use POST /v1/orders/{orderId}/resend for a live order, or the event ledger and replay when the original event identity matters.
Errors
Errors use standard HTTP status codes with a JSON body carrying a stable_tag and a human-readable message. Branch on the tag, not the message. The full catalog is in Errors.
Rate limits
There are no published per-app rate limits today. Be a good citizen — respond to webhooks asynchronously, avoid tight polling loops (you don’t need to poll; orders are pushed), and retry5xx responses with exponential backoff and jitter.