Skip to main content
This is the core of a Maple integration. When a customer orders at a location you’re connected to, Maple pushes the order to your webhook; you decide whether to fulfill it and report progress as it moves. None of it involves payments — Maple owns that. A working ordering integration is two pieces of work: If you haven’t yet, skim How Maple works for the object model, and run the Quickstart to get a key and connect a test location.

Step 1 — Connect a location

Orders route to you only once your app is a location’s connected receiver:
Connections are exclusive per environment — if another app already holds the location you get a 409. GET and DELETE on the same path inspect and remove your connection.

Step 2 — Subscribe to webhooks

Register an HTTPS endpoint and the event types you want. The full catalog is at GET /v1/webhook_event_types; for the order loop you’ll typically want these:
The response carries a one-time signing secret (mwhsec_…). Store it; it is never shown again. The URL must be public HTTPS — private and internal addresses are rejected.
These are the order events. The catalog also includes order.created, order.paid, store.provisioned, store.deprovisioned, store.status.changed, and the menu sync events. Subscribe only to what you act on. See the full list and payloads in Webhooks.

Step 3 — Verify every delivery

Each delivery is a Stripe-style envelope:
Deliveries carry two headers: maple-webhook-id (the event id) and maple-webhook-signature in the form t=<unix_seconds>,v1=<hex_hmac>. The signed string is {timestamp}.{subscription_id}.{notification_url}.{raw_body}. Verify it against the raw, unparsed body:
The check above rejects stale timestamps (older than ~5 minutes) to prevent replay. Beyond that, dedupe on the envelope id — delivery is at-least-once. The full reliability contract, including the retry schedule and the ledger, is in Webhooks.

Catching up after downtime

When your receiver was unavailable — the local software was off, or the network was down — reconcile like this:
  1. Call GET /v1/orders?since=<timestamp>&limit=100 with your last successful checkpoint (exclusive, ISO 8601 UTC). With since, results are oldest first and has_more indicates another page.
  2. While has_more is true, repeat the request with starting_after set to the last order id from the previous page. Continue until the backlog is drained, then advance your checkpoint.
  3. Call POST /v1/orders/{orderId}/resend when you need Maple to publish a fresh order.notification for one live order that missed its webhook. It requires the webhooks:write scope, creates a new signed, retried delivery, and does not change the order’s state. Terminal orders (REJECTED, CUSTOMER_CANCELLED, or STORE_CANCELLED) cannot be resent or revived and return 400; reconcile them with GET /v1/orders?since=... and GET /v1/orders/{orderId}.
  4. Use the event ledger instead of resend when preserving the original event identity matters.
Waiting it out also works for a short outage: the retry schedule redelivers a failed event over roughly 10 hours before it counts as fully failed.
Before you have real traffic, POST /v1/webhook_subscriptions/{id}/test sends a signed webhook.test event so you can prove your handler verifies and responds correctly.

Step 4 — Read the order

The order.notification payload’s data is the order’s content — its IDs, customer, line items, and totals — so you can start fulfilling straight from the webhook without another call. It follows the GET /v1/orders/{orderId} shape, but omits the live status and payment. Fetch the order resource any time for the authoritative current state, including status and payment:
A few things to internalize:
  • Money is integer USD cents. 450 is $4.50. Never parse it as a float. Every amount in totals and on line items follows this convention.
  • Totals are precomputed. totals.total is authoritative. You do not re-price anything.
  • Line items reference your menu by menu_entity_id, whose value is the externalId you published for that item. Publish a menu first and these line up with your own catalog. (Menu payloads are camelCase; order and webhook payloads are snake_case — see Conventions.)
  • Modifiers are the directly-selected, first-level options. Deeper nested modifier selections aren’t expanded into the order resource in v1.
  • Customer data is intentionally minimal. You get the customer’s name and phone number (phone in E.164 format, plus phone_last_four for display). Delivery orders also include delivery_address with the street, unit, city, state, ZIP code, and delivery instructions; it is null for pickup orders or when Maple has no stored address. All six address keys are present whenever the block is populated.
  • Check scheduled_for before firing the ticket. It’s null for ASAP orders. When set (ISO 8601, UTC), the customer chose that pickup/delivery time — you receive the order immediately, so schedule preparation for scheduled_for, not on receipt.

Step 5 — Decide and report progress

Respond through the decision endpoints as the order moves. None take a body unless noted:
Response
If you prefer one endpoint, POST /v1/orders/{orderId}/status takes an explicit transition:
Valid values: ACCEPTED, READY, IN_DELIVERY, FULFILLED, REJECTED, STORE_CANCELLED. For what each status means and the legal transitions between them, see the Order lifecycle.
Decision calls are replay-safe. Repeating one returns { "status": "received" } with no double side effects, so retrying on a network blip is always safe. See Idempotency and replay safety.

Optional — pre-validate orders

Pre-validation is opt-in, and you turn it on by subscribing to order.validation_requested:
  • If you don’t subscribe, there’s no validation step. Maple sends order.notification directly, and your accept/deny is the only gate.
  • If you subscribe, Maple asks you to confirm each order is fulfillable (item availability, pricing feasibility, POS injectability) before it sends the notification, and waits for your answer. Opting in is therefore a commitment: an order you don’t validate in time is rejected (see below).
That’s the whole mechanism — the subscription is the switch. When subscribed, respond to each order.validation_requested with a result:
To block the order instead:
A valid result lets the order proceed to notification; invalid blocks it before the customer is charged. You have about 5 minutes to respond before a request expires (the resource carries expires_at, ~300 seconds out). If it expires, Maple requests validation once more; if that second request also goes unanswered, the order is rejected without a notification — so only subscribe once your handler reliably answers in time. It’s the same availability check you’d run at accept time, only earlier, so customers don’t pay for something you can’t make.

What “done” looks like

One webhook and a handful of decision calls. Payments and pricing stay on our side, and the Maple team is available throughout your build.

Next

Publish a menu

Make menu_entity_id on every line item map to your own catalog.

Webhooks in depth

Delivery guarantees, retries, the event ledger, and replay.