---
title: "Delete invoice"
description: "Moves an invoice to the trash, as the Invoices page does: it leaves the lists, keeps its number and PDF, and can be restored. Nothing is deleted permanently and Shopify is not touched."
url: https://docs.invoicefalcon.com/v3-reference/documents/delete-invoice/
api: "API v3 reference"
method: DELETE
path: "/documents/invoices/{id}"
---

# Delete invoice

`DELETE https://app.invoicefalcon.com/api/v3/external/documents/invoices/{id}`

Moves an invoice to the trash, as the Invoices page does: it leaves the lists, keeps its number and PDF, and can be restored. Nothing is deleted permanently and Shopify is not touched.

**Note:** Reversible with [`POST /documents/invoices/:id/restore`](https://docs.invoicefalcon.com/v3-reference/documents/restore-invoice/). Trashed invoices are still returned by [`GET /documents/invoices`](https://docs.invoicefalcon.com/v3-reference/documents/list-invoices/)?link=trashed. Trashing does not free the invoice number: opening the order shows the same invoice again. To free a number taken by mistake, use [`DELETE /documents/invoices/:id/permanent`](https://docs.invoicefalcon.com/v3-reference/documents/destroy-invoice/).

## Path parameters

- `id` (string, required)

## Returns

- `id` (integer): e.g. `980190991`
- `trashed` (boolean): e.g. `true`

Rate limit: this call costs 2 points ([rate limits](https://docs.invoicefalcon.com/v3/docs/api-v3/rate-limits/)).

## Example request

```sh
curl -X DELETE "https://app.invoicefalcon.com/api/v3/external/documents/invoices/980191059" \
  -H "X-Auth-Token: $INVOICE_FALCON_API_KEY"
```

## 200

The updated resource.

```json
{
  "id": 980190991,
  "trashed": true
}
```

## 401

Missing or unknown `X-Auth-Token`, or the shop uninstalled the app.

```json
{
  "errors": [
    "Invalid API key"
  ],
  "code": "unauthorized"
}
```

## 403

`v3_required`: the shop still runs the previous dashboard. `paid_plan_required`: API access needs a paid plan.

```json
{
  "errors": [
    "API access requires a paid plan"
  ],
  "code": "paid_plan_required"
}
```

## 404

The resource does not exist for this shop, or no action is registered at this path.

```json
{
  "errors": [
    "Resource not found"
  ],
  "code": "not_found"
}
```

## 422

The request failed validation. Nothing was saved.

```json
{
  "errors": [
    "id is missing"
  ]
}
```

## 429

Rate limited: cost-weighted per key (reads cost less than writes). Wait `Retry-After` seconds; see `X-RateLimit-*` headers.

```json
{
  "errors": [
    "Rate limit exceeded"
  ],
  "code": "rate_limited"
}
```

