---
title: "Cancel an invoice"
method: POST
path: "/ar/invoices/{invoiceId}/cancel"
tags: ["Invoices"]
---

# Cancel an invoice

`POST /ar/invoices/{invoiceId}/cancel`

## Request

- Base URL: `https://api.mercury.com/api/v1`
- URL: `https://api.mercury.com/api/v1/ar/invoices/{invoiceId}/cancel`
- Auth: one of:
  - HTTP bearer
  - HTTP basic

Cancel an invoice. This action cannot be undone.

## Path parameters

- `invoiceId` string, uuid, required: ID for the invoice.

## Response `200`

## Other responses

- `404`: `invoiceId` not found

## Changes

- **2026-10-16** `ab652aa5aa8e`: 1 info
  - media type `application/json` was changed to `application/json;charset=utf-8` for the response status `200`

[Operation history](https://skmtc.dev/mercurytechnologies/apis/mercury-api/changes/ar/invoices/:invoiceId/cancel/post.md)

---

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