Posted - 04/30/2020 : 14:15:29
Hi Vince, I finally had a chance to hook up with DHL and do their test. "Looks like it has to do with how your website is reading the returned XML response. You’ll see below that the pickup date and the delivery date are correct. They show a two day transit time. Where it gets confusing is the TotalTransitDays section. To get the actual final total transit days one has to add <TotalTransitDays><PickupPostalLocAddDays> and <DeliveryPostalLocAddDays> Which in this case would equal 2." <PickupDate>2020-04-27</PickupDate> <PickupCutoffTime>PT18H</PickupCutoffTime> <BookingTime>PT17H</BookingTime> <TotalTransitDays>1</TotalTransitDays> <PickupPostalLocAddDays>1</PickupPostalLocAddDays> <DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays> <PickupNonDHLCourierCode> </PickupNonDHLCourierCode> <DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode> <DeliveryDate>2020-04-29</DeliveryDate> "I would probably do date math on the pickup date and the delivery date to get the proper transit time." Can that be done? Thanks!
|