Authorise an intermediary payment (customer)
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>"
}
}
'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));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){
"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>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Intermediary payments
Authorise an intermediary payment (customer)
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 (customer)
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>"
}
}
'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));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){
"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>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"success": false,
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Authorizations
Path Parameters
Query Parameters
Body
application/json