<- Invoices API

Invoices API

All versions ->

Delete invoice attachment

DELETE

 /v2/invoices/{invoice_id}/attachments/{attachment_id}

Removes an attachment from an invoice and permanently deletes the file.

Attachments can be removed only from invoices in the DRAFT, SCHEDULED, UNPAID, or PARTIALLY_PAID state.

Permissions:INVOICES_WRITE, ORDERS_WRITE
Try in API Explorer
Link to section

Path parameters

Example code

Link to section

invoice_id

string

Required

The ID of the invoice to delete the attachment from.

Link to section

attachment_id

string

Required

Link to section

Response fields

Link to section

errors

Information about errors encountered during the request.