Get Outbound Event Sample Payload
GET/api/webhook-events/:event/sample
Returns up to 3 most-recent real records for the named event, each shaped exactly like the live webhook payload. Backs sample-record discovery for connected apps. Returns an empty data array if the tenant has no matching records yet.
webhooks:read|webhooks:manageGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Requires webhooks:read or webhooks:manage, AND the event's own READ scope (e.g. orders:read for sales_order.* events) — a token carrying only a webhooks scope receives 403.
Sales order payload notes
currency,customer_name,customer_email,customer_companyandstore_namereport the sales-channel snapshot recorded on the order when one exists, and fall back to the linked customer, store and currency records otherwise — so a manually-created order carries the same identity fields as a channel order.- An order has no warehouse of its own; the warehouse is chosen per line. Order-level
warehouse_idandwarehouse_nameare therefore reported only when every line ships from the same warehouse, and arenullfor a split order. The per-linewarehouse_id/warehouse_nameare always present and are the authoritative value to route on. subtotal,tax_total,totaland the per-lineunit_price/totalare decimal strings with two places, not numbers.tax_totalreports the stored tax when the order has one and the calculated tax otherwise.linesis capped at 100 entries;line_countalways reports the true total, so compare the two to detect truncation.skuandnamecome from the linked product. A line with no product reportssku: nulland falls back to the line's own description forname.
Purchase order payload notes
supplier_nameanddestination_warehouse_nameare resolved from the linked supplier and warehouse records, so they are populated on every delivery regardless of how the purchase order was created.total_cost,tax_totaland the per-lineunit_cost/totalare decimal strings with two places, not numbers.total_quantityand the per-linequantity_ordered/quantity_receivedare numbers, because a line may be ordered in fractional units.- The per-line
totalis the line's extended cost after its discount — quantity × unit cost less the extended discount — so summing it, notquantity_ordered × unit_cost, reconciles againsttotal_cost. linesis capped at 100 entries;line_countalways reports the true total, so compare the two to detect truncation.- Every purchase order line references a product, so
skuandnamecome from that product. The line's owndescriptionis a note on the line, not the item name.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Not Found
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.