---
title: "Delete Attachment"
method: DELETE
path: "/sales-invoices/{invoice_id}/attachments/{attachment_id}"
---

# Delete Attachment

`DELETE /sales-invoices/{invoice_id}/attachments/{attachment_id}`

## Request

- Base URL: `https://open-api.stag-v2.paper.id/api/v1`
- URL: `https://open-api.stag-v2.paper.id/api/v1/sales-invoices/{invoice_id}/attachments/{attachment_id}`
- Auth: API key in header `client_id` and API key in header `client_secret`

Removes an attachment from a Sales Invoice. Once deleted the file no longer appears in the invoice's attachments array and its URL stops resolving. The invoice itself and its line items are unaffected.  Retrieve the attachment_id from the Add Attachment response or from the data.attachments array returned by Retrieve a Sales Invoice Details.

## Path parameters

- `invoice_id` string, required
- `attachment_id` string, required

## Headers

- `client_id` string, required
- `client_secret` string, required

## Response `200`

200

- object
  - `status_code` integer: HTTP status of the operation.
  - `data` object
    - `document_id` string: Identifier of the linked document (invoice_id). Pass this value to the Delete Attachment endpoint as the invoice_id.
    - `attachment_id` string: Identifier of the link between the attachment and the invoice. Pass this value to the Delete Attachment endpoint.
  - `message` string: Human-readable outcome of the request.

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `2b6aa3c43ca0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/paper/apis/version-1/changes/sales-invoices/:invoice_id/attachments/:attachment_id/delete.md)

---

[API](https://skmtc.dev/paper/apis/version-1.md) - [All operations](https://skmtc.dev/paper/apis/version-1/llms.txt) - [OpenAPI document](https://skmtc.dev/paper/apis/version-1/revisions/2b6aa3c43ca0?raw)
