GLS transfer errors: common causes and how to fix them
An overview of the most common errors when transferring orders to GLS from Shoporama, and how to fix each of them.
When you transfer orders from Shoporama to GLS, errors can occur. Here are the most common GLS shipping label errors and how to fix them.
"Not allowed to generate shipments"
This error means that your GLS customer number does not have permission to create shipments through the API. GLS has to enable it.
Solution:
- Contact GLS IT support
- Ask them to enable API access for your customer number
- It usually only takes a few minutes before it is enabled
Invalid address
GLS validates the recipient's address. If the address is incomplete or contains errors, the shipment is rejected.
Solution:
- Check that the order has a valid address, postal code, and city
- Check that the country code is correct (for example DK for Denmark)
- Remove any special or invalid characters from the address fields
Wrong parcel shop ID
If the customer has chosen parcel shop delivery, but the parcel shop ID is invalid or the parcel shop is closed, the transfer can fail.
Solution:
- Check that the parcel shop ID on the order is correct
- Try changing the delivery method to a different parcel shop or to home delivery
The recipient is missing a first name or last name
When a parcel is sent to a parcel shop, GLS requires the recipient to have both a first name and a last name. If the customer only entered one name, GLS rejects the shipment, and the order queue says that the recipient must have both a first name and a last name when the parcel is sent to a parcel shop.
Solution:
- Click Correct the order below the error in the order queue.
- Enter the recipient's full name, and save the order.
- Go back to the order queue, and click Try again.
The GLS system did not respond
If the order queue says that the GLS system did not respond, there was a temporary error at GLS. No parcel has been created, so you can safely click Try again in a little while.
Deposit Service without a text
If you have turned on DepositService for a GLS shipping method, the driver may leave the parcel, for example at the door. GLS then requires a text that says where the parcel may be left. Shoporama uses the customer's comment on the order, and if the customer has not written anything, the text in the Default comment field on the shipping method. If both are empty, the label is not sent to GLS. It is listed as Failed in the order queue with an explanation that neither the customer nor the shipping method says where the parcel may be left. No parcel has been created at GLS.
Shoporama does not switch to standard delivery on its own, because you may have promised the customer that the parcel will be left at their address. You choose between two solutions:
- Enter a default text and try again. Go to Delivery → Shipping methods, edit the GLS shipping method, and enter, for example, "Leave at the front door" in the Default comment field under GLS settings. Then click Try again next to the label in the order queue. From then on, the text is used on all orders where the customer has not written anything.
- Ship as standard delivery. Click Ship as standard delivery next to the label in the order queue. The label is then created without Deposit Service, the parcel is not left at the address, and the order gets a note saying that it was shipped as standard delivery at the store's choice. The choice only applies to that one label. If there are several GLS parcels with the same error, you can ship them all at once with Ship all as standard delivery at the top of the order queue.
Read more about the customer's comment, the default text, and Deposit Service in Comments on GLS orders.
Wrong API credentials
If your GLS API credentials are wrong, no transfers will work. You find them under Delivery → Setup in the GLS section.
Check the following fields:
- API Username, your GLS API login
- API Password, your GLS API password
- Customer ID, your GLS customer number
- Contact ID, your GLS contact ID
Tip
If a GLS label fails, it is listed in the order queue under Orders → Order queue. Select Failed in the filter, and the error is explained in plain language in the response column, with links to where you fix it, for example Correct the order or Go to Delivery Settings. Click More details to see the exact response from GLS. Once the error is fixed, click Try again. Shoporama does not retry on its own, so you avoid duplicate labels.
Still having problems?
If you still get errors after trying the above, you can:
- Contact GLS IT support to verify your account configuration
- Contact us at support@shoporama.dk with the exact error message
Related articles
GLS settings on shipping methods
An explanation of the GLS-specific settings for each shipping method in Shoporama: parcel shop, DepositService, PrivateDelivery, FlexDelivery, and...
Checkout flow and shipping calculation in your theme
A guide for developers on implementing shipping in the checkout flow of a Shoporama theme, including the recommended page order and parcel shop...
DHL parcel shop: let customers choose a DHL ServicePoint
How to set up DHL parcel shop as a shipping method in Shoporama, so customers can choose the nearest DHL ServicePoint at checkout.