Effortless customer verification now available   View changelog
Sphere Paysphere
Bank Account

Delete a Bank Account

Delete a bank account by its ID.

DELETE
/v2/bank-account/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

The bank account ID

Length1 <= length

Response Body

curl -X DELETE "https://api.spherepay.co/v2/bank-account/bankAccount_ce745ef7f3df4b9a8bff1301ce24b045"
{
  "ok": true
}

{
  "status": 400,
  "detail": "Invalid request parameters",
  "code": "address/invalid",
  "correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}

{
  "status": 404,
  "detail": "Resource not found",
  "code": "resource/not-found",
  "correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}

{
  "status": 422,
  "detail": "Validation failed",
  "code": "validation/failed",
  "correlationId": "28c61e885c6e5eaa78c1a2183a9b883c",
  "errors": [
    {
      "detail": "Invalid email format",
      "pointer": "/email"
    },
    {
      "detail": "Name is required",
      "pointer": "/name"
    }
  ]
}