workflows.trigger_invoice
Generate and send an invoice for a completed job. Auto-pushes to connected accounting software (Xero/QuickBooks/MYOB/FreshBooks), generates Stripe payment link, and notifies the customer via SMS. Full pipeline: invoice → accounting sync → payment link → customer notification → team alert.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Job ID to invoice. Required. The job should be in Completed status with a linked quote for line items. | |
| dueInDays | No | Payment due in N days from today. Defaults to 14. | |
| includePaymentLink | No | Generate a Stripe payment link. Defaults to true if Stripe is connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| paymentUrl | No | Stripe payment link URL | |
| invoiceTotal | No | Invoice total in AUD |