Adding SKU + Quantities to GLS France Shipping Labels

Hi everyone,

I’m using GLS France as a shipping carrier on Shopify, and the label already shows the order number at the bottom.

However, there are two free fields on the GLS label (like “Note”) that are currently unused.

I would like to automatically display on the GLS label:

  • the SKU(s) of the products in the order

  • the quantities of each item

I know the GLS solution is partly open-source and can be customized, but I’m not sure how to inject the SKU + qty data into the label fields.

Does anyone know how to:

  • pass this information into the GLS API/label fields,

  • modify the label template, or

  • has already implemented something similar?

Any help, code example, or guidance would be greatly appreciated!

Thank you :folded_hands:

You can push SKU + qty into the GLS label by mapping order.line, items into the customerReference/custom fields in the GLS API payload. I’ve done this in a custom fulfillment app, just concatenate the values before the label request and GLS prints them in the free fields.

Hello,
To inject the SKU and quantity into the GLS label fields, you’ll need to customize the data payload sent to the GLS API (likely their Webservice or ParcelShop API) during label creation. You must map the Shopify line item data (SKU and quantity) to the relevant, unused free fields in the API request, and EZPassME then ensure your label template is configured to display these free fields.

Thanks a lot for your answer, it really helps!

Would you be open to taking a quick look or giving me a bit of guidance on how to implement this in practice?

Even just pointing me to the right file or field in the GLS payload would already help a lot.

Also, do you know where I can access the open-source code of the GLS France app?

I’ve heard it’s open source, but I’m not sure where the official repository or downloadable version is located.

Thanks again for your help! Really appreciate it.

Hi @Jordan221 :waving_hand: FYI if tha’ts your personal info in that image you REALLY want to delete that and add a redact version, bots are getting ever more sophisiticated so your just signing yourself up for lifetime spam.

Isn’t that just the Parcel notes
e.g. https://shipit.gls-group.eu/webservices/3_2_9/doxygen/WS-REST-API/rest_shipment_processing.html#:~:text=specified%20by%20Shipper-,Parcel%20note1,-Note1
But you will want to use the exact service apis references to confirm the property names.

Otherwise custom fulfillments are glorified email templates but the provider may have specific requirements so some back and forth may be needed.
https://help.shopify.com/en/manual/fulfillment/setup/fulfillment-options/custom-fulfillment-services

IF your doing custom api stuff.
Passing that data from shopify to other apis may be possible without an entire custom app using shopify-flow, or an automation app like mechanic(e.g. fetch configs demo task customized to send configs).

Reach out to me if you need to explore fixing this process.
:speaking_head: :postbox: Click profile-pic on forums for options to connect.

I’m very familiar with the information about adding and printing waybills. I suggest you use 4Seller. This software allows you to freely drag and drop modules to customize waybill templates. Actually, I don’t like those software that realize adding and printing waybills through API integration, as that’s too troublesome for a novice like me. I hope this can help you.