Manual
You set up the DHL label in seven steps, then it is created on sending by itself.
For DHL return labels you need a user in the DHL business customer portal who is authorised for returns, and the receiver ID of your return recipient. You enter both per country in a record under “Shipping” › “DHL”, check it with a trial label and switch DHL on in the configuration. When a customer then chooses DHL, the label is created on sending the return shipment.
In the adminOrders › Return shipments › side menu Shipping › DHL
Before you start
What do you need from DHL for the return label?
The plugin orders DHL labels through the returns interface of DHL. For this it logs in with a user from the DHL business customer portal and names the return recipient the parcel goes to. It needs no further numbers.
From the business customer portal:
- a user authorised for returns, with the password
- the receiver ID of the return recipient, found under “Returns” › “Settings”
- for every further country you offer labels for, the details for a record of its own, a recipient of its own for example
Which record applies to an order?
For every order the plugin takes the record for the country of the delivery address and the sales channel of the order; the billing address does not matter. A record with exactly this sales channel comes before one for “All sales channels”, one for another sales channel never applies. If several match equally, the one created first applies.
Country: the record only applies to delivery addresses in this country.
Sales channel “Shop AT”: the record only applies to orders from this sales channel and comes first there.
“All sales channels” in light grey: the record applies to every sales channel.
| Order from | Delivery address in | Applies |
|---|---|---|
| Shop AT | Austria | DHL Returns Austria |
| Shop AT | Germany | DHL Returns Germany |
| Shop AT | Switzerland | no DHL label |
| Demostore | Austria | no DHL label, the Austrian record only applies to “Shop AT” |
Without a matching record DHL cannot be chosen when creating, and the admin creates no DHL label either. If a sales channel is deleted, its record applies to all sales channels; if a country is deleted, its records disappear.
Creating DHL credentials
The first DHL return label in seven steps
This is how you set up DHL for Germany, for all sales channels. Further countries then get a record of their own each.
- 1
Look up user and password in the DHL business customer portal, and the receiver ID under “Returns” › “Settings”.
- 2
Open Shipping › DHL in the side menu and click Create DHL credentials.
- 3
In the tab Master data enter a name and choose the Country; the Sales channel only if the record applies to a single one.
- 4
In the tab Access data enter user, password and Recipient.
- 5
Click Save. The page now carries the name of the record, and the tab Sandbox is available.
- 6
In the tab Sandbox click Create DHL label. If the page reports “DHL access data correct”, the data is right.
- 7
In the configuration, card DHL, switch on Offer DHL label, for the QR code also Offer QR code, and save.
Step 7 also works in the setup assistant, step “Shipping and labels”; there DHL switches on the QR code too, see Setting it up.
Master data: name, country and sales channel
The master data sets which orders the record applies to. Changed master data applies to every new label from the save on; labels already created stay as they are.
When creating, a notice stands at the top: without credentials for the country of the delivery address, the customer gets no DHL label.
Name: an internal name for the list; customers do not see it.
Country: every further country needs a record of its own.
Sales channel: empty means “All sales channels”; with a sales channel the record only applies to its orders.
Access data: user, password and recipient
All three fields are required. For every label the plugin logs in at DHL with user and password and orders the label for the return recipient. The password field is a plain text field, the password is readable.
DHL Business Customer Portal User: the user every label is requested with; it must be authorised for returns.
DHL Business Customer Portal Password: the password of this user.
Recipient: the receiver ID from the portal. The parcel goes to this recipient; the plugin sends no recipient address of its own.
Options: make the label chargeable per country
Without this setting the DHL label is free of charge as soon as the rules of the configuration fit. With it the customer buys the label as a product in the shop. It applies per record: Germany free and Austria chargeable are two records. The chapter Return labels shows how this works for the customer.
The notice of the card suggests a product of its own such as “DHL label” that stays out of listings and search with “Set visibility for selected sales channels”.
Activate makes the label chargeable for country and sales channel of this record.
Product: the product the customer buys for the label, a variant as well; name and price in the cart come from it. If it is missing or the sales channel cannot find it, DHL cannot be chosen when creating.
Sandbox: check the credentials with a trial label
The tab “Sandbox” checks the credentials at DHL before a customer needs a label. When creating, it is locked until the record has been saved once. The test also runs while “Offer DHL label” is still off.
When creating, the tab Sandbox is grey until you save.
The sender address of the trial label is prefilled with an address in Berlin. If the record applies to another country, an address from that country belongs here.
Country comes from the master data and is locked here; you check another country with its own record.
Create DHL label saves the record first, then logs in at DHL and orders a label of 1 kg for the return recipient, with the reference 12345. If a required field is missing, the save already stops.
If everything works, the page reports “DHL access data correct”. Otherwise “An error has occurred” appears with the answer of DHL word for word.
The card “DHL” in the configuration
Which settings apply to every DHL label?
Whether there are DHL labels at all and for whom is set in the configuration in the card “DHL”, per sales channel if you like. The credentials themselves are not there but per country under “Shipping” › “DHL”.
Where to find them in the configuration (Orders › Return shipments › side menu System › Settings):
Card DHL › Offer DHL labelCustomers can choose DHL as shipping and get a DHL label when credentials, customer group, minimum value and deadline fit. Off: DHL cannot be chosen when creating.
Card DHL › Offer QR codeNext to the label there is a QR code: the customer shows it at a branch or a parcel station and needs no printer. Off: only the label to print.
Card DHL › Allow several labels per return shipmentThe customer can create several labels for several parcels, at most five per return shipment; after the first label the page points this out. Off: one label per return shipment.
Card DHL › Valid customer groupsThe DHL label is only offered to customers of these customer groups, the others choose another way of shipping. Empty: every customer group.
Card DHL › Minimum value of goods (net)If the value of the goods sent back (net, in the currency of the order) is at most this high, the customer gets no label but a notice. 0: no limit.
Card DHL › Show logo at the shippingShows the logo next to DHL where the customer chooses the shipping of a new return shipment. Off: the name only.
Card DHL › LogoThe logo next to DHL, shown as a tile of 96 × 32 pixels. The extension brings one along, another image replaces it.
What these settings mean for the customer is in the chapter Return labels: QR code, several parcels and minimum value. The deadline for labels applies to DHL and UPS together, see Deadlines.
List, another country, troubleshooting
The list “DHL”: every record at a glance
The list shows the records, newest at the top, with name, recipient, country and sales channel. The search at the top finds name and recipient.
The Name opens the record.
Duplicate in the row menu creates a new record with the same credentials, country and sales channel, with “(Kopie)” after the name, and opens it. The copy does not take over the chargeable label, it is off there.
Delete only removes the record; labels already created stay at their return shipments.
Without a record the page shows “No DHL access data yet” with the button to create one.
Set up another country, Austria with a recipient of its own for example
For Austria you create a second record, conveniently as a copy of the German one. If it only applies to one sales channel such as “Shop AT”, it comes before the record for all sales channels there.
- 1
In the list choose Duplicate in the row menu of the German record.
- 2
In the master data change the name and the Country, here Austria.
- 3
Choose the Sales channel, here “Shop AT”, or leave it empty for all sales channels.
- 4
In the tab Access data enter the Recipient for Austria, here “aut”.
- 5
Save and run the test in the tab Sandbox with an address in Austria.
If the label should cost something in Austria, switch on the chargeable label in the tab “Options” of this record; the German record stays free of charge.
A DHL label fails: where do you find the cause?
If DHL rejects a label, the customer sees a message, and the return shipment holds a failed attempt with the answer of DHL. The log of the requests shows every request and every response.
In the tab Labels and documents of the return shipment the failed attempt stands with “Error” and the message of DHL.
A test in the tab Sandbox shows right away whether login and recipient are right.
Where to find them in the configuration (Orders › Return shipments › side menu System › Settings):
Card DHL › Log requestsRecords every request to the interface and every response in the event logs of Shopware (Settings, System, Event logs), including the credentials sent.
Then check first:
- whether the password has expired or was changed in the portal
- whether the user is authorised for returns
- whether the receiver ID matches the return recipient in the portal
- whether the delivery address of the customer is complete, the postal code for example; it is the sender of the label
What has changed
What became of the seven settings and the three numbers
DHL used to have seven settings in the configuration, and the record held customer, procedure and participation number. The settings still exist, with clearer names in the card “DHL”; the stored values are kept. The three numbers are gone because the returns interface of DHL only needs the return recipient.
| Before | Now |
|---|---|
| Activate DHL label | “Offer DHL label” |
| Activate QR code DHL label | “Offer QR code” |
| Save label | gone; every label stays stored |
| Activate multiple labels | “Allow several labels per return shipment”, at most five per return shipment |
| Activate log | “Log requests”, in the event logs instead of files |
| Minimum value of goods | “Minimum value of goods (net)” |
| Valid customer groups | same name |
| new | “Show logo at the shipping” and “Logo” |
| customer, procedure and participation number at the record | gone; user, password and recipient stay |
The plugin does not take over labels from before the update; the shipment number stays at the return shipment, and the customer creates a new label if needed. More in the chapter Update.
Common questions
How do I create DHL return labels automatically?
Create a record under “Shipping” › “DHL” with user, password and recipient from the DHL business customer portal, check it in the tab “Sandbox” and switch on “Offer DHL label” in the card “DHL”. When a customer then chooses DHL while creating, the label is created on sending the return shipment and stands on its page; with manual approval after approving.
Do I need an EKP number for the DHL return label?
No. Customer, procedure and participation number are gone. The returns interface of DHL only needs a user with password and the receiver ID of the return recipient.
Does the test in the tab “Sandbox” order a real label?
Yes. The test goes to the real interface of DHL, with the reference 12345 and 1 kg. The plugin does not store the trial label and attaches it to no return shipment.
What happens when the password of the DHL user expires?
Then every DHL label fails until the new password is in the record. A system user has a password for 365 days instead of 90 days.
How does the customer get the DHL QR code?
With “Offer QR code” in the card “DHL”. DHL then delivers label and QR code from one request; the customer opens the QR code on the page of the return shipment or in the mail “Return label” and shows it at a DHL branch.
Can I offer DHL return labels for Austria?
Yes, with a record of its own for the country Austria, for one sales channel only if you like and with a recipient of its own. The record for the country of the delivery address always applies.
Which user suits the labels?
A user of the DHL business customer portal authorised for returns. A system user lasts 365 days instead of 90; it cannot log in to the portal, but it is enough for the labels.
More chapters