Get an intermediary payment
curl --request GET \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, 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": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Intermediary payments
Get an intermediary payment
One payment, shaped for the caller: the client’s server login gets the program view, the customer the customer view. Back-office callers get an internal back-office view, which this contract does not publish. While the payment waits for the customer, the customer view carries the challenge to authorise with and the display it signs; each GET issues a fresh challenge, valid for 5 minutes.
GET
/
v1
/
customers
/
{customerId}
/
accounts
/
{accountId}
/
intermediary-payments
/
{paymentRequestId}
Get an intermediary payment
curl --request GET \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, 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": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}