Confirm the payout to the ultimate beneficiary
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/confirmation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"text": "<string>",
"documentUrl": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: '<string>',
documentUrl: '<string>',
payoutReference: '<string>',
paidOutAt: '<string>'
})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/confirmation', 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}/intermediary-payments/{paymentRequestId}/confirmation"
payload = {
"text": "<string>",
"documentUrl": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"state": "AWAITING_AUTHORISATION"
}
}{
"success": false,
"code": "VALIDATION_ERROR",
"message": "<string>",
"data": {
"fields": [
{
"path": "<string>",
"code": "AMOUNT_INVALID"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {
"currentState": "AWAITING_AUTHORISATION"
}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Intermediary payments
Confirm the payout to the ultimate beneficiary
The client says it has paid the UBO, with text, a document, or both. Only after this is the customer’s money released to the program’s receiving account. text, payoutReference and paidOutAt are shown to the customer: keep other customers’ data and internal notes out of them. A refused confirmation is not stored against its Idempotency-Key: correct it and send it again under the same key, or under a new one if that answers IDEMPOTENCY_KEY_REUSED.
POST
/
v1
/
customers
/
{customerId}
/
accounts
/
{accountId}
/
intermediary-payments
/
{paymentRequestId}
/
confirmation
Confirm the payout to the ultimate beneficiary
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/confirmation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"text": "<string>",
"documentUrl": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: '<string>',
documentUrl: '<string>',
payoutReference: '<string>',
paidOutAt: '<string>'
})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/confirmation', 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}/intermediary-payments/{paymentRequestId}/confirmation"
payload = {
"text": "<string>",
"documentUrl": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"state": "AWAITING_AUTHORISATION"
}
}{
"success": false,
"code": "VALIDATION_ERROR",
"message": "<string>",
"data": {
"fields": [
{
"path": "<string>",
"code": "AMOUNT_INVALID"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {
"currentState": "AWAITING_AUTHORISATION"
}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Authorizations
Headers
Path Parameters
Query Parameters
Body
application/json
What the client paid out, in its words: up to the program's maximum length (default 2000) characters; line breaks and tabs allowed. Shown to the customer, so no other customers' data or internal notes.