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>'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)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));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"paymentRequestId": "<string>",
"customerId": "<string>",
"accountId": "<string>",
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"createdAt": "<string>",
"payee": {
"name": "<string>",
"iban": "<string>",
"bic": "<string>",
"currency": "<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": "PKR",
"receivingAmount": "69750.00",
"fxRate": "279.00"
},
"paymentChannel": "INTERMEDIARY",
"intermediary": {
"state": "AWAITING_AUTHORISATION",
"fee": {
"amount": "<string>",
"currency": "<string>"
},
"authorisation": {
"expiresAt": "<string>",
"authorisedAt": "<string>",
"method": "passkey",
"challenge": {
"hash": "<string>",
"nonce": "<string>",
"timestamp": "<string>"
},
"display": {
"paymentId": "<string>",
"customerId": "<string>",
"version": "<string>",
"amount": "<string>",
"currency": "<string>",
"feeAmount": "<string>",
"payeeIban": "<string>",
"uboName": "<string>",
"uboAccountLast4": "<string>",
"uboCountry": "<string>",
"receivingAmount": "<string>",
"receivingCurrency": "<string>",
"fxRate": "<string>"
}
},
"history": [
{
"from": "AWAITING_AUTHORISATION",
"to": "AWAITING_AUTHORISATION",
"at": "<string>",
"actorType": "CUSTOMER"
}
],
"clientReference": "<string>",
"confirmation": {
"confirmedAt": "<string>",
"hasDocument": true,
"text": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
},
"cancellation": {
"reasonCode": "PAYOUT_FAILED",
"reason": "<string>",
"cancelledAt": "<string>",
"actorType": "ORENDA"
},
"release": {
"endToEndId": "<string>",
"rail": "SEPA_INSTANT",
"submittedAt": "<string>",
"releasedAt": "<string>"
},
"transactionId": "<string>",
"returnedAfterCompletion": {
"at": "<string>",
"code": "<string>"
}
},
"updatedAt": "<string>"
}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}Payments
Get an intermediary payment
The payment as the customer may see it. While it waits for the customer it 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>'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)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));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"paymentRequestId": "<string>",
"customerId": "<string>",
"accountId": "<string>",
"amount": "<string>",
"currency": "<string>",
"reference": "<string>",
"createdAt": "<string>",
"payee": {
"name": "<string>",
"iban": "<string>",
"bic": "<string>",
"currency": "<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": "PKR",
"receivingAmount": "69750.00",
"fxRate": "279.00"
},
"paymentChannel": "INTERMEDIARY",
"intermediary": {
"state": "AWAITING_AUTHORISATION",
"fee": {
"amount": "<string>",
"currency": "<string>"
},
"authorisation": {
"expiresAt": "<string>",
"authorisedAt": "<string>",
"method": "passkey",
"challenge": {
"hash": "<string>",
"nonce": "<string>",
"timestamp": "<string>"
},
"display": {
"paymentId": "<string>",
"customerId": "<string>",
"version": "<string>",
"amount": "<string>",
"currency": "<string>",
"feeAmount": "<string>",
"payeeIban": "<string>",
"uboName": "<string>",
"uboAccountLast4": "<string>",
"uboCountry": "<string>",
"receivingAmount": "<string>",
"receivingCurrency": "<string>",
"fxRate": "<string>"
}
},
"history": [
{
"from": "AWAITING_AUTHORISATION",
"to": "AWAITING_AUTHORISATION",
"at": "<string>",
"actorType": "CUSTOMER"
}
],
"clientReference": "<string>",
"confirmation": {
"confirmedAt": "<string>",
"hasDocument": true,
"text": "<string>",
"payoutReference": "<string>",
"paidOutAt": "<string>"
},
"cancellation": {
"reasonCode": "PAYOUT_FAILED",
"reason": "<string>",
"cancelledAt": "<string>",
"actorType": "ORENDA"
},
"release": {
"endToEndId": "<string>",
"rail": "SEPA_INSTANT",
"submittedAt": "<string>",
"releasedAt": "<string>"
},
"transactionId": "<string>",
"returnedAfterCompletion": {
"at": "<string>",
"code": "<string>"
}
},
"updatedAt": "<string>"
}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"message": "Unauthorized"
}{
"message": "Forbidden"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}