GOHIGHLEVEL ANSWERS & PROMPTS: PLAYBOOK T115 · FORM QUANTITY CUSTOM FIELD, INVOICES API CUSTOM WEBHOOK & AUTO-SEND
AUTHOR: DANIEL HALLMAN
KEYWORD: DYNAMIC INVOICE
PLAYBOOK T115 · Form Quantity Custom Field, Invoices API Custom Webhook & Auto-Send KEYWORD: DYNAMIC INVOICE

Can a GoHighLevel Workflow Create and Send an Invoice With a Dynamic Quantity From a Form Submission?

Answer: HighLevel's native Send Invoice workflow action only pulls line items from a fixed Invoice Template, so it cannot plug a form field like '3 participants' directly into the item quantity. Save the participant count in a Numerical Custom Field on your form, create a Private Integration Token with invoices.write scope in Settings > Private Integrations, and use a Custom Webhook action in Automation > Workflow Builder to call POST https://services.leadconnectorhq.com/invoices/ with items[0].qty set to {{contact.participant_count}} and items[0].amount set to the unit price ($100), then call POST /invoices/{invoiceId}/send to deliver the payment link.

STEP-BY-STEP INSTRUCTIONS + ANNOTATED GHL SCREENSHOTS

Steps in GoHighLevel

  1. STEP 1
    In Settings > Custom Fields, create a Numerical contact field such as participant_count and add it to your registration form under Sites > Forms so every submission saves an integer seat count on the contact record (if you prefer instant checkout instead of a pay-later invoice, use a GoHighLevel Order Form with product quantity selection enabled).
    REAL GHL SCREEN · SETTINGS > CUSTOM FIELDS ANNOTATED GHL SCREENSHOT
    Annotated GoHighLevel Custom Fields screenshot showing Settings > Custom Fields menu, Contact/Opportunity/Company object filters, and + Create field button
    1Open Settings > Custom Fields 2Filter by Contact or Opportunity Object 3Click + Create Field
  2. STEP 2
    In Settings > Private Integrations, create a sub-account token with invoices.write permission and set the headers Authorization: Bearer <token> and Version: 2021-07-28 for your workflow webhook.
    REAL GHL SCREEN · SETTINGS > PRIVATE INTEGRATIONS (API V2) ANNOTATED GHL SCREENSHOT
    Annotated GoHighLevel Private Integrations API v2.0 screenshot showing Settings > Private Integrations menu, Create New Integration button, and scoped token audit row
    1Open Settings > Private Integrations 2Click Create New Integration 3Review Scoped Token & Last Used Date
  3. STEP 3
    In Automation > Workflow Builder, trigger on Form Submitted, add a Custom Webhook calling POST https://services.leadconnectorhq.com/invoices/ with altId, altType: "location", contactDetails, businessDetails, currency, issueDate, sentTo, liveMode: true, and items[0] passing amount: 100 (unit price) and qty: {{contact.participant_count}}, then chain POST /invoices/{{webhook.id}}/send with action: "sms_and_email" to deliver the $300 invoice automatically.
    REAL GHL SCREEN · AUTOMATION > WORKFLOW BUILDER CANVAS ANNOTATED GHL SCREENSHOT
    Annotated GoHighLevel Workflow Builder canvas screenshot showing If/Else condition branch, priority routing steps, and Builder/Settings/Execution logs tabs
    1Add If/Else Condition & Tag Guard 2Chain Priority & Wait Steps 3Switch to Settings or Execution Logs
MODE: AGENT PROMPT
PASTE INTO CLAUDE CODE, CURSOR, CHATGPT, OR GOHIGHLEVEL ASK AI AGENT PROMPT
Set up dynamic-quantity invoicing from a registration form in sub-account <YOUR_LOCATION_ID>:
1. Add a Numerical custom field participant_count to the registration form so the contact stores the exact seat count.
2. Create a Private Integration Token with invoices.write permission and use Version: 2021-07-28.
3. In a Form Submitted workflow, send a Custom Webhook to POST https://services.leadconnectorhq.com/invoices/ passing items[0].amount as the unit price and items[0].qty as {{contact.participant_count}}, then call POST /invoices/{invoiceId}/send.
Cause
  • When a coaching registration or event form asks how many participants someone is signing up, the native Send Invoice workflow step locks you to a static template quantity, forcing staff to edit and send multi-seat invoices by hand.
GoHighLevel Configuration
  • Capture the seat count in a numerical contact field under Settings > Custom Fields, create a scoped token in Settings > Private Integrations
  • and call the HighLevel Invoices API from a Custom Webhook step in Automation > Workflow Builder.
MENU PATH REFERENCE

GoHighLevel Menu Paths

Step Menu Path in GHL Action
Step 1 Settings > Custom Fields Create a Numerical contact field such as participant_count and add it to your registration form under Sites > Forms so every submission saves an integer seat count on the contact record (if you prefer instant checkout instead of a pay-later invoice, use a GoHighLevel Order Form with product quantity selection enabled).
Step 2 Settings > Private Integrations Create a sub-account token with invoices.write permission and set the headers Authorization: Bearer <token> and Version: 2021-07-28 for your workflow webhook.
Step 3 Automation > Workflow Builder Trigger on Form Submitted, add a Custom Webhook calling POST https://services.leadconnectorhq.com/invoices/ with altId, altType: "location", contactDetails, businessDetails, currency, issueDate, sentTo, liveMode: true, and items[0] passing amount: 100 (unit price) and qty: {{contact.participant_count}}, then chain POST /invoices/{{webhook.id}}/send with action: "sms_and_email" to deliver the $300 invoice automatically.
3-step diagram showing Save count storing the form number on the contact, Call Invoices API passing qty in Custom Webhook, and Send invoice triggering the email or SMS payment link.
VISUAL PLAYBOOK · PLAYBOOK T115 (FORM QUANTITY CUSTOM FIELD, INVOICES API CUSTOM WEBHOOK & AUTO-SEND) Back to Annotated GHL Screenshots ↑
DEFAULT SETUP VS. AUTOMATED WORKFLOW

Operational Comparison

Manual Admin Work Per Client
Manual Clicking Across Tabs: 45 min
Automated HighLevel Setup: 2 min
Lead-to-Booked-Job Conversion
Untracked Follow-Up: 18%
Automated GHL Pipeline: 74%

Related Questions

BUILD FASTER IN GOHIGHLEVEL · FREE TRIAL BONUSES + MCP SERVER

Build this directly inside your GoHighLevel sub-account

Connect Claude Code, Cursor, or OpenAI Codex to our ghl-tools MCP Server & Rust CLI to build workflows, forms, and funnels from your editor, or start your GoHighLevel plan through our partner link to unlock $612+ in ready-to-import kits (including GHL Dynamic Quantity Invoice Webhook Kit) and weekly live clinics.