Cancel an intermediary payment (back office)
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"reason": "<string>",
"internalNote": "<string>",
"acknowledgePayoutRisk": true
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({reason: '<string>', internalNote: '<string>', acknowledgePayoutRisk: true})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/cancel', 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}/cancel"
payload = {
"reason": "<string>",
"internalNote": "<string>",
"acknowledgePayoutRisk": True
}
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": {
"state": "CANCELLED",
"holdReleased": true
}
}{
"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>"
}Intermediary payments
Cancel an intermediary payment (back office)
An Orenda super admin or the client’s manager cancels a payment that has not been released, and any hold goes back to the customer: before confirmation, or after it while the release is held back (RELEASE_DELAYED) and was never sent, unless compliance froze it. Once TM has passed the client may already have paid the UBO: acknowledgePayoutRisk: true is then required. reasonCode and reason are shown to the customer; internalNote is not.
POST
/
v1
/
customers
/
{customerId}
/
accounts
/
{accountId}
/
intermediary-payments
/
{paymentRequestId}
/
cancel
Cancel an intermediary payment (back office)
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"reason": "<string>",
"internalNote": "<string>",
"acknowledgePayoutRisk": true
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({reason: '<string>', internalNote: '<string>', acknowledgePayoutRisk: true})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/cancel', 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}/cancel"
payload = {
"reason": "<string>",
"internalNote": "<string>",
"acknowledgePayoutRisk": True
}
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": {
"state": "CANCELLED",
"holdReleased": true
}
}{
"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>"
}Authorizations
Headers
Path Parameters
Query Parameters
Body
application/json