Remake Orders
Deliveroo may ask restaurants to remake orders due to specific problems. Deliveroo will send a new order to the restaurant's tablet in such scenarios. Once the restaurant accepts the order, Deliveroo will send a new order event with a separate order ID.
In that case, the event payload will include a remake_details
object as outlined below:
parent_order_id
: Unique ID of the original orderfault
: Defines who caused the redelivery and affects thetotal_price
. Possible values aredeliveroo
(total_price
will be 100%) andrestaurant
(total_price
will be 0).order_cost
The price of the order before fault is applied. If the remake is Deliveroo's responsibility, theorder_cost
is at a total price; otherwise, theorder_cost
is 0.
Example Webhook Payloads
{
"event": "order.new",
"body": {
"order": {
"id": "gb:556dd9ec-0e40-48bd-97dc-63f11a47ce65",
"order_number": "28597458",
"location_id": "4163",
"display_id": "7458",
"status": "placed",
"status_log": [
{
"at": "2022-04-14T21:38:43Z",
"status": "pending"
},
{
"at": "2022-04-14T21:38:44Z",
"status": "placed"
}
],
"fulfillment_type": "deliveroo",
"cutlery_notes": "NO CUTLERY",
"asap": true,
"prepare_for": "2022-04-14T21:59:49Z",
"total_price": {
"fractional": 0,
"currency_code": "GBP"
},
"partner_order_total": {
"fractional": 0,
"currency_code": "GBP"
},
"offer_discount": {
"fractional": 0,
"currency_code": "GBP"
},
"cash_due": {
"fractional": 0,
"currency_code": "GBP"
},
"bag_fee": {
"fractional": 0,
"currency_code": "GBP"
},
"items": [
{
"pos_item_id": "50.0",
"quantity": 1,
"name": "O'Joy",
"operational_name": "O'Joy (Drinks)",
"unit_price": {
"fractional": 180,
"currency_code": "GBP"
},
"menu_unit_price": {
"fractional": 180,
"currency_code": "GBP"
},
"total_price": {
"fractional": 180,
"currency_code": "GBP"
},
"discount_amount": {
"fractional": 0,
"currency_code": "GBP"
}
},
{
"pos_item_id": "1.0",
"quantity": 1,
"name": "Fast and Free Cookbook - Sweet Potato and Okra Stew",
"operational_name": "Fast and Free Cookbook - Sweet Potato and Okra Stew (Fast and Free Book Offer)",
"unit_price": {
"fractional": 2500,
"currency_code": "GBP"
},
"menu_unit_price": {
"fractional": 2500,
"currency_code": "GBP"
},
"total_price": {
"fractional": 2680,
"currency_code": "GBP"
},
"discount_amount": {
"fractional": 0,
"currency_code": "GBP"
}
}
],
"start_preparing_at": "2022-04-14T21:43:49Z",
"remake_details": {
"fault": "deliveroo",
"parent_order_id": "gb:66ecd9dc-6b60-43fb-b27b-e841c03f9fad",
"order_cost": 2680
},
"is_tabletless": false
}
}
}
{
"event": "order.status_update",
"body": {
"order": {
"id": "gb:556dd9ec-0e40-48bd-97dc-63f11a47ce65",
"order_number": "28597458",
"location_id": "4163",
"display_id": "7458",
"status": "accepted",
"status_log": [
{
"at": "2022-04-14T21:38:43Z",
"status": "pending"
},
{
"at": "2022-04-14T21:38:44Z",
"status": "placed"
},
{
"at": "2022-04-14T21:44:01.29461Z",
"status": "accepted"
}
],
"fulfillment_type": "deliveroo",
"cutlery_notes": "NO CUTLERY",
"asap": true,
"prepare_for": "2022-04-14T21:59:49Z",
"total_price": {
"fractional": 0,
"currency_code": "GBP"
},
"partner_order_total": {
"fractional": 0,
"currency_code": "GBP"
},
"offer_discount": {
"fractional": 0,
"currency_code": "GBP"
},
"cash_due": {
"fractional": 0,
"currency_code": "GBP"
},
"bag_fee": {
"fractional": 0,
"currency_code": "GBP"
},
"items": [
{
"pos_item_id": "50.0",
"quantity": 1,
"name": "O'Joy",
"operational_name": "O'Joy (Drinks)",
"unit_price": {
"fractional": 180,
"currency_code": "GBP"
},
"menu_unit_price": {
"fractional": 180,
"currency_code": "GBP"
},
"total_price": {
"fractional": 180,
"currency_code": "GBP"
},
"discount_amount": {
"fractional": 0,
"currency_code": "GBP"
}
},
{
"pos_item_id": "1.0",
"quantity": 1,
"name": "Fast and Free Cookbook - Sweet Potato and Okra Stew",
"operational_name": "Fast and Free Cookbook - Sweet Potato and Okra Stew (Fast and Free Book Offer)",
"unit_price": {
"fractional": 2500,
"currency_code": "GBP"
},
"menu_unit_price": {
"fractional": 2500,
"currency_code": "GBP"
},
"total_price": {
"fractional": 2680,
"currency_code": "GBP"
},
"discount_amount": {
"fractional": 0,
"currency_code": "GBP"
}
}
],
"start_preparing_at": "2022-04-14T21:43:49Z",
"remake_details": {
"fault": "deliveroo",
"parent_order_id": "gb:66ecd9dc-6b60-43fb-b27b-e841c03f9fad",
"order_cost": 2680
},
"is_tabletless": false
}
}
}
{
"event": "new_order",
"restaurant_acknowledged_at": "2017-03-20T18:04:00Z",
"location_id": "33235",
"order": {
"id": "gb:df8849ae-5261-446d-9481-beb53a5cac35",
"display_id": "1234",
"asap": true,
"pickup_at": "2017-03-20T18:30:00Z",
"notes": "",
"total_price": {
"fractional": 0,
"currency_code": "GBP"
},
"partner_order_total": {
"fractional": 0,
"currency_code": "GBP"
},
"items": [
{
"pos_item_id": "1231",
"unit_price": {
"fractional": 900,
"currency_code": "GBP"
},
"menu_unit_price": {
"fractional": 900,
"currency_code": "GBP"
},
"quantity": 2,
"modifiers": []
}
]
},
"remake_details": {
"parent_order_id": "gb:8b4ad8de-5282-4692-b74d-60668e2be3dc",
"fault": "restaurant",
"order_cost": 1800
}
}
Updated about 2 years ago
What’s Next