curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/confirmation/send \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/confirmation/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/confirmation/send"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"data": {
"result": {
"dataURI": "data:application/pdf;filename=generated.pdf;base64,JVBERi0xLjMK...",
"format": "pdf"
}
}
}Send account confirmation letter
Generates an account confirmation letter (proof of account) for the account and returns it inline as a base64 PDF data URI. Nothing is emailed, sent or stored, whatever the route name suggests, and the request body is ignored.
The letter is in the program’s configured language when that is en, nl or es, and in en when it is another language; a program with no configured language fails with 500. The account must belong to the customerId in the path; any other account returns 404.
The body is ignored but still parsed, so send no body and no Content-Type: application/json — that header with an empty body is a 415.
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/confirmation/send \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/confirmation/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/confirmation/send"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"data": {
"result": {
"dataURI": "data:application/pdf;filename=generated.pdf;base64,JVBERi0xLjMK...",
"format": "pdf"
}
}
}Authorizations
The back-office user's id_token — the ID token, not the access_token. The API rejects access tokens.
Path Parameters
The customer's ID.
The account's ID.
Query Parameters
The program the customer/account belongs to. Required on every request.