Delete an external account
Deletes an external account and returns it with `status` `deleted`. A deleted account leaves the list and can no longer be paid. You can add the same details again. `GET` still returns the deleted account. Gravv changes nothing at any bank or payout partner.
Deletes an external account and returns it with status deleted. A deleted account leaves the list and can no longer be paid. You can add the same details again. GET still returns the deleted account. Gravv changes nothing at any bank or payout partner.
Any status except an account whose setup is still running can be deleted. This route needs the payee:delete permission and no Idempotency-Key. Gravv sends an external_account.deleted webhook.
Path parameters
external_account_idResponse
Returns 200 OK. Deleted. data.status is deleted.
dataidinstitution_idpayee_typeHow the account is paid. bank_account and mobile_money are active at once. swift, sepa, ach_wire and fps need a setup step and start as pending.
Possible values: bank_account, mobile_money, swift, sepa, ach_wire, fps
account_numberinstitution_typebank, mobile_money, swift, swift_intermediaryinstitution_nameaccount_nameibanbiccustomer_idcurrencyinstitution_country_iso_codeaddressswift, sepa, ach_wire and fps, and for some banks and payout corridors.address_line1address_line2house_building_numbercitystatepostal_codecountryaccount_owner_typeindividual, businessrouting_numberstatuspending while setup runs, then active (ready for transfers) or setup_failed (read error_message, then correct it with PATCH).
Possible values: pending, active, setup_failed, archived, deleted
date_createdphone_numbererror_messagenational_id_typenational_id_maskederrorErrors
| Status | Meaning |
|---|---|
| 200 | Deleted. data.status is deleted. |
| 400 | The ID is not valid |
| 403 | Your key does not hold the payee:delete permission |
| 404 | No such external account, or it is already deleted |
| 409 | The account's setup is still running, or it changed while Gravv deleted it. Retry once setup completes. |
| 500 | The delete failed. Retry later. |