This custom Leafworks automation allows voucher requests made via Shopify to be created and printed automatically alongside the shipping label. This replaces the previous manual process, which took several minutes per voucher. This automation significantly improves speed, reliability and scalability, especially during peak periods.
Objectives
- Fully automated generation of voucher PDFs and shipping label PDFs
- Direct printing on two specialised printers (voucher cards + shipping labels)
- Automated processing of Shopify orders via Python middleware
- Error reduction and reduced workload for the support team
- Stable processing of high volumes (50–200+ vouchers per day)
Function
The solution consists of four consecutive steps:
- Recognise order: The middleware automatically checks whether an order for a voucher box has been received in Shopify. Only when the order is complete is it retrieved and processed further.
-
Generate voucher (PDF): A voucher in the appropriate card format is generated from the order data.
Typical fields: Voucher value, voucher code, order number. All information is automatically embedded in the PDF. - Generate shipping label (PDF): At the same time, the shipping label is generated in the standard label format. This can be printed directly via the connected thermal printer.
- Direct printing: The middleware sends both documents to the respective devices: Card printer (thermal sublimation) and shipping label printer (thermal labels) The team can immediately continue with the assembly of the voucher box.
Process diagram (description)
The automation follows a fixed workflow:
- Check: Recognise order and retrieve data from Shopify
- Generate voucher PDF
- Generate shipping label PDF
- Direct printing on both printers
This modular setup allows for extensions, e.g. for multi-page vouchers, multiple boxes per order or different voucher templates.
Advantages of automation
Reduction in processing time from approx. 4 minutes to less than 1 minute per order
No manual data entry → fewer errors
Stable throughput even with very high order volumes
Clearly structured process that can be easily expanded or adapted
Relief for the customer service team, especially during peak times
Troubleshooting & Logs
If necessary, the following aspects can be checked:
Is the Shopify order complete?
Are both printers accessible and set up correctly?
Are the required material formats (cards/labels) available in the printer?
Are the voucher template and label template stored correctly?
Are there any error logs in the middleware?
Support & Adjustments
The solution is customizable and can be supplemented with additional processes (e.g., multi-page vouchers, variable layouts, additional labels, or fulfillment workflows).
If you would like to expand automation or adopt it for your system, please contact us.
Comments
0 comments
Article is closed for comments.