Create an intermediary payment
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"ultimateBeneficiary": {
"name": "<string>",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>"
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"clientReference": "<string>"
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
beneficiaryId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount: '<string>',
currency: '<string>',
reference: '<string>',
ultimateBeneficiary: {
name: '<string>',
account: {type: 'IBAN', iban: '<string>'},
country: '<string>',
bic: '<string>',
accountCountry: '<string>'
},
quote: {receivingCurrency: '<string>', receivingAmount: '<string>', fxRate: '<string>'},
clientReference: '<string>'
})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments', 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"
payload = {
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"ultimateBeneficiary": {
"name": "<string>",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>"
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"clientReference": "<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": {
"paymentRequestId": "<string>",
"customerId": "<string>",
"accountId": "<string>",
"state": "AWAITING_AUTHORISATION",
"sequence": 123,
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"paymentChannel": "INTERMEDIARY",
"beneficiary": {
"beneficiaryId": "<string>",
"name": "<string>"
},
"ultimateBeneficiary": {
"name": "<string>",
"partyType": "CONSUMER",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"postCode": "<string>"
}
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"fee": {
"amount": "<string>",
"currency": "<string>"
},
"authorisationExpiresAt": "<string>",
"createdAt": "<string>",
"clientReference": "<string>",
"authorisedAt": "<string>",
"tm": {
"result": "APPROVED",
"decidedAt": "<string>"
},
"confirmation": {
"confirmedAt": "<string>",
"hasDocument": true,
"text": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
},
"cancellation": {
"reasonCode": "PAYOUT_FAILED",
"reason": "<string>",
"cancelledAt": "<string>",
"actorType": "ORENDA"
},
"completion": {
"completedAt": "<string>",
"endToEndId": "<string>",
"rail": "SEPA_INSTANT"
},
"returnedAfterCompletion": {
"at": "<string>",
"code": "<string>"
},
"transactionId": "<string>",
"updatedAt": "<string>"
}
}{
"success": true,
"data": {
"paymentRequestId": "<string>",
"customerId": "<string>",
"accountId": "<string>",
"state": "AWAITING_AUTHORISATION",
"sequence": 123,
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"paymentChannel": "INTERMEDIARY",
"beneficiary": {
"beneficiaryId": "<string>",
"name": "<string>"
},
"ultimateBeneficiary": {
"name": "<string>",
"partyType": "CONSUMER",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"postCode": "<string>"
}
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"fee": {
"amount": "<string>",
"currency": "<string>"
},
"authorisationExpiresAt": "<string>",
"createdAt": "<string>",
"clientReference": "<string>",
"authorisedAt": "<string>",
"tm": {
"result": "APPROVED",
"decidedAt": "<string>"
},
"confirmation": {
"confirmedAt": "<string>",
"hasDocument": true,
"text": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
},
"cancellation": {
"reasonCode": "PAYOUT_FAILED",
"reason": "<string>",
"cancelledAt": "<string>",
"actorType": "ORENDA"
},
"completion": {
"completedAt": "<string>",
"endToEndId": "<string>",
"rail": "SEPA_INSTANT"
},
"returnedAfterCompletion": {
"at": "<string>",
"code": "<string>"
},
"transactionId": "<string>",
"updatedAt": "<string>"
}
}{
"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>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Intermediary payments
Create an intermediary payment
The client’s server login asks for a payment the customer pays to one of the program’s receiving accounts, on behalf of an ultimate beneficiary (UBO) the client pays out to itself. Nothing is held yet: the payment waits for the customer to authorise it in the client’s app (AWAITING_AUTHORISATION) until authorisationExpiresAt. The quote is stored exactly as sent and never recalculated. Balance and limits are previewed here and checked for real at authorisation.
POST
/
v1
/
customers
/
{customerId}
/
accounts
/
{accountId}
/
intermediary-payments
Create an intermediary payment
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"ultimateBeneficiary": {
"name": "<string>",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>"
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"clientReference": "<string>"
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
beneficiaryId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount: '<string>',
currency: '<string>',
reference: '<string>',
ultimateBeneficiary: {
name: '<string>',
account: {type: 'IBAN', iban: '<string>'},
country: '<string>',
bic: '<string>',
accountCountry: '<string>'
},
quote: {receivingCurrency: '<string>', receivingAmount: '<string>', fxRate: '<string>'},
clientReference: '<string>'
})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments', 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"
payload = {
"beneficiaryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"ultimateBeneficiary": {
"name": "<string>",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>"
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"clientReference": "<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": {
"paymentRequestId": "<string>",
"customerId": "<string>",
"accountId": "<string>",
"state": "AWAITING_AUTHORISATION",
"sequence": 123,
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"paymentChannel": "INTERMEDIARY",
"beneficiary": {
"beneficiaryId": "<string>",
"name": "<string>"
},
"ultimateBeneficiary": {
"name": "<string>",
"partyType": "CONSUMER",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"postCode": "<string>"
}
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"fee": {
"amount": "<string>",
"currency": "<string>"
},
"authorisationExpiresAt": "<string>",
"createdAt": "<string>",
"clientReference": "<string>",
"authorisedAt": "<string>",
"tm": {
"result": "APPROVED",
"decidedAt": "<string>"
},
"confirmation": {
"confirmedAt": "<string>",
"hasDocument": true,
"text": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
},
"cancellation": {
"reasonCode": "PAYOUT_FAILED",
"reason": "<string>",
"cancelledAt": "<string>",
"actorType": "ORENDA"
},
"completion": {
"completedAt": "<string>",
"endToEndId": "<string>",
"rail": "SEPA_INSTANT"
},
"returnedAfterCompletion": {
"at": "<string>",
"code": "<string>"
},
"transactionId": "<string>",
"updatedAt": "<string>"
}
}{
"success": true,
"data": {
"paymentRequestId": "<string>",
"customerId": "<string>",
"accountId": "<string>",
"state": "AWAITING_AUTHORISATION",
"sequence": 123,
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"paymentChannel": "INTERMEDIARY",
"beneficiary": {
"beneficiaryId": "<string>",
"name": "<string>"
},
"ultimateBeneficiary": {
"name": "<string>",
"partyType": "CONSUMER",
"account": {
"type": "IBAN",
"iban": "<string>"
},
"country": "<string>",
"bic": "<string>",
"accountCountry": "<string>",
"address": {
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"postCode": "<string>"
}
},
"quote": {
"receivingCurrency": "<string>",
"receivingAmount": "<string>",
"fxRate": "<string>"
},
"fee": {
"amount": "<string>",
"currency": "<string>"
},
"authorisationExpiresAt": "<string>",
"createdAt": "<string>",
"clientReference": "<string>",
"authorisedAt": "<string>",
"tm": {
"result": "APPROVED",
"decidedAt": "<string>"
},
"confirmation": {
"confirmedAt": "<string>",
"hasDocument": true,
"text": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
},
"cancellation": {
"reasonCode": "PAYOUT_FAILED",
"reason": "<string>",
"cancelledAt": "<string>",
"actorType": "ORENDA"
},
"completion": {
"completedAt": "<string>",
"endToEndId": "<string>",
"rail": "SEPA_INSTANT"
},
"returnedAfterCompletion": {
"at": "<string>",
"code": "<string>"
},
"transactionId": "<string>",
"updatedAt": "<string>"
}
}{
"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>"
}{
"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