Skip to main content
DELETE
/
api
/
partner
/
v2
/
banks
/
users
/
{userId}
/
accounts
/
{userBankInfoId}
cURL
curl --request DELETE \
  --url https://staging-api.capa.fi/api/partner/v2/banks/users/{userId}/accounts/{userBankInfoId} \
  --header 'partner-api-key: <partner-api-key>'
Deletes a bank account for a user by userId and userBankInfoId. This performs a soft delete by setting the disabled field to true.

Error Codes

Common Errors

HTTP StatusCodeMessage
401UNAUTHORIZEDโ€API Key is missingโ€
401UNAUTHORIZEDโ€Invalid API Key formatโ€
401UNAUTHORIZEDโ€Invalid API Keyโ€
403INVALID_PARTNER_FLOWโ€The partner has an invalid flow.โ€

User Ownership Errors

HTTP StatusCodeMessage
401UNAUTHORIZEDโ€Partner information is required for this operationโ€
401UNAUTHORIZEDโ€User is not associated with the partnerโ€

Endpoint-Specific Errors

HTTP StatusCodeMessage
400INVALID_USER_INPUT_ERRORโ€Invalid User Inputโ€
403USER_BANK_INFO_ACCESS_DENIEDโ€The bank information does not belong to the specified user.โ€
403USER_BANK_INFO_ACCESS_DENIEDโ€The bank information belongs to a different partner.โ€
404USER_BANK_INFO_NOT_FOUNDโ€User bank information not found.โ€

Headers

partner-api-key
string
required

Api key for the affiliated partner that is performing the request

Path Parameters

userId
string
required

The user ID

Example:

"8374f327-38bd-4b0b-b8a7-2524599eb903"

userBankInfoId
string
required

The user bank info ID to delete

Example:

"8374f327-38bd-4b0b-b8a7-2524599eb903"

Response

200

Deletes a bank account for a user by userId and userBankInfoId. This performs a soft delete by setting the disabled field to true.