Authorise an intermediary payment
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"challenge": {
"hash": "<string>",
"nonce": "<string>",
"timestamp": "<string>"
},
"confirmation": {
"method": "passkey",
"passkeySession": "<string>",
"assertion": "<string>"
}
}
'import requests
url = "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise"
payload = {
"challenge": {
"hash": "<string>",
"nonce": "<string>",
"timestamp": "<string>"
},
"confirmation": {
"method": "passkey",
"passkeySession": "<string>",
"assertion": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
challenge: {hash: '<string>', nonce: '<string>', timestamp: '<string>'},
confirmation: {method: 'passkey', passkeySession: '<string>', assertion: '<string>'}
})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise', 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}/authorise",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'challenge' => [
'hash' => '<string>',
'nonce' => '<string>',
'timestamp' => '<string>'
],
'confirmation' => [
'method' => 'passkey',
'passkeySession' => '<string>',
'assertion' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise"
payload := strings.NewReader("{\n \"challenge\": {\n \"hash\": \"<string>\",\n \"nonce\": \"<string>\",\n \"timestamp\": \"<string>\"\n },\n \"confirmation\": {\n \"method\": \"passkey\",\n \"passkeySession\": \"<string>\",\n \"assertion\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"challenge\": {\n \"hash\": \"<string>\",\n \"nonce\": \"<string>\",\n \"timestamp\": \"<string>\"\n },\n \"confirmation\": {\n \"method\": \"passkey\",\n \"passkeySession\": \"<string>\",\n \"assertion\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"challenge\": {\n \"hash\": \"<string>\",\n \"nonce\": \"<string>\",\n \"timestamp\": \"<string>\"\n },\n \"confirmation\": {\n \"method\": \"passkey\",\n \"passkeySession\": \"<string>\",\n \"assertion\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"state": "AWAITING_AUTHORISATION"
}
}{
"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": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}Payments
Authorise an intermediary payment
The customer approves the payment with their own factor (passkey or TOTP, as the program allows) and the challenge from their GET. Their limits are checked and the amount is held; transaction monitoring then runs. Re-sending after success answers with the current state.
POST
/
v1
/
customers
/
{customerId}
/
accounts
/
{accountId}
/
intermediary-payments
/
{paymentRequestId}
/
authorise
Authorise an intermediary payment
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"challenge": {
"hash": "<string>",
"nonce": "<string>",
"timestamp": "<string>"
},
"confirmation": {
"method": "passkey",
"passkeySession": "<string>",
"assertion": "<string>"
}
}
'import requests
url = "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise"
payload = {
"challenge": {
"hash": "<string>",
"nonce": "<string>",
"timestamp": "<string>"
},
"confirmation": {
"method": "passkey",
"passkeySession": "<string>",
"assertion": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
challenge: {hash: '<string>', nonce: '<string>', timestamp: '<string>'},
confirmation: {method: 'passkey', passkeySession: '<string>', assertion: '<string>'}
})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise', 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}/authorise",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'challenge' => [
'hash' => '<string>',
'nonce' => '<string>',
'timestamp' => '<string>'
],
'confirmation' => [
'method' => 'passkey',
'passkeySession' => '<string>',
'assertion' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise"
payload := strings.NewReader("{\n \"challenge\": {\n \"hash\": \"<string>\",\n \"nonce\": \"<string>\",\n \"timestamp\": \"<string>\"\n },\n \"confirmation\": {\n \"method\": \"passkey\",\n \"passkeySession\": \"<string>\",\n \"assertion\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"challenge\": {\n \"hash\": \"<string>\",\n \"nonce\": \"<string>\",\n \"timestamp\": \"<string>\"\n },\n \"confirmation\": {\n \"method\": \"passkey\",\n \"passkeySession\": \"<string>\",\n \"assertion\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/authorise")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"challenge\": {\n \"hash\": \"<string>\",\n \"nonce\": \"<string>\",\n \"timestamp\": \"<string>\"\n },\n \"confirmation\": {\n \"method\": \"passkey\",\n \"passkeySession\": \"<string>\",\n \"assertion\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"state": "AWAITING_AUTHORISATION"
}
}{
"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": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": {}
}Authorizations
Path Parameters
Body
application/json