Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Documents, PDF & OCR

Documents, PDF & OCR

Parse invoice XML files and update sales opportunities in GoHighLevel

When an API call/webhook arrives, it reads and extracts data from documents.

What it does

## 🧾 Parse Invoice File from Warehouse – Webhook Test Pipeline ### How it works This is the webhook intake and XML parsing sub-workflow for the warehouse invoice sync. Your warehouse ERP or middleware POSTs a binary XML invoice file to the webhook endpoint. The file is decoded from binary, the raw XML is set as a field, then converted to a structured JSON object. The loop then iterates over each invoice in the payload, searches GoHighLevel for the matching opportunity by order reference, and updates the opportunity with the invoiced amount, pipeline stage, and custom field values. This workflow covers the webhook + manual test path only — the main invoice processing logic (header extraction, line matching, missed sale creation) lives in the primary Parse Invoice workflow. ### Setup steps 1. Point your warehouse ERP or Make.com scenario to the Webhook production URL. 2. Replace YOUR_GHL_API_TOKEN in both HTTP nodes with your GHL Private Integration Token. 3. Replace YOUR_GHL_LOCATION_ID, YOUR_GHL_PIPELINE_ID, YOUR_GHL_PIPELINE_STAGE_ID, and the three custom field IDs in the Update node. 4. Test by sending a sample XML payload to the webhook URL. 5. Activate the webhook trigger.

The steps

  1. Webhook - Receive Invoice File1
  2. Extract XML from Binary1
  3. Set Raw XML Field1
  4. Loop Over Invoices1
  5. Search GHL Opportunity by Order Ref (Test)1
  6. Update GHL Opportunity with Invoice Data (Test)1
  7. Convert XML Binary to JSON1

Similar automations