Send account confirmation letter
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"
}
}
}Accounts
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.
POST
/
v1
/
customers
/
{customerId}
/
accounts
/
{accountId}
/
confirmation
/
send
Send account confirmation letter
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"
}
}
}