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
- Webhook - Receive Invoice File1
- Extract XML from Binary1
- Set Raw XML Field1
- Loop Over Invoices1
- Search GHL Opportunity by Order Ref (Test)1
- Update GHL Opportunity with Invoice Data (Test)1
- Convert XML Binary to JSON1
Similar automations
Documents, PDF & OCRExtract invoice and PO data from Gmail PDFs into XML, CSV and JSON17 stepsFiles & Cloud StorageSend SAP XML sales orders from GoHighLevel to a warehouse via Make.com SFTP9 stepsFiles & Cloud StorageEdit an XML Feed and Upload It to Dropbox5 stepsRAG & Knowledge BasesParse Invoice Emails with Claude RAG and Weaviate11 steps