POST
/v1/invoices/{id}Change a draft. A sent invoice is fixed: cancel it and duplicate it.
Endpoint
Path parameters
| Name | Type | Description |
|---|---|---|
id | string | The invoice's ID, inv_.... |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Optional | Any field of a new invoice, changed. |
Example request
Example response
Errors
| Code | When |
|---|---|
invalid_state | Only a draft can change. |