Decline an intermediary payment (customer)
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/decline \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/decline', 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}/decline"
payload = {}
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>"
}Intermediary payments
Decline an intermediary payment (customer)
The customer refuses a payment waiting for them. Nothing was held. Declining again answers 200.
POST
/
v1
/
customers
/
{customerId}
/
accounts
/
{accountId}
/
intermediary-payments
/
{paymentRequestId}
/
decline
Decline an intermediary payment (customer)
curl --request POST \
--url https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/decline \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.next.orenda.finance/v1/customers/{customerId}/accounts/{accountId}/intermediary-payments/{paymentRequestId}/decline', 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}/decline"
payload = {}
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>"
}Authorizations
Path Parameters
Query Parameters
Body
application/json
The body is of type object.