{"templateId":"markdown","versions":[{"version":"v1","label":"v1","link":"/developer-resources/ingrid-api/v1/webhooks","default":true,"active":false,"folderId":"570314d1"},{"version":"v1.preview","label":"v1.preview","link":"/developer-resources/ingrid-api/v1.preview/webhooks","default":false,"active":true,"folderId":"570314d1"}],"sharedDataIds":{"sidebar":"sidebar-developer-resources/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["json-schema"]},"type":"markdown"},"seo":{"title":"Webhooks"},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"webhooks","__idx":0},"children":["Webhooks"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This webhook documentation is currently available only in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1.preview"]}," ","channel and may change before general availability."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ingrid webhooks provide server-to-server event notifications when orders or"," ","parcels are updated in Ingrid."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This documentation includes:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the webhook payload reference"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["guidance for receiving and acknowledging deliveries"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["current retry behavior"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["the public events catalog that can trigger a delivery"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["request verification guidance for signed webhook requests"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["replay-prevention guidance for freshness and deduplication"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"delivery-model","__idx":1},"children":["Delivery model"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each delivery uses a shared event envelope with:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," as the unique event identifier"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["createdAt"]}," as the event timestamp"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggerName"]}," as the configured trigger scenario that matched"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggeringEvent"]}," as the public catalog event that caused the webhook"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}," as the order or parcel payload"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggeringEvent"]}," identifies the underlying event. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggerName"]}," identifies the"," ","configured trigger scenario that caused the receiver to be notified."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggeringEvent: order.confirmed.v1"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggerName: us-order-confirmed"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This means the underlying event was ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["order.confirmed.v1"]},", and the delivery was"," ","sent because the configured ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["us-order-confirmed"]}," scenario matched."]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"$ref":"../openapi.yaml#/components/schemas/Webhooks.BaseEvent"},"options":{},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"$ref":"#/components/schemas/Webhooks.BaseEvent"},"Webhooks.BaseEvent":{"type":"object","description":"Common webhook delivery fields","required":["id","createdAt","triggerName","triggeringEvent"],"properties":{"id":{"type":"string","description":"Unique delivery identifier. Use this for idempotency and deduplication."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the webhook delivery was created."},"triggerName":{"type":"string","description":"Name of the configured trigger that generated the delivery."},"triggeringEvent":{"type":"string","description":"Public business event that caused the webhook delivery."}}}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["There are currently two payload families:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OrderEvent"]}," for order-level notifications"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ParcelEvent"]}," for parcel-level notifications"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"events-catalog","__idx":2},"children":["Events catalog"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Webhook deliveries are triggered by a public Ingrid event exposed in the"," ","top-level ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["triggeringEvent"]}," field."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Refer to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/developer-resources/ingrid-api/v1.preview/webhooks/events"},"children":["Events Catalog"]}," for the list of supported events and"," ","their meaning."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"payload-shapes","__idx":3},"children":["Payload shapes"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"order-events","__idx":4},"children":["Order events"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"$ref":"../openapi.yaml#/components/schemas/Webhooks.EcomOrderEvent"},"options":{},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"$ref":"#/components/schemas/Webhooks.EcomOrderEvent"},"Webhooks.BaseEvent":{"type":"object","description":"Common webhook delivery fields","required":["id","createdAt","triggerName","triggeringEvent"],"properties":{"id":{"type":"string","description":"Unique delivery identifier. Use this for idempotency and deduplication."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the webhook delivery was created."},"triggerName":{"type":"string","description":"Name of the configured trigger that generated the delivery."},"triggeringEvent":{"type":"string","description":"Public business event that caused the webhook delivery."}}},"Webhooks.OrderPublicEventType":{"type":"string","description":"Event type that caused the webhook.","oneOf":[{"const":"order.confirmed.v1","description":"Published when an order is confirmed."},{"const":"order.withdrawal_submitted.v1","description":"Published when a withdrawal of one or more order items is submitted by the customer."}]},"Webhooks.EcomOrderMeta":{"type":"object","description":"E-commerce order metadata with counts and versioning","required":["version","fulfillments_count","parcels_count"],"properties":{"version":{"type":"integer","format":"int64","description":"E-commerce order version number"},"fulfillments_count":{"type":"integer","format":"int32","description":"Number of fulfillments"},"parcels_count":{"type":"integer","format":"int32","description":"Number of parcels"}}},"Webhooks.DisplayAttribute":{"type":"object","description":"Display-oriented key/value attribute for a cart item","required":["key","value"],"properties":{"key":{"type":"string","description":"Stable identifier for the attribute"},"value":{"type":"string","description":"Displayable value"},"label":{"type":"string","description":"Human-readable label"}}},"Webhooks.CartItem":{"type":"object","description":"Individual item in a shopping cart","properties":{"sku":{"type":"string","description":"Stock Keeping Unit identifier"},"name":{"type":"string","description":"Product name or title"},"quantity":{"type":"integer","format":"int32","minimum":0,"description":"Number of non-cancelled items"},"price":{"type":"integer","format":"int32","description":"Price per item with discounts applied in cents"},"discount":{"type":"integer","format":"int32","description":"Discount per item in cents"},"total_price":{"type":"integer","format":"int32","description":"Total price for all non-cancelled items in cents"},"image":{"type":"string","format":"uri","description":"URL of the product image"},"cancelled_quantity":{"type":"integer","format":"int32","minimum":0,"description":"Number of cancelled items"},"cancelled_total_price":{"type":"integer","format":"int32","description":"Total price for cancelled items in cents"},"attributes":{"type":"object","additionalProperties":{"type":"string"},"description":"Additional item properties as key-value pairs"},"display_attributes":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.DisplayAttribute"},"description":"Display-oriented attributes for the item (key/value/label)"}}},"Webhooks.Cart":{"type":"object","description":"Shopping cart with items and pricing","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.CartItem"},"description":"List of items in the cart"},"order_discount":{"type":"integer","format":"int32","description":"Order discount in cents"},"shipping_price":{"type":"integer","format":"int32","description":"Shipping price in cents"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Currency code (ISO-4217)"},"total_discount":{"type":"integer","format":"int32","description":"Total discount amount in cents"},"tax":{"type":"integer","format":"int32","description":"Tax amount in cents"},"subtotal":{"type":"integer","format":"int32","description":"Subtotal before additional charges in cents"},"grand_total":{"type":"integer","format":"int32","description":"Final amount to pay in cents"},"attributes":{"type":"array","items":{"type":"string"},"description":"Custom attributes for the cart"}}},"Webhooks.Coordinates":{"type":"object","description":"Geographical coordinates","required":["lat","lng"],"properties":{"lat":{"type":"number","format":"double","minimum":-90,"maximum":90,"description":"Latitude"},"lng":{"type":"number","format":"double","minimum":-180,"maximum":180,"description":"Longitude"}}},"Webhooks.Address":{"type":"object","description":"Complete address information with geolocation","properties":{"name":{"type":"string","description":"Customer or company name"},"care_of":{"type":"string","description":"Care of part of address (c/o)"},"attn":{"type":"string","description":"Attention field for company addresses"},"address_lines":{"type":"array","items":{"type":"string"},"description":"Address lines including street and building number"},"city":{"type":"string","description":"City name"},"region":{"type":"string","description":"State or province"},"postal_code":{"type":"string","description":"Postal code or zipcode"},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country code (ISO Alpha-2)"},"coordinates":{"$ref":"#/components/schemas/Webhooks.Coordinates"},"door_code":{"type":"string","description":"Door code for building entrance"},"street":{"type":"string","description":"Street name"},"street_number":{"type":"string","description":"Street number"},"apartment_number":{"type":"string","description":"Apartment number"},"floor_number":{"type":"string","description":"Floor number"},"subregion":{"type":"string","description":"County or other subdivision"},"building_name":{"type":"string","description":"Building name (for UK addresses without numbers)"},"po_box_id":{"type":"string","description":"PO Box identifier"}}},"Webhooks.ContactInfo":{"type":"object","description":"Contact details including address, phone, and email","properties":{"address":{"$ref":"#/components/schemas/Webhooks.Address"},"phone":{"type":"string","description":"Phone number"},"email":{"type":"string","format":"email","description":"Email address"},"name":{"type":"string","description":"Full name"}}},"Webhooks.PaymentEntry":{"type":"object","description":"Individual payment entry with method and amount","required":["method","amount","currency"],"properties":{"method":{"type":"string","description":"Payment method used"},"amount":{"type":"integer","format":"int32","description":"Payment amount in cents"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Currency code (ISO-4217)"},"attributes":{"type":"object","additionalProperties":true,"description":"Additional payment attributes"},"timestamp":{"type":"string","format":"date-time","description":"Payment timestamp"}}},"Webhooks.PaymentStatus":{"type":"string","description":"Status of payment transaction","enum":["SUCCESS","FAILURE"]},"Webhooks.Payment":{"type":"object","description":"Payment information with entries and status","required":["status"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.PaymentEntry"},"description":"List of payment entries"},"status":{"$ref":"#/components/schemas/Webhooks.PaymentStatus"}}},"Webhooks.CancellingParty":{"type":"string","description":"Party that cancelled the order","enum":["UNKNOWN","MERCHANT","CUSTOMER"]},"Webhooks.EcomOrderData":{"type":"object","description":"Core e-commerce order data without fulfillments and parcels arrays","required":["id","tos_id","created_at","meta"],"properties":{"meta":{"$ref":"#/components/schemas/Webhooks.EcomOrderMeta"},"tos_id":{"type":"string","description":"TOS identifier"},"id":{"type":"string","description":"External order ID"},"created_at":{"type":"string","format":"date-time","description":"Order creation timestamp"},"cart":{"$ref":"#/components/schemas/Webhooks.Cart"},"customer":{"$ref":"#/components/schemas/Webhooks.ContactInfo"},"payment":{"$ref":"#/components/schemas/Webhooks.Payment"},"locale":{"type":"string","description":"Order locale"},"attributes":{"type":"object","additionalProperties":true,"description":"Additional order attributes"},"billing_address":{"$ref":"#/components/schemas/Webhooks.Address"},"tracking_link":{"type":"string","format":"uri","description":"Order tracking link"},"is_cancelled":{"type":"boolean","description":"Indicates if the order has been cancelled"},"is_estimated_preparation_time_exceeded":{"type":"boolean","description":"Indicates if the estimated preparation time has been exceeded"},"cancelled_by":{"$ref":"#/components/schemas/Webhooks.CancellingParty"}}},"Webhooks.Receiver":{"type":"object","description":"Buyer information with contact and billing details","required":["contact_info","billing"],"properties":{"contact_info":{"$ref":"#/components/schemas/Webhooks.ContactInfo"},"billing":{"$ref":"#/components/schemas/Webhooks.ContactInfo"}}},"Webhooks.ShippingPickupLocationType":{"type":"string","description":"Type of pickup location for shipping","enum":["UNKNOWN","LOCKER","STORE","POSTOFFICE","MANNED"]},"Webhooks.OperationalHours":{"type":"object","description":"Weekly operational hours for each day","properties":{"mon":{"type":"string","description":"Monday operational hours"},"tue":{"type":"string","description":"Tuesday operational hours"},"wed":{"type":"string","description":"Wednesday operational hours"},"thu":{"type":"string","description":"Thursday operational hours"},"fri":{"type":"string","description":"Friday operational hours"},"sat":{"type":"string","description":"Saturday operational hours"},"sun":{"type":"string","description":"Sunday operational hours"},"free_text":{"type":"array","items":{"type":"string"},"description":"Free text operational hours as fallback"}}},"Webhooks.PickupPointDetails":{"type":"object","description":"Details about pickup point location","properties":{"location_ref":{"type":"string","description":"Reference identifier for the location"},"location_type":{"$ref":"#/components/schemas/Webhooks.ShippingPickupLocationType"},"operational_hours":{"$ref":"#/components/schemas/Webhooks.OperationalHours"}}},"Webhooks.Location":{"type":"object","description":"Location information with address and pickup details","properties":{"address":{"$ref":"#/components/schemas/Webhooks.Address"},"courier_instructions":{"type":"string","description":"Special instructions for courier"},"pickup_point_details":{"$ref":"#/components/schemas/Webhooks.PickupPointDetails"}}},"Webhooks.CarrierInfo":{"type":"object","description":"Information about shipping carrier","properties":{"carrier_name":{"type":"string","description":"Name of the carrier company"},"carrier_product_id":{"type":"string","description":"Carrier's product identifier"},"carrier_product_ref":{"type":"string","description":"Carrier's product reference"},"carrier_logo_pattern":{"type":"string","description":"Pattern for carrier logo URL"}}},"Webhooks.DateTimeRange":{"type":"object","description":"Time range with start and end timestamps","properties":{"start":{"type":"string","format":"date-time","description":"Start time of the range"},"end":{"type":"string","format":"date-time","description":"End time of the range"}}},"Webhooks.DeliveryPromise":{"type":"object","description":"Delivery time promises and ranges","properties":{"pickup_from_merchant":{"$ref":"#/components/schemas/Webhooks.DateTimeRange"},"customer_delivery_promise":{"$ref":"#/components/schemas/Webhooks.DateTimeRange"},"carrier_delivery_promise":{"$ref":"#/components/schemas/Webhooks.DateTimeRange"}}},"Webhooks.Shipping":{"type":"object","description":"Shipping information including carrier and delivery promise","properties":{"carrier_info":{"$ref":"#/components/schemas/Webhooks.CarrierInfo"},"delivery_promise":{"$ref":"#/components/schemas/Webhooks.DeliveryPromise"}}},"Webhooks.DeliveryType":{"type":"string","description":"Type of delivery method","enum":["UNKNOWN","DELIVERY","PICKUP","MAILBOX","INSTORE","INWAREHOUSE"]},"Webhooks.TrackingStep":{"type":"string","description":"Current step in the tracking process","enum":["STEP_UNKNOWN","STEP_CONFIRMED_BY_MERCHANT","STEP_PREPARED_BY_MERCHANT","STEP_SUBMITTED_TO_CARRIER","STEP_ON_ROUTE","STEP_DELIVERED_TO_PICKUP_POINT","STEP_DELIVERED_TO_CONSUMER","STEP_TERMINATED","STEP_SENT_BACK","STEP_RETURN_REQUESTED","STEP_DELIVERED_TO_MERCHANT","STEP_AWAITING_SUPPLIER","STEP_LINEHAUL_TO_CARRIER"]},"Webhooks.Fulfillment":{"type":"object","description":"Order fulfillment with shipping and delivery details","required":["tos_id","sender","receiver","destination","delivery_type","current_step"],"properties":{"attributes":{"type":"object","additionalProperties":true,"description":"Additional fulfillment attributes"},"tos_id":{"type":"string","description":"TOS identifier"},"sender":{"$ref":"#/components/schemas/Webhooks.ContactInfo"},"receiver":{"$ref":"#/components/schemas/Webhooks.Receiver"},"destination":{"$ref":"#/components/schemas/Webhooks.Location"},"shipping":{"$ref":"#/components/schemas/Webhooks.Shipping"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.CartItem"},"description":"Items in this fulfillment"},"shipping_method":{"type":"string","description":"Shipping method name"},"delivery_type":{"$ref":"#/components/schemas/Webhooks.DeliveryType"},"current_step":{"$ref":"#/components/schemas/Webhooks.TrackingStep"},"is_submission_time_exceeded":{"type":"boolean","description":"Indicates if the submission time has been exceeded"},"is_cancelled":{"type":"boolean","description":"Indicates if the fulfillment has been cancelled"},"is_delivery_time_exceeded":{"type":"boolean","description":"Indicates if the delivery time has been exceeded"}}},"Webhooks.RefusalReason":{"type":"string","description":"Reason for parcel refusal","enum":["UNKNOWN","NO_REASON","NOT_ORDERED","GOODS_DAMAGED","PACKAGING_DAMAGED"]},"Webhooks.ParcelData":{"type":"object","description":"Core parcel data without associated order","required":["tos_id","tracking_number"],"properties":{"tos_id":{"type":"string","description":"TOS identifier"},"carrier_info":{"$ref":"#/components/schemas/Webhooks.CarrierInfo"},"delivery_promise":{"$ref":"#/components/schemas/Webhooks.DeliveryPromise"},"delivery_type":{"$ref":"#/components/schemas/Webhooks.DeliveryType"},"sender_address":{"$ref":"#/components/schemas/Webhooks.Address"},"sender_name":{"type":"string","description":"Sender name"},"customer":{"$ref":"#/components/schemas/Webhooks.ContactInfo"},"destination":{"$ref":"#/components/schemas/Webhooks.Location"},"tracking_number":{"type":"string","description":"Parcel tracking number"},"tracking_link":{"type":"string","format":"uri","description":"Parcel tracking link"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.CartItem"},"description":"List of items in the parcel"},"current_step":{"$ref":"#/components/schemas/Webhooks.TrackingStep"},"attributes":{"type":"object","additionalProperties":true,"description":"Additional parcel attributes"},"is_estimated_delivery_time_exceeded":{"type":"boolean","description":"Indicates if the estimated delivery time has been exceeded"},"is_delayed":{"type":"boolean","description":"Indicates if the delivery is delayed"},"is_out_for_delivery":{"type":"boolean","description":"Indicates if the parcel is out for delivery"},"out_for_delivery_at":{"type":"string","format":"date-time","description":"Timestamp when the parcel was marked as out for delivery"},"failed_delivery_attempts_count":{"type":"integer","format":"int32","description":"Number of failed delivery attempts"},"last_failed_delivery_attempt_at":{"type":"string","format":"date-time","description":"Timestamp of the last failed delivery attempt"},"is_refused":{"type":"boolean","description":"Indicates if the parcel was refused by the recipient"},"refusal_reason":{"$ref":"#/components/schemas/Webhooks.RefusalReason"},"is_overdue":{"type":"boolean","description":"When true, parcel is confirmed overdue for pickup. False doesn't guarantee it's not overdue."}}},"Webhooks.EcomOrder":{"type":"object","description":"Complete e-commerce order model with fulfillments and parcels","allOf":[{"$ref":"#/components/schemas/Webhooks.EcomOrderData"},{"type":"object","properties":{"fulfillments":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.Fulfillment"}},"parcels":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.ParcelData"}}}}]},"Webhooks.EcomOrderEvent":{"type":"object","description":"Webhook delivery containing the e-commerce order payload model.","allOf":[{"$ref":"#/components/schemas/Webhooks.BaseEvent"},{"type":"object","description":"Webhook delivery where `data` uses the `EcomOrder` schema.","required":["type","triggeringEvent","data"],"properties":{"type":{"type":"string","enum":["ECOM_ORDER"],"description":"Payload model type for the `data` object."},"triggeringEvent":{"$ref":"#/components/schemas/Webhooks.OrderPublicEventType"},"data":{"$ref":"#/components/schemas/Webhooks.EcomOrder"}}}]}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parcel-events","__idx":5},"children":["Parcel events"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"$ref":"../openapi.yaml#/components/schemas/Webhooks.ParcelEvent"},"options":{},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"$ref":"#/components/schemas/Webhooks.ParcelEvent"},"Webhooks.BaseEvent":{"type":"object","description":"Common webhook delivery fields","required":["id","createdAt","triggerName","triggeringEvent"],"properties":{"id":{"type":"string","description":"Unique delivery identifier. Use this for idempotency and deduplication."},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the webhook delivery was created."},"triggerName":{"type":"string","description":"Name of the configured trigger that generated the delivery."},"triggeringEvent":{"type":"string","description":"Public business event that caused the webhook delivery."}}},"Webhooks.ParcelPublicEventType":{"type":"string","description":"Event type that caused the webhook.","oneOf":[{"const":"parcel.prepared_by_merchant.v1","description":"Published when parcel progress changes to Prepared by Merchant."},{"const":"parcel.submitted_to_carrier.v1","description":"Published when parcel progress changes to Submitted to Carrier."},{"const":"parcel.delivered_to_pickup_point.v1","description":"Published when parcel progress changes to Delivered to Pickup Point."},{"const":"parcel.delivered_to_consumer.v1","description":"Published when parcel progress changes to Delivered to Consumer."},{"const":"parcel.terminated.v1","description":"Published when parcel progress changes to Terminated because delivery can no longer be completed."},{"const":"parcel.sent_back.v1","description":"Published when parcel progress changes to Sent Back and the parcel is returning to the sender."},{"const":"parcel.on_route.v1","description":"Published when parcel progress changes to On Route."},{"const":"parcel.out_for_delivery.v1","description":"Published when the carrier marks the parcel as out for final-mile delivery."},{"const":"parcel.delivery_attempt_failed.v1","description":"Published when a delivery attempt fails."},{"const":"parcel.delivery_delayed.v1","description":"Published when the carrier reports that delivery is delayed."},{"const":"parcel.estimated_delivery_time_updated.v1","description":"Published when the parcel ETA is updated."},{"const":"parcel.estimated_delivery_time_exceeded.v1","description":"Published when the current parcel ETA is exceeded."}]},"Webhooks.CarrierInfo":{"type":"object","description":"Information about shipping carrier","properties":{"carrier_name":{"type":"string","description":"Name of the carrier company"},"carrier_product_id":{"type":"string","description":"Carrier's product identifier"},"carrier_product_ref":{"type":"string","description":"Carrier's product reference"},"carrier_logo_pattern":{"type":"string","description":"Pattern for carrier logo URL"}}},"Webhooks.DateTimeRange":{"type":"object","description":"Time range with start and end timestamps","properties":{"start":{"type":"string","format":"date-time","description":"Start time of the range"},"end":{"type":"string","format":"date-time","description":"End time of the range"}}},"Webhooks.DeliveryPromise":{"type":"object","description":"Delivery time promises and ranges","properties":{"pickup_from_merchant":{"$ref":"#/components/schemas/Webhooks.DateTimeRange"},"customer_delivery_promise":{"$ref":"#/components/schemas/Webhooks.DateTimeRange"},"carrier_delivery_promise":{"$ref":"#/components/schemas/Webhooks.DateTimeRange"}}},"Webhooks.DeliveryType":{"type":"string","description":"Type of delivery method","enum":["UNKNOWN","DELIVERY","PICKUP","MAILBOX","INSTORE","INWAREHOUSE"]},"Webhooks.Coordinates":{"type":"object","description":"Geographical coordinates","required":["lat","lng"],"properties":{"lat":{"type":"number","format":"double","minimum":-90,"maximum":90,"description":"Latitude"},"lng":{"type":"number","format":"double","minimum":-180,"maximum":180,"description":"Longitude"}}},"Webhooks.Address":{"type":"object","description":"Complete address information with geolocation","properties":{"name":{"type":"string","description":"Customer or company name"},"care_of":{"type":"string","description":"Care of part of address (c/o)"},"attn":{"type":"string","description":"Attention field for company addresses"},"address_lines":{"type":"array","items":{"type":"string"},"description":"Address lines including street and building number"},"city":{"type":"string","description":"City name"},"region":{"type":"string","description":"State or province"},"postal_code":{"type":"string","description":"Postal code or zipcode"},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country code (ISO Alpha-2)"},"coordinates":{"$ref":"#/components/schemas/Webhooks.Coordinates"},"door_code":{"type":"string","description":"Door code for building entrance"},"street":{"type":"string","description":"Street name"},"street_number":{"type":"string","description":"Street number"},"apartment_number":{"type":"string","description":"Apartment number"},"floor_number":{"type":"string","description":"Floor number"},"subregion":{"type":"string","description":"County or other subdivision"},"building_name":{"type":"string","description":"Building name (for UK addresses without numbers)"},"po_box_id":{"type":"string","description":"PO Box identifier"}}},"Webhooks.ContactInfo":{"type":"object","description":"Contact details including address, phone, and email","properties":{"address":{"$ref":"#/components/schemas/Webhooks.Address"},"phone":{"type":"string","description":"Phone number"},"email":{"type":"string","format":"email","description":"Email address"},"name":{"type":"string","description":"Full name"}}},"Webhooks.ShippingPickupLocationType":{"type":"string","description":"Type of pickup location for shipping","enum":["UNKNOWN","LOCKER","STORE","POSTOFFICE","MANNED"]},"Webhooks.OperationalHours":{"type":"object","description":"Weekly operational hours for each day","properties":{"mon":{"type":"string","description":"Monday operational hours"},"tue":{"type":"string","description":"Tuesday operational hours"},"wed":{"type":"string","description":"Wednesday operational hours"},"thu":{"type":"string","description":"Thursday operational hours"},"fri":{"type":"string","description":"Friday operational hours"},"sat":{"type":"string","description":"Saturday operational hours"},"sun":{"type":"string","description":"Sunday operational hours"},"free_text":{"type":"array","items":{"type":"string"},"description":"Free text operational hours as fallback"}}},"Webhooks.PickupPointDetails":{"type":"object","description":"Details about pickup point location","properties":{"location_ref":{"type":"string","description":"Reference identifier for the location"},"location_type":{"$ref":"#/components/schemas/Webhooks.ShippingPickupLocationType"},"operational_hours":{"$ref":"#/components/schemas/Webhooks.OperationalHours"}}},"Webhooks.Location":{"type":"object","description":"Location information with address and pickup details","properties":{"address":{"$ref":"#/components/schemas/Webhooks.Address"},"courier_instructions":{"type":"string","description":"Special instructions for courier"},"pickup_point_details":{"$ref":"#/components/schemas/Webhooks.PickupPointDetails"}}},"Webhooks.DisplayAttribute":{"type":"object","description":"Display-oriented key/value attribute for a cart item","required":["key","value"],"properties":{"key":{"type":"string","description":"Stable identifier for the attribute"},"value":{"type":"string","description":"Displayable value"},"label":{"type":"string","description":"Human-readable label"}}},"Webhooks.CartItem":{"type":"object","description":"Individual item in a shopping cart","properties":{"sku":{"type":"string","description":"Stock Keeping Unit identifier"},"name":{"type":"string","description":"Product name or title"},"quantity":{"type":"integer","format":"int32","minimum":0,"description":"Number of non-cancelled items"},"price":{"type":"integer","format":"int32","description":"Price per item with discounts applied in cents"},"discount":{"type":"integer","format":"int32","description":"Discount per item in cents"},"total_price":{"type":"integer","format":"int32","description":"Total price for all non-cancelled items in cents"},"image":{"type":"string","format":"uri","description":"URL of the product image"},"cancelled_quantity":{"type":"integer","format":"int32","minimum":0,"description":"Number of cancelled items"},"cancelled_total_price":{"type":"integer","format":"int32","description":"Total price for cancelled items in cents"},"attributes":{"type":"object","additionalProperties":{"type":"string"},"description":"Additional item properties as key-value pairs"},"display_attributes":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.DisplayAttribute"},"description":"Display-oriented attributes for the item (key/value/label)"}}},"Webhooks.TrackingStep":{"type":"string","description":"Current step in the tracking process","enum":["STEP_UNKNOWN","STEP_CONFIRMED_BY_MERCHANT","STEP_PREPARED_BY_MERCHANT","STEP_SUBMITTED_TO_CARRIER","STEP_ON_ROUTE","STEP_DELIVERED_TO_PICKUP_POINT","STEP_DELIVERED_TO_CONSUMER","STEP_TERMINATED","STEP_SENT_BACK","STEP_RETURN_REQUESTED","STEP_DELIVERED_TO_MERCHANT","STEP_AWAITING_SUPPLIER","STEP_LINEHAUL_TO_CARRIER"]},"Webhooks.RefusalReason":{"type":"string","description":"Reason for parcel refusal","enum":["UNKNOWN","NO_REASON","NOT_ORDERED","GOODS_DAMAGED","PACKAGING_DAMAGED"]},"Webhooks.ParcelData":{"type":"object","description":"Core parcel data without associated order","required":["tos_id","tracking_number"],"properties":{"tos_id":{"type":"string","description":"TOS identifier"},"carrier_info":{"$ref":"#/components/schemas/Webhooks.CarrierInfo"},"delivery_promise":{"$ref":"#/components/schemas/Webhooks.DeliveryPromise"},"delivery_type":{"$ref":"#/components/schemas/Webhooks.DeliveryType"},"sender_address":{"$ref":"#/components/schemas/Webhooks.Address"},"sender_name":{"type":"string","description":"Sender name"},"customer":{"$ref":"#/components/schemas/Webhooks.ContactInfo"},"destination":{"$ref":"#/components/schemas/Webhooks.Location"},"tracking_number":{"type":"string","description":"Parcel tracking number"},"tracking_link":{"type":"string","format":"uri","description":"Parcel tracking link"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.CartItem"},"description":"List of items in the parcel"},"current_step":{"$ref":"#/components/schemas/Webhooks.TrackingStep"},"attributes":{"type":"object","additionalProperties":true,"description":"Additional parcel attributes"},"is_estimated_delivery_time_exceeded":{"type":"boolean","description":"Indicates if the estimated delivery time has been exceeded"},"is_delayed":{"type":"boolean","description":"Indicates if the delivery is delayed"},"is_out_for_delivery":{"type":"boolean","description":"Indicates if the parcel is out for delivery"},"out_for_delivery_at":{"type":"string","format":"date-time","description":"Timestamp when the parcel was marked as out for delivery"},"failed_delivery_attempts_count":{"type":"integer","format":"int32","description":"Number of failed delivery attempts"},"last_failed_delivery_attempt_at":{"type":"string","format":"date-time","description":"Timestamp of the last failed delivery attempt"},"is_refused":{"type":"boolean","description":"Indicates if the parcel was refused by the recipient"},"refusal_reason":{"$ref":"#/components/schemas/Webhooks.RefusalReason"},"is_overdue":{"type":"boolean","description":"When true, parcel is confirmed overdue for pickup. False doesn't guarantee it's not overdue."}}},"Webhooks.EcomOrderMeta":{"type":"object","description":"E-commerce order metadata with counts and versioning","required":["version","fulfillments_count","parcels_count"],"properties":{"version":{"type":"integer","format":"int64","description":"E-commerce order version number"},"fulfillments_count":{"type":"integer","format":"int32","description":"Number of fulfillments"},"parcels_count":{"type":"integer","format":"int32","description":"Number of parcels"}}},"Webhooks.Cart":{"type":"object","description":"Shopping cart with items and pricing","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.CartItem"},"description":"List of items in the cart"},"order_discount":{"type":"integer","format":"int32","description":"Order discount in cents"},"shipping_price":{"type":"integer","format":"int32","description":"Shipping price in cents"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Currency code (ISO-4217)"},"total_discount":{"type":"integer","format":"int32","description":"Total discount amount in cents"},"tax":{"type":"integer","format":"int32","description":"Tax amount in cents"},"subtotal":{"type":"integer","format":"int32","description":"Subtotal before additional charges in cents"},"grand_total":{"type":"integer","format":"int32","description":"Final amount to pay in cents"},"attributes":{"type":"array","items":{"type":"string"},"description":"Custom attributes for the cart"}}},"Webhooks.PaymentEntry":{"type":"object","description":"Individual payment entry with method and amount","required":["method","amount","currency"],"properties":{"method":{"type":"string","description":"Payment method used"},"amount":{"type":"integer","format":"int32","description":"Payment amount in cents"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Currency code (ISO-4217)"},"attributes":{"type":"object","additionalProperties":true,"description":"Additional payment attributes"},"timestamp":{"type":"string","format":"date-time","description":"Payment timestamp"}}},"Webhooks.PaymentStatus":{"type":"string","description":"Status of payment transaction","enum":["SUCCESS","FAILURE"]},"Webhooks.Payment":{"type":"object","description":"Payment information with entries and status","required":["status"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/Webhooks.PaymentEntry"},"description":"List of payment entries"},"status":{"$ref":"#/components/schemas/Webhooks.PaymentStatus"}}},"Webhooks.CancellingParty":{"type":"string","description":"Party that cancelled the order","enum":["UNKNOWN","MERCHANT","CUSTOMER"]},"Webhooks.EcomOrderData":{"type":"object","description":"Core e-commerce order data without fulfillments and parcels arrays","required":["id","tos_id","created_at","meta"],"properties":{"meta":{"$ref":"#/components/schemas/Webhooks.EcomOrderMeta"},"tos_id":{"type":"string","description":"TOS identifier"},"id":{"type":"string","description":"External order ID"},"created_at":{"type":"string","format":"date-time","description":"Order creation timestamp"},"cart":{"$ref":"#/components/schemas/Webhooks.Cart"},"customer":{"$ref":"#/components/schemas/Webhooks.ContactInfo"},"payment":{"$ref":"#/components/schemas/Webhooks.Payment"},"locale":{"type":"string","description":"Order locale"},"attributes":{"type":"object","additionalProperties":true,"description":"Additional order attributes"},"billing_address":{"$ref":"#/components/schemas/Webhooks.Address"},"tracking_link":{"type":"string","format":"uri","description":"Order tracking link"},"is_cancelled":{"type":"boolean","description":"Indicates if the order has been cancelled"},"is_estimated_preparation_time_exceeded":{"type":"boolean","description":"Indicates if the estimated preparation time has been exceeded"},"cancelled_by":{"$ref":"#/components/schemas/Webhooks.CancellingParty"}}},"Webhooks.Parcel":{"type":"object","description":"Parcel model with associated order data","required":["tos_id","tracking_number","order"],"allOf":[{"$ref":"#/components/schemas/Webhooks.ParcelData"},{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Webhooks.EcomOrderData"}}}]},"Webhooks.ParcelEvent":{"type":"object","description":"Webhook delivery containing the parcel payload model.","allOf":[{"$ref":"#/components/schemas/Webhooks.BaseEvent"},{"type":"object","description":"Webhook delivery where `data` uses the `Parcel` schema.","required":["type","triggeringEvent","data"],"properties":{"type":{"type":"string","enum":["PARCEL"],"description":"Payload model type for the `data` object."},"triggeringEvent":{"$ref":"#/components/schemas/Webhooks.ParcelPublicEventType"},"data":{"$ref":"#/components/schemas/Webhooks.Parcel"}}}]}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"where-to-go-next","__idx":6},"children":["Where to go next"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/developer-resources/ingrid-api/v1.preview/openapi"},"children":["API Reference"]}," for the full webhook contract"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/developer-resources/ingrid-api/v1.preview/webhooks/integration"},"children":["Getting Started"]}," for receiver design and acknowledgment flow"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/developer-resources/ingrid-api/v1.preview/webhooks/verifying-requests"},"children":["Verifying Requests"]}," for signing and signature validation"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/developer-resources/ingrid-api/v1.preview/webhooks/replay-prevention"},"children":["Replay Prevention"]}," for freshness checks and deduplication"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/developer-resources/ingrid-api/v1.preview/webhooks/delivery-and-retries"},"children":["Delivery and Retries"]}," for success and retry semantics"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/developer-resources/ingrid-api/v1.preview/webhooks/events"},"children":["Events Catalog"]}," for the supported event catalog"]}]}]},"headings":[{"value":"Webhooks","id":"webhooks","depth":1},{"value":"Delivery model","id":"delivery-model","depth":2},{"value":"Events catalog","id":"events-catalog","depth":2},{"value":"Payload shapes","id":"payload-shapes","depth":2},{"value":"Order events","id":"order-events","depth":3},{"value":"Parcel events","id":"parcel-events","depth":3},{"value":"Where to go next","id":"where-to-go-next","depth":2}],"frontmatter":{"title":"Webhooks","description":"Overview of Ingrid webhook deliveries, payload models, and integration guidance","seo":{"title":"Webhooks"}},"lastModified":"2026-09-16T11:59:37.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-resources/ingrid-api/v1.preview/webhooks","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}