Skip to main content

Query Payment

Overview

Query the status and details of a previous payment using either the system-assigned order_id or your partner_order_id.

Resource Access

  • HTTP Method: GET
  • Endpoint: /banking/iban/api/payout/v2/query
  • Authentication: Bearer token required

Query Parameters

ParameterTypeRequiredDescription
order_idstringConditionalThe unique payment order ID assigned by the system
partner_order_idstringConditionalThe unique payment request ID from your system

Note: At least one of order_id or partner_order_id must be provided.

Request Headers

HeaderValueRequiredDescription
Acceptapplication/jsonYesContent type for the response
AuthorizationBearer {access_token}YesBearer token for authentication
on-behalf-ofstringNoCustomer ID for on-behalf-of operations

Response

Success Response (200 OK)

{
"order_id": "202501092053115499258",
"partner_order_id": "2024834713M3STH",
"status": "COMPLETED",
"biz_id": "VA202501142006502111",
"payout_type": "PAYOUT",
"origin_currency": "USD",
"origin_amount": 100.00,
"target_currency": "INR",
"target_amount": 123.45,
"exchange_rate": 83.25,
"fee": 5.00,
"to_account_id": "R202412311029369694",
"reference": "Invoice payment",
"clearing_network": "SWIFT",
"fee_bear": "OUR",
"created_at": "2026-01-14T10:00:00.000Z",
"completed_at": "2026-01-15T10:00:00.000Z",
"status_history": [
{
"status": "PROCESSING",
"timestamp": "2026-01-14T10:00:00.000Z"
},
{
"status": "COMPLETED",
"timestamp": "2026-01-15T10:00:00.000Z"
}
]
}

Response Fields

FieldTypeDescription
order_idstringSystem payment order ID
partner_order_idstringYour payment identifier
statusstringCurrent payment status
biz_idstringVirtual account ID
payout_typestringType of payout
origin_currencystringSource currency
origin_amountnumberAmount debited
target_currencystringDestination currency
target_amountnumberAmount credited
exchange_ratenumberApplied exchange rate
feenumberTransaction fee
to_account_idstringRecipient account ID
referencestringPayment reference
clearing_networkstringClearing network used
fee_bearstringFee bearer
created_atstring (date-time)Creation timestamp
completed_atstring (date-time)Completion timestamp
status_historyarrayPayment status history

Payment Status Values

  • PROCESSING: Payment submitted and being processed
  • COMPLETED: Payment successfully delivered
  • FAILED: Payment failed
  • CANCELLED: Payment cancelled

Error Responses

  • 401 Unauthorized: Invalid or missing authentication token
  • 404 Not Found: Payment not found

Code Examples

cURL

curl -X GET \
'https://gateway.ahrvo.network/banking/iban/api/payout/v2/query?order_id=202501092053115499258&partner_order_id=2024834713M3STH' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Python

import requests

url = "https://gateway.ahrvo.network/banking/iban/api/payout/v2/query"
headers = {
"Accept": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
params = {
"order_id": "202501092053115499258",
"partner_order_id": "2024834713M3STH"
}

response = requests.get(url, headers=headers, params=params)
print(response.json())

JavaScript (Node.js)

const axios = require('axios');

const url = 'https://gateway.ahrvo.network/banking/iban/api/payout/v2/query';
const headers = {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
};
const params = {
order_id: '202501092053115499258',
partner_order_id: '2024834713M3STH'
};

axios.get(url, { headers, params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error.response.data);
});

Usage Notes

  • Use webhooks for real-time status updates instead of polling
  • Both order_id and partner_order_id can be provided for validation
  • Status history shows the progression of the payment
  • Failed payments include failure reason in the response
  • Completed payments show the actual completion timestamp

Interactive API Explorer