fix: expose waybill and awb at root level of Delhivery dispatch response
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 41s

This commit is contained in:
vignesh 2026-10-11 11:44:56 +05:30
parent d71027e903
commit c470f2d0e4

View file

@ -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