DELETE
/v1/invoiceitems/{invoiceitem}Delete an invoice item
Deletes an invoice item and removes it from its invoice association. You can delete the item only when it is not attached to an invoice or when it is attached to a draft invoice.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
invoiceitemstringrequired
The identifier of the invoice item to delete. Maximum 5,000 characters.
200Returns a deleted invoice item object containing its identifier, object type, and `deleted: true` flag.
deletedbooleanrequired
Always true for a deleted object
idstringrequired
Unique identifier for the object.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
defaultReturned when the request cannot be processed; the response contains an API error object with a required `type` field.
errorobjectrequired
Error handling
invoiceitem must be a string no longer than 5,000 characters and must identify the invoice item to delete. The item must not be attached to a closed invoice; deletion is allowed only for unattached items or items on draft invoices.