> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iterapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /merchants/{merchantID}/invoices/{invoiceID} — Archive

> Mark an invoice as archived to remove it from default listings without deleting it. Archived invoices are still retrievable via the list endpoint.

Archiving an invoice removes it from default listings without permanently deleting it. Use this to keep your active invoice list clean while retaining historical records. Archived invoices can still be retrieved by passing `showArchived=true` when [listing invoices](/api-reference/invoices/list).

<Warning>
  Archiving an invoice is not the same as deleting it. The invoice and its associated transaction history remain accessible. If you need to permanently remove an invoice, use the [delete endpoint](/api-reference/invoices/delete) instead.
</Warning>

## Path parameters

<ParamField path="merchantID" type="string" required>
  The UUID of the merchant account that owns the invoice.
</ParamField>

<ParamField path="invoiceID" type="string" required>
  The UUID of the invoice to archive.
</ParamField>

## Response

Returns `204 No Content` on success. No response body is returned.

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.iterapay.com/merchants/b0fcc813-a7ce-4bbc-932f-dbef6f59ca7f/invoices/b0fcc813-a7ce-4bbc-932f-dbef6f59ca7f \
    --header 'Authorization: Bearer <token>'
  ```
</RequestExample>

<ResponseExample>
  ```text 204 theme={null}
  (no content)
  ```
</ResponseExample>
