From c470f2d0e4d809004591e0a69bbf1499ea0c5ccf Mon Sep 17 00:00:00 2001 From: vignesh Date: Sun, 11 Oct 2026 11:44:56 +0530 Subject: [PATCH] fix: expose waybill and awb at root level of Delhivery dispatch response --- shipping/carrier_allocator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shipping/carrier_allocator.py b/shipping/carrier_allocator.py index a612677..fc851a4 100644 --- a/shipping/carrier_allocator.py +++ b/shipping/carrier_allocator.py @@ -415,6 +415,8 @@ def dispatch_auto_allocated_order(order_payload, selection_strategy='CHEAPEST', res['estimated_cost'] = selection.get('cost') res['selection_reason'] = selection.get('reason') res['awb_number'] = pkg_list[0]['waybill'] + res['waybill'] = pkg_list[0]['waybill'] + res['awb'] = pkg_list[0]['waybill'] return res, 200 # If Delhivery booking was rejected or failed, automatically failover to live Shadowfax