Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Track purchase order delivery status and amount variances with GoHighLevel
When an API call/webhook arrives, it processes financial data.
What it does
## 🚚 Purchasing – Delivery Status & Amount Variance Automation ### How it works When a Purchase Order record is updated in GoHighLevel, a webhook fires and sends the PO's key fields to this workflow. A Set node extracts the relevant data — delivery confirmation date, put-away date, financial billing status, PO amount, and bill invoice amount. A code node then calculates two things: the Delivery Status (Ordered → Goods in Transit → Received → Available For Sale, based on which dates are populated and what the billing status is) and the Amount Variance (bill amount minus PO amount). The calculated values are written back to the GHL Purchase Order custom object. If the variance is greater than zero, an email alert is sent to the finance team via GHL's conversations API — flagging the discrepancy for review before payment. ### Setup steps 1. Set the Webhook production URL as the trigger URL in your GHL workflow or automation (fires on PO record update). 2. Replace YOUR_GHL_API_TOKEN with your GHL Private Integration Token in the two HTTP nodes. 3. Replace YOUR_GHL_LOCATION_ID in the Update GHL Purchase Order node. 4. Replace YOUR_GHL_FINANCE_CONTACT_ID in the Notify Finance node with the GHL contact ID for the finance recipient. 5. Update finance@yourcompany.com in the email body to your finance team's address. 6. Activate the webhook trigger.
The steps
- Webhook — PO Updated
- Extract Fields
- Calculate Delivery Status + Variance
- Update GHL Purchase Order
- Amount Variance > 0?
- Notify Finance — Variance Alert
Similar automations
Data Sync & ETLInvestigate fuel tank variances with Google Sheets, Gemini, and Slack20 stepsDocuments, PDF & OCRProcess Purchase Orders from Outlook Excel Files with OpenAI16 stepsEmail AutomationParse Inbound Gmail Purchase Orders with OpenAI into Google Sheets8 stepsE-commerce & PaymentsUpdate Shopify Tags on Onfleet Delivery Events2 steps