API Docs
API referenceCounterparties

Delete a counterparty

DELETE/api/v2/counterparties/{id}

Refused while a payout to it is created, approved, requested, or failed. A deleted counterparty is gone from the API: every endpoint answers 404 COUNTERPARTY_NOT_FOUND for it, and its customId is free again. Payouts to it keep its id in recipient.counterpartyId. Needs counterparties:write.

Path Parameters

id*string

The counterparty id (counterparty_…) or your customId.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/v2/counterparties/counterparty_0e4ba886-0bfe-4b6a-ae2e-d6d9d135dd1e"
{  "object": "counterparty",  "id": "counterparty_0e4ba886-0bfe-4b6a-ae2e-d6d9d135dd1e",  "deleted": true}