---
title: "Delete sales invoice"
method: DELETE
path: "/sales-invoices/{salesInvoiceId}"
tags: ["Sales Invoices API"]
---

# Delete sales invoice

`DELETE /sales-invoices/{salesInvoiceId}`

## Request

- Base URL: `https://api.mollie.com/v2`
- URL: `https://api.mollie.com/v2/sales-invoices/{salesInvoiceId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://my.mollie.com/oauth2/authorize`
    - Token URL: `https://api.mollie.com/oauth2/tokens` scopes: `sales-invoices.write`

Sales invoices which are in status `draft` can be deleted. For all other statuses, please use the [Update sales invoice](update-sales-invoice) endpoint instead.

> 🔑 Access with
>
> [API key](/reference/authentication)
>
> [Advanced access token with **sales-invoices.write**](/reference/authentication)
>
> [OAuth access with **sales-invoices.write**](/reference/authentication)

## Request body

- object
  - `testmode` boolean, nullable: Most API credentials are specifically created for either live mode or test mode, in which case this parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`. Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.

## Response `204`

An empty response.

- unknown

## Other responses

- `404`: No entity with this ID exists.
- `422`: The request contains issues. For example, if the status is not `draft`.
- `429`: Rate Limit has been reached.

---

[API](https://skmtc.dev/mollie/apis/revenue-collection.md) - [All operations](https://skmtc.dev/mollie/apis/revenue-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/mollie/apis/revenue-collection/revisions/2bb95a3c3e89?raw)
