Resolving UPS WorldShip Paperless Invoice Issues for Northern Ireland Shipments
Paperless invoices not being available to WorldShip customer shipping to Northern Ireland - here we figured out a solution to get us out the look of a work around.
The Problem: Missing Paperless Invoices
When UPS introduced new mandatory fields and country code to support the Windsor Trade agreement it seems to have caused an issue within the UPS systems, for users of WorldShip, the shipping software. Despite transactions being processed as "paperless" in WorldShip - which should have automtically generated electroic commerical invoices for customs clearance into Northern Ireland - the invoices were failing to appear within the UPS systems. After many weeks of investigation and escallation, UPS confirmed the root cause was a fundemental breakdown in the communication between the WorldShip software and the back end system responsible for commercial invoices.
The shipping team immediately started receiving daily emails from multiple UPS personnel asking for copeis of those commercial inocies. The manual porcess of responing, looking up each shipment in WorldShip, saving the individual invoice and emailing it back, became a signifant time drain. Even more problematic we frequently received duplicate or more requests for the same invoices for a single consignment. This spurred me on to find a solution that took us out of the loop.

To extract ourselves from UPS's internal problems, we developed an automated solution leveraging UPS Paperless API. The first step involved configuring a new named printer in WorldShip, that pointed at the Microsoft PDF driver. We modified the PDF printer settings to eliminate the PDF save prompt, instead configuring it to save automatically to a predetermined filename. This was accomplished by adjusting the port settings on the printer itself, setting the port to be a filename.


We then modified the XML import configuration specifically for Northern Ireland orders, overriding the standard behaviour to make it print paperless invoices (PrintCopyOfPaperlessDocumentsIndicator). This customisation ensured that every time a Northern Ireland shipping label was printed, the corresponding commercial invoice would automatically be generated as a PDF and deposited into the designated monitoring folder and filename.

Technical Architecture: File Monitoring and Processing
The inability to dynamically change output filenames without third-party software—necessitated the development of a custom Windows service to move the file and rename it. This lightweight service continuously monitors the designated drop folder, and when a new PDF appears, it immediately relocates the file to a separate processing folder. The speed of this operation is critical: the drop folder must remain empty to receive the next invoice PDF without conflicts or overwrites.
Once the file lands in the processing folder, a secondary process takes over. This component opens each PDF, parses its contents, and extracts two critical pieces of information: the waybill number and the tracking number. Using these identifiers, the system renames each PDF file using a standardised naming convention that incorporates both numbers. This naming strategy serves dual purposes—it supports the subsequent API upload step by embedding required metadata directly in the filename, and it makes manual retrieval effortless when staff need to locate specific invoices within archived folders.
Processing Pipeline
- Detection: Windows service detects new PDF in drop folder
- Relocation: File immediately moved to processing queue
- Parsing: PDF opened and content analysed
- Extraction: Waybill and tracking numbers identified
- Renaming: File renamed with metadata for easy identification
- Queuing: Prepared for scheduled API upload
API integration and uploading scheduling
At 17:30 each evening the process, uploads all the processed PDFs to the UPS Paperless API. This timing was strategically chosen to occur after the day's despatches have completed but early enough to ensure invoices are available in UPS systems before overnight processing windows. The upload routine iterates through each renamed PDF file, extracting the waybill and tracking numbers from the filename, and uses these identifiers to correctly associate each invoice with its corresponding consignment via the API.
Theoretically, this API integration should attach the commercial invoice directly to the consignment within UPS's internal systems, making it immediately accessible to customs brokers and UPS staff. Despite successful API uploads—confirmed through response codes and logging—we continued receiving requests for invoice copies the following day.
UPS personnel reported that invoices still weren't visible in their systems, revealing that our solution, whilst technically sound, couldn't bypass whatever downstream issue existed within UPS's infrastructure.
The Email Workaround: Dual-Channel Delivery
We were provided with a dedicated email address for invoice submissions. This old-fashioned solution—sending documents via email—proved to be the fallback we needed. We implemented a dual-channel approach that simultaneously uploads to the API and sends invoices via email to that provided address.

If you require a copy of the application or wish to discuss implementation details for your own environment, please reach out—sharing this solution may help others escape the same frustrating cycle of manual invoice management.
