---
title: "Delete Counterparty"
method: DELETE
path: "/api/v1/counterparties/:counterpartyId"
tags: ["Counterparties"]
---

# Delete Counterparty

`DELETE /api/v1/counterparties/:counterpartyId`

## Request

- Base URL: `https://merchant-api.accruesavings.com`
- URL: `https://merchant-api.accruesavings.com/api/v1/counterparties/:counterpartyId`
- Auth: none declared. Required headers: `Client-ID`, `Authorization`
- TypeScript: <https://skmtc.dev/byaccrue/apis/accrue-merchant-api/docs/api/v1/counterparties/:counterpartyId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Soft-delete a counterparty. The counterparty will be marked as deleted but not permanently removed from the system. Deleting moves no money, so a counterparty that still holds a balance cannot be deleted — pay the remaining balance out first.

## Path parameters

- `counterpartyId` string, uuid, required: ID of the counterparty to delete.

## Headers

- `Client-ID` string, uuid, required: The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
- `Authorization` string, uuid, required: Secure secret to access privileged endpoints.

## Response `204`

Counterparty deleted successfully (no content)

## Other responses

- `404`: Not Found
- `409`: Conflict. The counterparty still holds a balance.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/byaccrue/apis/accrue-merchant-api.md) - [All operations](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/revisions/3e2d97ef2e6e?raw)
