---
title: "Cancel an imported credit note"
method: DELETE
path: "/invoices/{invoiceId}/credit_notes/{creditNoteId}"
tags: ["Invoices"]
---

# Cancel an imported credit note

`DELETE /invoices/{invoiceId}/credit_notes/{creditNoteId}`

## Request

- Base URL: `https://api.adfin.com/api`
- URL: `https://api.adfin.com/api/invoices/{invoiceId}/credit_notes/{creditNoteId}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.staging.adfin.com/api/oauth2/token`
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.adfin.com/api/oauth2/token`
- TypeScript: <https://skmtc.dev/adfin/apis/adfin-api/docs/invoices/:invoiceId/credit_notes/:creditNoteId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancel a credit note imported through the API. The amount returns to the amount due of the invoice.

## Path parameters

- `invoiceId` string, uuid, required: The id of the invoice
- `creditNoteId` string, uuid, required: The id of the credit note

## Response `204`

Credit note successfully cancelled.

## Other responses

- `401`: Authentication required.
- `404`: The invoice or the credit note does not exist, or the credit note was not imported through the API.
- `422`: The invoice status does not allow the credit note to be cancelled.
- `500`: The server could not process the request.

## Changes

- **2026-11-03** `d088b6522cdb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/adfin/apis/adfin-api/changes/invoices/:invoiceId/credit_notes/:creditNoteId/delete.md)

---

[API](https://skmtc.dev/adfin/apis/adfin-api.md) - [All operations](https://skmtc.dev/adfin/apis/adfin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/adfin/apis/adfin-api/revisions/72a74f027a38?raw)
