๐Ÿ”„ Order Status Update (From Blend to Delivery App)

๐Ÿงพ Description


This document explains the order_updated event that Blend sends to the delivery app
when the order status is updated from Blendโ€™s system โ€” such as via the merchant dashboard or kitchen display system.


This allows Blend to notify the delivery partner of important changes to the order's lifecycle.





๐Ÿ” Direction


Blend โ†’ Delivery App


Blend pushes this event to the delivery app's registered webhook URL.




๐Ÿ“ฆ Example Payload


{
  "event": "order_updated",
  "event_time": "2025-01-01 00:00:00",
  "branch_id": "14589",
  "payload": {
    "order_id": "order_id",
    "status": "accepted"
  }
}



๐Ÿ—‚ Field Descriptions

FieldDescription
eventAlways "order_updated"
event_timeTimestamp when the status update occurred
branch_idID of the branch that owns this order
payload.order_idID of the order being updated
payload.statusNew status of the order โ€” one of accepted, rejected, cancelled, prepared


๐Ÿ”„ Status Types

StatusMeaning
acceptedOrder was accepted by the merchant
rejectedOrder was rejected by the merchant
cancelledOrder was canceled by the merchant or system
preparedOrder has been prepared and is ready


๐Ÿ“ก Webhook Delivery


  • Blend pushes this JSON to the delivery partnerโ€™s webhook URL
  • Delivery app must return 200 OK on successful receipt
  • Optionally, Blend may retry on failures


โœ… Notes


  • Status updates help sync Blendโ€™s internal state with delivery platforms
  • order_id should match the order previously sent in the order_created event
  • Delivery apps should process updates immediately to reflect order progress to couriers or customers