Duplicate invoice
duplicate_invoiceCreates a draft copy of one existing invoice, chosen by id, with the same recipient, line items and discounts, today's date, a due date from the payment terms and the current sender details. Use it to reuse a specific invoice; create_invoice_from_previous copies the latest invoice of a recipient instead and can override fields. The copy is always a draft, so it is free and spends no credits, whatever the status of the original. It has no invoice number; update_invoice can set one and finalize it. Each call creates another draft, so repeating a call that succeeded leaves a duplicate. Side effect: the recipient gets a customer record if none exists under that company name, created from the recipient details of the invoice, and the invoice is linked to it. An existing customer record is not changed. It does not email anyone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID to duplicate |