7b. Delivery order (+ delivery fee)
logistics_type 2 = delivery. Only this variant triggers deliverectValidateDispatch(). For self-delivery (courier = restaurant) a dispatch failure does not block the order; otherwise the orde
POST
/v1/webhooks/deliverect
Query parameters
event
|
string |
Example: payment_completed
|
Headers
Content-Type
Required
|
string |
Example: application/json
|
Body parameters
body
Required
|
string |
Example: {
"type": "payment_completed",
"orderlemon": {
"shop": {
"id": {{deliverect_shop_id}}
},
"order": {
"id": {{deliverect_ol_order_id}},
"full_name": "Jan Kowalski",
"phonenumber": "+32471234567",
"logistics_type": 2,
"display_currency_total": 13.50,
"note": "Ring the bell",
"ordered_time": "2026-08-06 14:00:00",
"pick_up_moment": null,
"delivery_moment": "2026-08-06 15:00:00",
"payment_type": 0,
"payment_status_id": 2,
"payment_status_label": "paid",
"street": "Rue de Test 1",
"city": "Brussels",
"zip": "1000",
"country": "BE",
"cart": [
{
"id": 1,
"parent_id": null,
"product_reference": "MARG-01",
"product_id": 101,
"item_description": "Margherita",
"unit_price": 10.50,
"vat_percentage": 9,
"quantity": 1,
"campaign_id": null
},
{
"id": 2,
"parent_id": 1,
"product_reference": "XTRA-CHEESE",
"product_id": 102,
"item_description": "Extra Cheese",
"unit_price": 1.50,
"vat_percentage": 9,
"quantity": 1,
"campaign_id": null
},
{
"id": 3,
"parent_id": null,
"product_reference": "delivery_fee",
"product_id": 0,
"item_description": "Delivery Fee",
"unit_price": 2.50,
"vat_percentage": 21,
"quantity": 1,
"campaign_id": null
},
{
"id": 4,
"parent_id": null,
"product_reference": "PROMO-ORDER",
"product_id": 0,
"item_description": "Promotion",
"unit_price": -1.00,
"vat_percentage": 0,
"quantity": 1,
"campaign_id": 999
}
]
}
}
}
|
logistics_type 2 = delivery. Only this variant triggers deliverectValidateDispatch(). For self-delivery (courier = restaurant) a dispatch failure does not block the order; otherwise the order is refused with dispatch_unavailable and the OL order is marked lost.
product_reference 'delivery_fee' is a reserved line – it is skipped by availability validation and mapped to Deliverect's delivery cost.
Total check: 10.50 + 1.50 + 2.50 - 1.00 = 13.50 = display_currency_total.