Closed Tobias-Keller closed 2 years ago
Hello,
it's weird that you get an unknown error, but. The error basically says that the service "endorsement" is required for international shipments. I don't know why DHL want this to be required, but i get that error aswell when i try to send something to an international address.
you can set it as follows:
$shipmentOrder->Shipment->ShipmentDetails->Service->Endorsement->active = true; $shipmentOrder->Shipment->ShipmentDetails->Service->Endorsement->type = Endorsement::IMMEDIATE;
There are several types which set what will happen if the recipient is not met. immediate means ins send to back to the sender after the recipient wasnt there. You can find the constants in the Endorsement Class.
I hope i could help.
thanks, works now!
Hi! I have some trouble to make it work with international Shipments. Here is a example of the validation states (replaced personal data):
What must i do by "Bitte beachten Sie, dass der Service Vorausverfügung für Sendungen mit DHL Paket International verpflichtend ist." ? Thanks for your time.