---
title: "Delete an invoice"
method: DELETE
path: "/companies/{companyId}/invoices/{invoiceId}"
tags: ["invoices"]
---

# Delete an invoice

`DELETE /companies/{companyId}/invoices/{invoiceId}`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/companies/{companyId}/invoices/{invoiceId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `/authorize`
    - Client credentials
    - Token URL: `/token` scopes: `invoices:write`

Deletes the specified invoice. Only invoices in draft status can be deleted.

**Scope:** `invoices:write`

## Response `204`

Invoice deleted successfully

## Other responses

- `400`: Invalid request or invoice cannot be deleted

---

[API](https://skmtc.dev/bokio/apis/company-api.md) - [All operations](https://skmtc.dev/bokio/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/company-api/revisions/9395020f3da2?raw)
