Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Guides Recipients Delete an external account

Delete an external account

Remove a payee you no longer pay, and what stays the same after you delete it.

2 min read

This page shows how to delete a payee you no longer pay. A deleted payee leaves the list and can no longer receive transfers. Delete it with DELETE /v1/external-accounts/{external_account_id}.

Example. A supplier closes the account that your app saved as a SWIFT payee. Your app deletes the payee. Months later the supplier opens a new account, and your app saves the new details as a fresh payee with a new id.

Before you start

•
Your key needs the payee:delete permission. Owners, admins and developers hold it. A developer picks it up at their next sign-in. A scoped API key can carry only permissions that the person who creates it holds. payee:approve stays with owners and admins.
•
The call needs no Idempotency-Key.
•
Gravv does not deregister the payee at any bank or payout partner.

Delete the payee

Delete an external account request
curl --request DELETE \
--url https://api.gravv.xyz/v1/external-accounts/6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60 \
--header 'Api-Key: <API_KEY>'

The API returns HTTP 200 with the payee and status deleted:

Delete an external account response
{
"data": {
"id": "6a2f0c1e-93b4-4d0e-8f57-1c2b3d4e5f60",
"payee_type": "swift",
"account_number": "12345678",
"institution_id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"institution_type": "swift",
"institution_name": "Example Bank",
"account_name": "ACME TRADING LTD",
"bic": "MIDLGB22",
"customer_id": "3130ca8b-8b32-4843-8623-bf83e766b86a",
"currency": "USD",
"institution_country_iso_code": "GB",
"account_owner_type": "business",
"status": "deleted",
"date_created": "2026-10-12T09:15:22.481Z"
},
"error": null
}

Gravv also sends an external_account.deleted webhook. Its event_data is the same payee.

What changes after you delete it

•
The payee leaves the list from GET /v1/external-accounts.
•
GET /v1/external-accounts/{external_account_id} still returns it, with status deleted.
•
You can save the same details again. A deleted payee does not count as a duplicate, so the new payee gets a new id.
•
You can delete a payee in any status except while its setup is still running.
•
A transfer that is still waiting on a deleted payee is refused, because the payee is no longer active.

What can go wrong

ResponseWhyFix
403Your key does not hold payee:deleteUse a key from a person who holds it
404 payee <id>: resource not foundThe id is unknown, or the payee is already deletedCheck the id
409 payee <id> cannot be deleted while its setup is in progress; retry once it completesThe payee is still being set upWait for external_account.active or external_account.setup_failed, then delete it
409 payee <id> changed while it was being deleted; retryAnother request changed the payee at the same momentRead the payee, then send the DELETE again
400The id is not validSend the payee's id
500 We couldn't delete this payee. Please try again later.A server errorRetry

Related: Add an external account and Retrieve external accounts.

Was this page helpful? Yes No