Webhooks
Get event
Retrieves a single event from the ledger, including its `data.object`.
https://api.maple.inc/v1/events/{eventId} API keyAuthorization
Send your API key as Authorization: Bearer <key>: mpk_test_… for test mode, mpk_live_… for live mode. Both use https://api.maple.inc/v1. See Authentication. The samples read the key from MAPLE_KEY and the base URL from MAPLE_BASE, as set up in the Quickstart.
Parameters
-
eventIdstring required -
Maple-VersionstringThe API version your code expects. A version Maple does not serve answers 400
invalid_requestwithparamMaple-Version. See https://docs.maple.inc/developer-api/concepts/versioning Always2026-11-27.
Responses
200 OK
Event
-
idstring required -
objectstring requiredAlways
event. -
typestring required -
api_versionstring requiredThe API version
data.objectwas rendered in, a date (YYYY-MM-DD). -
createdinteger required -
livemodeboolean required -
dataobject required -
data.objectobject required -
data.object.objectstringAlways
order. -
data.object.idstring -
data.object.livemodebooleanTrue when the order belongs to the live environment; false for test-mode data.
-
data.object.createdinteger -
data.object.updatedintegerWhen the order last changed (Unix seconds), including its payment and delivery. Of two copies of one order, from webhooks that arrived out of order, the one with the larger
updatedis newer; on a tie, read it again withGET /v1/orders/{orderId}. -
data.object.statusstringOne of
pending,submitted,accepted,ready,in_delivery,fulfilled,rejected,canceled. -
data.object.cancellation_reasonstring or nullWho canceled the order (
customerorrestaurant) whenstatusiscanceled; null otherwise. -
data.object.canceled_atinteger or nullWhen the order was canceled (Unix seconds); null unless
statusiscanceled, and null for orders canceled before 2026-11-24. -
data.object.rejection_reasonstring or nullWhy the order is
rejected:validation_failed(your app answered its validationinvalid, or did not answer),submission_failed(Maple could not hand the order to your app),denied(your app denied it),decision_timeout(no decision arrived in time) orexpired(the order was too old to make by the time Maple could send it). Null otherwise, and null for orders rejected before 2026-11-24. -
data.object.location_idstringThe location the order belongs to.
-
data.object.fulfillment_typestringpickup(the customer collects the order) ordelivery. One ofpickup,delivery. -
data.object.numberstring or nullThe short order number Maple gave the customer, the one they say at the counter (e.g.
1274). Not unique across locations or over time; useidto identify the order. -
data.object.sourcestring or nullWhere the customer placed the order:
phone(Maple’s phone agent),web(the restaurant’s Maple ordering website),kiosk, orpos. Null for orders Maple did not classify. -
data.object.notesstring or nullWhat the customer asked for on the whole order (special instructions); null when nothing. Item requests are on each line item’s
notes, delivery instructions ondelivery_address.notes. -
data.object.ready_byintegerWhen the order is due (Unix seconds):
scheduled_forfor a scheduled order, otherwise the time Maple gave the customer, the order time plus the prep time. -
data.object.scheduled_forinteger or nullCustomer-selected completion time (Unix seconds) for scheduled orders; null for ASAP orders. Prepare the order for this time, not on receipt.
-
data.object.delivery_addressobject or nullThe delivery address for delivery orders, including delivery instructions; null for pickup orders or when no stored address is available.
-
data.object.delivery_address.line1string or null -
data.object.delivery_address.line2string or null -
data.object.delivery_address.citystring or null -
data.object.delivery_address.statestring or null -
data.object.delivery_address.postal_codestring or null -
data.object.delivery_address.countrystring or null -
data.object.delivery_address.notesstring or null -
data.object.customerobject -
data.object.customer.namestring -
data.object.customer.phonestring or nullCustomer phone number in E.164 format (e.g. +14155552671); null when the customer provided none.
-
data.object.customer.phone_last_fourstring or nullLast four digits of the customer phone number.
-
data.object.line_itemsobject[] -
data.object.line_items[].namestring -
data.object.line_items[].external_idstring or null -
data.object.line_items[].quantitynumber -
data.object.line_items[].base_price_moneyobject -
data.object.line_items[].base_price_money.amountinteger -
data.object.line_items[].base_price_money.currencystring -
data.object.line_items[].tax_moneyobject -
data.object.line_items[].tax_money.amountinteger -
data.object.line_items[].tax_money.currencystring -
data.object.line_items[].notesstring or null -
data.object.line_items[].modifier_groupsobject[] -
data.object.line_items[].modifier_groups[].namestring -
data.object.line_items[].modifier_groups[].external_idstring or null -
data.object.line_items[].modifier_groups[].optionsobject[] -
data.object.line_items[].modifier_groups[].options[].namestring -
data.object.line_items[].modifier_groups[].options[].external_idstring or null -
data.object.line_items[].modifier_groups[].options[].quantityinteger -
data.object.line_items[].modifier_groups[].options[].price_moneyobject -
data.object.line_items[].modifier_groups[].options[].modifier_groupsobject[] -
data.object.totalsobjectEach amount is
{ amount, currency }:amountin integer minor units (cents forUSD).subtotal_moneyis the line items and their modifiers before discounts;discount_moneyis what discounts took off them;tax_moneyis the tax charged, after discounts;surcharge_moneyis Maple’s processing fee passed to the customer;service_charge_moneyis the restaurant’s own fees its POS adds to the check;tip_moneyis the tip for the restaurant. Two POS systems file the restaurant’s fees elsewhere: Toast counts its non-gratuity service charges insubtotal_money, and Chowbus fees are insurcharge_money.total_moneyis what the customer pays: the amount charged online, or for anin_storeorder the amount the restaurant should collect (Maple does not see what it took). It is subtotal - discount + tax + surcharge + service charge + tip + delivery fee + delivery tip. -
data.object.totals.subtotal_moneyobject -
data.object.totals.subtotal_money.amountinteger -
data.object.totals.subtotal_money.currencystring -
data.object.totals.discount_moneyobject -
data.object.totals.discount_money.amountinteger -
data.object.totals.discount_money.currencystring -
data.object.totals.tax_moneyobject -
data.object.totals.tax_money.amountinteger -
data.object.totals.tax_money.currencystring -
data.object.totals.surcharge_moneyobject -
data.object.totals.surcharge_money.amountinteger -
data.object.totals.surcharge_money.currencystring -
data.object.totals.service_charge_moneyobject -
data.object.totals.service_charge_money.amountinteger -
data.object.totals.service_charge_money.currencystring -
data.object.totals.tip_moneyobject -
data.object.totals.tip_money.amountinteger -
data.object.totals.tip_money.currencystring -
data.object.totals.delivery_fee_moneyobject -
data.object.totals.delivery_fee_money.amountinteger -
data.object.totals.delivery_fee_money.currencystring -
data.object.totals.delivery_tip_moneyobject -
data.object.totals.delivery_tip_money.amountinteger -
data.object.totals.delivery_tip_money.currencystring -
data.object.totals.total_moneyobject -
data.object.totals.total_money.amountinteger -
data.object.totals.total_money.currencystring -
data.object.paymentobjectHow the customer pays.
method:online(through a payment link or the ordering website) orin_store(at the restaurant, at pickup or delivery); null only when Maple recorded none.provider: the payment processor, null before a payment exists.payment_link_url: the link Maple sent the customer; null forin_storeorders or before a link exists. -
data.object.payment.methodstring or null -
data.object.payment.providerstring or null -
data.object.payment.statusstring or nullWhere the customer’s payment stands:
pending(not paid yet; anin_storeorder stayspendinguntil your app marks it paid withPOST /v1/orders/{orderId}/pay),paid,failed(the payment did not go through),voided(Maple canceled the payment before it settled),refundedorpartially_refunded. Null only when Maple recorded none. -
data.object.payment.payment_link_urlstring or null -
data.object.orderobject -
data.object.order.objectstringAlways
order. -
data.object.order.idstring -
data.object.order.livemodebooleanTrue when the order belongs to the live environment; false for test-mode data.
-
data.object.order.createdinteger -
data.object.order.updatedintegerWhen the order last changed (Unix seconds), including its payment and delivery. Of two copies of one order, from webhooks that arrived out of order, the one with the larger
updatedis newer; on a tie, read it again withGET /v1/orders/{orderId}. -
data.object.order.statusstringOne of
pending,submitted,accepted,ready,in_delivery,fulfilled,rejected,canceled. -
data.object.order.cancellation_reasonstring or nullWho canceled the order (
customerorrestaurant) whenstatusiscanceled; null otherwise. -
data.object.order.canceled_atinteger or nullWhen the order was canceled (Unix seconds); null unless
statusiscanceled, and null for orders canceled before 2026-11-24. -
data.object.order.rejection_reasonstring or nullWhy the order is
rejected:validation_failed(your app answered its validationinvalid, or did not answer),submission_failed(Maple could not hand the order to your app),denied(your app denied it),decision_timeout(no decision arrived in time) orexpired(the order was too old to make by the time Maple could send it). Null otherwise, and null for orders rejected before 2026-11-24. -
data.object.order.location_idstringThe location the order belongs to.
-
data.object.order.fulfillment_typestringpickup(the customer collects the order) ordelivery. One ofpickup,delivery. -
data.object.order.numberstring or nullThe short order number Maple gave the customer, the one they say at the counter (e.g.
1274). Not unique across locations or over time; useidto identify the order. -
data.object.order.sourcestring or nullWhere the customer placed the order:
phone(Maple’s phone agent),web(the restaurant’s Maple ordering website),kiosk, orpos. Null for orders Maple did not classify. -
data.object.order.notesstring or nullWhat the customer asked for on the whole order (special instructions); null when nothing. Item requests are on each line item’s
notes, delivery instructions ondelivery_address.notes. -
data.object.order.ready_byintegerWhen the order is due (Unix seconds):
scheduled_forfor a scheduled order, otherwise the time Maple gave the customer, the order time plus the prep time. -
data.object.order.scheduled_forinteger or nullCustomer-selected completion time (Unix seconds) for scheduled orders; null for ASAP orders. Prepare the order for this time, not on receipt.
-
data.object.order.delivery_addressobject or nullThe delivery address for delivery orders, including delivery instructions; null for pickup orders or when no stored address is available.
-
data.object.order.delivery_address.line1string or null -
data.object.order.delivery_address.line2string or null -
data.object.order.delivery_address.citystring or null -
data.object.order.delivery_address.statestring or null -
data.object.order.delivery_address.postal_codestring or null -
data.object.order.delivery_address.countrystring or null -
data.object.order.delivery_address.notesstring or null -
data.object.order.customerobject -
data.object.order.customer.namestring -
data.object.order.customer.phonestring or nullCustomer phone number in E.164 format (e.g. +14155552671); null when the customer provided none.
-
data.object.order.customer.phone_last_fourstring or nullLast four digits of the customer phone number.
-
data.object.order.line_itemsobject[] -
data.object.order.line_items[].namestring -
data.object.order.line_items[].external_idstring or null -
data.object.order.line_items[].quantitynumber -
data.object.order.line_items[].base_price_moneyobject -
data.object.order.line_items[].base_price_money.amountinteger -
data.object.order.line_items[].base_price_money.currencystring -
data.object.order.line_items[].tax_moneyobject -
data.object.order.line_items[].tax_money.amountinteger -
data.object.order.line_items[].tax_money.currencystring -
data.object.order.line_items[].notesstring or null -
data.object.order.line_items[].modifier_groupsobject[] -
data.object.order.line_items[].modifier_groups[].namestring -
data.object.order.line_items[].modifier_groups[].external_idstring or null -
data.object.order.line_items[].modifier_groups[].optionsobject[] -
data.object.order.totalsobjectEach amount is
{ amount, currency }:amountin integer minor units (cents forUSD).subtotal_moneyis the line items and their modifiers before discounts;discount_moneyis what discounts took off them;tax_moneyis the tax charged, after discounts;surcharge_moneyis Maple’s processing fee passed to the customer;service_charge_moneyis the restaurant’s own fees its POS adds to the check;tip_moneyis the tip for the restaurant. Two POS systems file the restaurant’s fees elsewhere: Toast counts its non-gratuity service charges insubtotal_money, and Chowbus fees are insurcharge_money.total_moneyis what the customer pays: the amount charged online, or for anin_storeorder the amount the restaurant should collect (Maple does not see what it took). It is subtotal - discount + tax + surcharge + service charge + tip + delivery fee + delivery tip. -
data.object.order.totals.subtotal_moneyobject -
data.object.order.totals.subtotal_money.amountinteger -
data.object.order.totals.subtotal_money.currencystring -
data.object.order.totals.discount_moneyobject -
data.object.order.totals.discount_money.amountinteger -
data.object.order.totals.discount_money.currencystring -
data.object.order.totals.tax_moneyobject -
data.object.order.totals.tax_money.amountinteger -
data.object.order.totals.tax_money.currencystring -
data.object.order.totals.surcharge_moneyobject -
data.object.order.totals.surcharge_money.amountinteger -
data.object.order.totals.surcharge_money.currencystring -
data.object.order.totals.service_charge_moneyobject -
data.object.order.totals.service_charge_money.amountinteger -
data.object.order.totals.service_charge_money.currencystring -
data.object.order.totals.tip_moneyobject -
data.object.order.totals.tip_money.amountinteger -
data.object.order.totals.tip_money.currencystring -
data.object.order.totals.delivery_fee_moneyobject -
data.object.order.totals.delivery_fee_money.amountinteger -
data.object.order.totals.delivery_fee_money.currencystring -
data.object.order.totals.delivery_tip_moneyobject -
data.object.order.totals.delivery_tip_money.amountinteger -
data.object.order.totals.delivery_tip_money.currencystring -
data.object.order.totals.total_moneyobject -
data.object.order.totals.total_money.amountinteger -
data.object.order.totals.total_money.currencystring -
data.object.order.paymentobjectHow the customer pays.
method:online(through a payment link or the ordering website) orin_store(at the restaurant, at pickup or delivery); null only when Maple recorded none.provider: the payment processor, null before a payment exists.payment_link_url: the link Maple sent the customer; null forin_storeorders or before a link exists. -
data.object.order.payment.methodstring or null -
data.object.order.payment.providerstring or null -
data.object.order.payment.statusstring or nullWhere the customer’s payment stands:
pending(not paid yet; anin_storeorder stayspendinguntil your app marks it paid withPOST /v1/orders/{orderId}/pay),paid,failed(the payment did not go through),voided(Maple canceled the payment before it settled),refundedorpartially_refunded. Null only when Maple recorded none. -
data.object.order.payment.payment_link_urlstring or null -
data.object.expires_atinteger or nullWhen the request or result goes stale (Unix seconds); null for an
invalidresult. -
data.object.partner_referencestring or null -
data.object.reasonobject or null -
data.object.reason.codestring -
data.object.reason.explanationstring or null -
data.object.reason.item_external_idsstring[] or null -
data.object.warningsstring[] -
data.object.originstringOne of
install,staff,test. -
data.object.scopesstring[] -
data.object.pending_scopesstring[] -
data.object.revoked_atinteger or null -
data.object.urlstringThe HTTPS URL Maple sends events to.
-
data.object.api_versionstringThe API version this endpoint’s events are rendered in, a date (
YYYY-MM-DD). Fixed when the endpoint is created. -
data.object.enabled_eventsstring[]The event types Maple sends to
url.
Errors
-
400Bad request -
401Unauthorized -
403Forbidden -
404Not found -
409Conflict -
429Too many requests -
500Server error
Every error body is one error object: branch on its type and code; message is for people, param names the field at fault, and doc_url links the code on Errors.
A 429 also sends Retry-After: Seconds to wait before retrying; also returned as error.retry_after in the body.