Paycose Docs
Bank Account
DELETE/bank_accounts/{bank_account_id}

Delete Bank Accounts

Delete a bank account.

Deletes the local row from bank_accounts (and any attached recipients via FK cascade). Does NOT call back out to Wise to delete the recipient on Wise's side — that side becomes orphaned and is reconciled out-of-band.

Requires: Bearer token, X-Country header.

Request

Example

curl -X DELETE 'https://api.paycose.com/api/v1/app1/platform/wallet/bank_accounts/{{bank_account_id}}' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -H 'X-Test-Mode: {{x_test_mode}}'

Headers

NameValueDescription
X-Session-Token{{session_token}}
X-Country{{country}}
X-Test-Mode{{x_test_mode}}true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request.

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "location": "<string>",
  "object": "<string>",
  "message": "<string>",
  "id": "<string>"
}
400400 Bad Request

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page