create_invoice
Add an invoice for a customer: pass customer_id and amount, and optionally invoice_number, currency (default USD), due_date, status (default draft) and metadata. It does not email the customer; send_invoice does. Needs a claimed Last Price credential with billing write scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount. | |
| status | No | The invoice status. | |
| currency | No | The currency code. Defaults to USD. | |
| due_date | No | When the invoice is due, as an RFC 3339 date-time. | |
| metadata | No | Anything worth keeping with the record. | |
| customer_id | Yes | The customer: its id, as list_customers shows it. | |
| invoice_number | No | Your number for the invoice. |