Close an account
curl --request POST \
--url https://api.next.orenda.finance/v1/customer/{customerId}/account/{accountId}/close \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Suspected fraudulent activity reported by the customer."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Suspected fraudulent activity reported by the customer.'})
};
fetch('https://api.next.orenda.finance/v1/customer/{customerId}/account/{accountId}/close', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.next.orenda.finance/v1/customer/{customerId}/account/{accountId}/close"
payload = { "reason": "Suspected fraudulent activity reported by the customer." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"accountId": "a1b2c3d4-5e6f-7081-92a3-b4c5d6e7f809",
"customerId": "c1a2b3c4-5d6e-7f80-91a2-b3c4d5e6f708",
"status": "CLOSED",
"reason": "Customer requested permanent closure of the account.",
"closedAt": "2026-06-29T19:45:10.000Z"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}Accounts
Close an account
Closes the account permanently from the back office and closes its linked cards. A blocked account can be closed. A closed account cannot be reopened — the customer would need a new account. The supplied reason is stored on the account’s status history for audit.
Note: the path is singular (/v1/customer/.../account/...).
POST
/
v1
/
customer
/
{customerId}
/
account
/
{accountId}
/
close
Close an account
curl --request POST \
--url https://api.next.orenda.finance/v1/customer/{customerId}/account/{accountId}/close \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Suspected fraudulent activity reported by the customer."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Suspected fraudulent activity reported by the customer.'})
};
fetch('https://api.next.orenda.finance/v1/customer/{customerId}/account/{accountId}/close', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.next.orenda.finance/v1/customer/{customerId}/account/{accountId}/close"
payload = { "reason": "Suspected fraudulent activity reported by the customer." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"accountId": "a1b2c3d4-5e6f-7081-92a3-b4c5d6e7f809",
"customerId": "c1a2b3c4-5d6e-7f80-91a2-b3c4d5e6f708",
"status": "CLOSED",
"reason": "Customer requested permanent closure of the account.",
"closedAt": "2026-06-29T19:45:10.000Z"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request could not be processed. Check the request parameters and body and try again."
}
}Authorizations
The back-office user's access token.
Path Parameters
The customer's ID.
The account's ID.
Query Parameters
The program the customer/account belongs to. Required on every request.
Body
application/json
Why the status is changing — stored on the customer's or account's status history for audit.
Minimum string length:
1Response
The account was closed.
Standard mutation envelope. Additional fields may be present depending on the operation.
Example:
true
⌘I