Case studies

UPS CT-e Integration Hub

Automatic capture of the CT-es (electronic freight bills) issued by UPS, delivery to Protheus GFE and a web hub to track each document.

Client
Multinational healthcare company
Project type
Process automation
Year
2026
Status
In validation with the client
Layers
Interface, Services and APIs, Business rules, Data
Hub main screen. Client data hidden.

Context

The Brazilian operation of a multinational healthcare company ships through UPS. Each shipment generates a CT-e, the electronic freight bill, which must enter GFE, the freight management module of Protheus.

Challenge

The documents had to reach the ERP with no manual entry, respect the month-end calendar, with a cut-off day for delivery to GFE, and give the team visibility into where each CT-e is and why any was rejected.

Solution

A daily routine in Protheus queries the UPS service, downloads the XML of each CT-e and stores it individually. Up to the cut-off day each document goes to GFE the same day; after it, documents wait and go on the 1st of the following month.

The Integration Hub shows how many CT-es are at each stage and lets the team filter by period, key, tax ID, AWB and status, open and download the XML, export to Excel and adjust the cut-off day on the screen itself, with permission control. The interface works in Portuguese and English, in light and dark themes.

  1. UPS issues

    The CT-e for each shipment becomes available in the carrier system.

  2. Daily capture

    Overnight, Protheus downloads the XMLs and stores each one.

  3. Delivery to GFE

    Up to the cut-off day, the XML is delivered to GFE.

  4. GFE imports

    The document is imported, or the rejection shows in the Hub with its reason.

  1. InterfaceWeb hub opened from inside Protheus, in Portuguese and English.
  2. Services and APIsConsumption of the UPS SOAP web service.
  3. Business rulesDaily capture routine and configurable cut-off day.
  4. DataXML of each CT-e stored individually, with the status and messages of each stage.

Technologies

  • Protheus
  • ADVPL
  • SOAP
  • GFE
  • Angular
  • PO-UI

Screens

CT-e XML, with the document cycle and copy and download options.
Cut-off day adjusted on the screen itself, with a warning about the impact.

Validation guide

The project was delivered with a validation guide: a plain-language walkthrough so the key user can check, without relying on IT, that each part of the Hub works as agreed.

Benefits

  • No manual entry: from issuance at UPS to import into GFE, the path is automatic.
  • Visibility: the team sees which stage each CT-e is at and the reason for each rejection.
  • Month-end under control: the cut-off day is adjusted on the screen itself.

Facing a similar challenge?

Tell us the scenario. We assess it and reply with an initial diagnosis within 24 hours.