API Documentation

DELETE /accounts/:id/bank

Removes all accounts that were added in the same bank-login as the one in input (the URL parameter :id).

When you call this endpoint, several bank accounts will be removed, that is, all those which were added by the same Person in the same bank-login.

Headers

NAME VALUE
Content-Type application/json
Authorization Bearer {token}

URL parameter

NAME VALUE
id The ID of any of the Accounts added in the same bank-login.

Request

Empty body

Response

NAME VALUE
None Array of integers. The IDs of the accounts that were deleted.

Status Code

CODE COMMENT
202 Request OK.
401 User not authorized.