Delete one account's saved credentials and the account
DELETE
/accounts/{id}/credentials
const url = 'https://api.banklink.co.za/v1/accounts/3fa85f64-5717-4562-b3fc-2c963f66afa6/credentials';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.banklink.co.za/v1/accounts/3fa85f64-5717-4562-b3fc-2c963f66afa6/credentials \ --header 'Authorization: Bearer <token>'Requires credentials:delete. Scoped to the authenticated organisation. Removes the account: its encrypted credentials, stored transactions and sync history are permanently deleted, and pulses that used it are switched off. Repeating the call returns 404. Does not bill a credit. Requests already running may finish. Existing backup retention applies.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
UUID of the bank account (bank profile)
Example
3fa85f64-5717-4562-b3fc-2c963f66afa6Responses
Section titled “Responses”Account removed
Media typeapplication/json
object
data
object
success
boolean
deleted
integer
Example generated
{ "data": { "success": true, "deleted": 1 }}Missing or invalid API key
Media typeapplication/json
object
error
required
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key" }}Missing credentials:delete scope
Resource not found
Media typeapplication/json
object
error
required
object
code
required
Machine-readable error code
string
message
required
Human-readable error description
string
Example
{ "error": { "code": "not_found", "message": "Account not found" }}