Manual
With the UPS label the customer prints the return sticker, handed in at a UPS Access Point.
UPS can be offered in addition to the DHL label or in its place. The plugin logs in at UPS through OAuth and orders the label with your customer number; the parcels go to the address you enter in the tab “Recipient”. The customer prints the label and hands the parcel in at a UPS Access Point.
In the adminOrders › Return shipments › side menu Shipping › UPS
Before you start
Which data from UPS do you need for the return label?
For UPS labels the plugin needs three details from your UPS account and an address the parcels go to. Before every label it fetches an OAuth token with client ID and secret and then orders the label at UPS.
From UPS:
- the 6-digit customer number; the request names it as shipper number and as the account UPS bills
- the OAuth client ID
- the OAuth client secret
You enter the address yourself: company, street with house number, postal code, city, country, contact person and phone number.
What does the customer get with UPS?
With UPS there is the label to print; UPS delivers no QR code. The customer prints the label, sticks it on the parcel and hands it in at a UPS Access Point. Everything that applies to both carriers, several parcels or the chargeable label for example, is in the chapter Return labels.
When creating, UPS shows with “Label to print”.
The page of the return shipment says: “Print the label and stick it on the parcel.”
Print label loads the label as a GIF, named like “ups-retoure-label-50287.gif”.
The tracking number, here “1Z000AA10000000001”, leads to the tracking on ups.com.
Handing in at a UPS Access Point; as soon as the parcel arrives, the progress on the right of the head changes.
Creating UPS credentials
Seven steps to the first UPS return sticker
The example sets up UPS for Germany, valid in all sales channels. For every further country you duplicate the record afterwards.
- 1
Under Shipping › UPS click Add UPS Credentials.
- 2
In the Master data, after the name, choose the Country of the delivery addresses the record applies to.
- 3
Under Access data enter customer number, OAuth client ID and OAuth client secret.
- 4
Fill the tab Recipient with the address UPS brings the parcels to.
- 5
Save creates the record and frees the tab Sandbox.
- 6
In the tab Sandbox check the login with Check OAuth token first, then a whole label with Create UPS label.
- 7
In the configuration, card UPS, switch on Offer UPS label and save.
The setup assistant switches UPS on too, in the step “Shipping and labels”; see Setting it up.
Master data and options: for which orders, and does the label cost something?
These two tabs are built for UPS as for DHL. The country of the master data picks the record by the delivery address of the customer, and a record with a sales channel comes before one for all sales channels. The chapter DHL label shows the rules with examples.
Country: the delivery address of the customer is in this country. UPS credentials exist per country and sales channel, not only for Germany.
Sales Channel: without a choice the record applies everywhere.
In the tab Options Activate makes the UPS label chargeable for this country; Product holds the label product, for example “UPS label” for €4.95.
Access data: customer number, client ID and secret
The three fields are required. They are plain text, the secret is readable too.
Customer Number: the 6-digit UPS customer number; UPS bills the labels through this account.
OAuth Client ID: the identifier of your application at UPS.
OAuth Client Secret: together with the client ID the plugin fetches a token with it before every label.
Recipient: where UPS brings the returns
The tab “Recipient” holds the address of your warehouse or shop. It goes to UPS with every label and is the destination of the parcel; every field except the email address is required.
Company: the name of the company receiving the return shipment.
Street + House Number share one field.
Country as an ISO-2 code, for example “DE”. It is the country of the destination and has nothing to do with the country of the master data: a record for Austria can send its parcels to Germany.
Contact Person: whom UPS reaches if needed.
Phone Number in digits only, without spaces or punctuation.
Email Address is optional; it stays with the record, UPS does not get it.
Sandbox: the login first, then a trial label
For UPS the tab “Sandbox” has two buttons. Both save the record first, and both run while “Offer UPS label” is still off. The country is taken from the master data and locked.
Check OAuth token only asks UPS for a token, without a label. This shows whether client ID and secret are right; this button writes nothing into the log.
If the login fits, the page reports “UPS access data correct” with “The OAuth token was accepted by the UPS interface.”
Create UPS label fetches a token and orders a trial label of 1 kg from the address above to the address from “Recipient”, billed through the customer number.
If that works too, it reads “A label could be created successfully with the stored UPS access data.”; otherwise the answer of UPS word for word.
The card “UPS” in the configuration
What does the card “UPS” in the configuration set?
In the card “UPS” you switch the UPS label on and decide whom it applies to. There is no switch for a QR code here, because UPS only delivers the label.
Where to find them in the configuration (Orders › Return shipments › side menu System › Settings):
Card UPS › Offer UPS labelCustomers can choose UPS as shipping and get a UPS label when credentials, customer group, minimum value and deadline fit. Off: UPS cannot be chosen when creating.
Card UPS › 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 UPS › Valid customer groupsThe UPS label is only offered to customers of these customer groups, the others choose another way of shipping. Empty: every customer group.
Card UPS › 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 UPS › Show logo at the shippingShows the logo next to UPS where the customer chooses the shipping of a new return shipment. Off: the name only.
Card UPS › LogoThe logo next to UPS, shown as a tile of 96 × 32 pixels. The extension brings one along, another image replaces it.
List and troubleshooting
The list “UPS” with customer number and client ID
The list shows name, customer number, OAuth client ID, country and sales channel per record, newest at the top; the secret is not in the list. For Austria you duplicate the German record and change country, sales channel and the address if needed.
Customer Number: the UPS account of the record.
OAuth Client ID: the application the plugin logs in with.
Sales Channel: “All Sales Channels” stands in light grey when none is chosen.
As long as there is no record, the page shows “No UPS access data yet” with the button to create one.
The row menu holds Edit, Duplicate and Delete; the copy carries the name of the original with “(Kopie)” and has no chargeable label.
When UPS delivers no label
A rejected UPS label stands as a failed attempt at the return shipment, with the message of UPS, and the customer sees that the label could not be created. If the login already fails, every label fails; “Check OAuth token” shows this without ordering a label.
Where to find them in the configuration (Orders › Return shipments › side menu System › Settings):
Card UPS › Log requestsRecords every request to the interface and every response in the event logs of Shopware (Settings, System, Event logs), including the credentials sent.
Check in this order:
- OAuth client ID and secret, with “Check OAuth token”
- the customer number, 6 digits
- in the tab “Recipient” the country as an ISO-2 code and the phone number in digits only
What has changed
What became of the five settings
UPS used to have five settings. Four still exist, with clearer names in the card “UPS”; “Save label” is gone because every label stays stored. The minimum value and the logo are new. Every record has the OAuth access and the complete address in the tab “Recipient”.
| Before | Now |
|---|---|
| Activate UPS label | “Offer UPS label” |
| Save label | gone; every label stays stored |
| Activate multiple labels | “Allow several labels per return shipment” |
| Activate log | “Log requests”, in the event logs |
| Valid customer groups | same name |
| new | “Minimum value of goods (net)”, “Show logo at the shipping” and “Logo” |
Old UPS labels are missing at the return shipments after the update, their shipment numbers stay; more in the chapter Update.
Common questions
How does the customer get a UPS return sticker?
If UPS is chosen when creating, the label is created on sending the return shipment. The customer loads it on the page of the return shipment as a GIF, prints it, sticks it on the parcel and hands the parcel in at a UPS Access Point.
Which credentials does the UPS label need?
The 6-digit customer number, an OAuth client ID and the OAuth client secret, plus the address UPS brings the parcels to in the tab “Recipient”.
Is there a QR code with UPS?
No. UPS only delivers the label to print. A QR code for the branch comes with the DHL label.
What does “Check OAuth token” check?
Only the login at UPS with client ID and secret, without ordering a label. “Create UPS label” then orders a real trial label of 1 kg.
Does the UPS label only work for Germany?
No. There is a record of its own per country and sales channel; the record for the country of the delivery address of the customer applies.
Why is the country in the tab “Recipient” a code?
UPS expects the country of the address as an ISO-2 code, for example “DE” for Germany. It is the destination of the parcel and independent of the country of the master data.
Can I make the UPS label chargeable?
Yes, in the tab “Options” of the record with “Activate” and a label product. The customer then buys the label through the cart and creates it after the payment.
More chapters