invoicing.generate
Generate an invoice for a completed job. If Stripe Connect is active, automatically creates a payment link. Returns invoice number, total, and payment URL. Requires: job_id from jobs.list (job must be status=Completed). Next step: payments.send_link if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Job ID to invoice. Required. The job should be in Completed status. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | Invoice total in AUD | |
| status | No | Invoice status (typically "sent") | |
| invoiceId | No | Generated invoice record ID | |
| paymentUrl | No | Stripe payment link URL (null if Stripe Connect not configured) |