Query Virtual Account
Query a specific virtual account by account number.
Retrieves the details and current status of a virtual account from the payment processor.
Endpoint
POST /v1/virtual-accounts/queryAuthentication
API key only (JWT not accepted). This route uses the API-key guard exclusively.
Header
Value
Authorization
<api_key>
Request body
Field
Type
Required
Description
accountNumber
string
Yes
Virtual account number to query
Example request
curl -X POST https://ramp-api.ivorypay.io/api/v1/virtual-accounts/query \
-H "Authorization: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"accountNumber": "9900123456"
}'const response = await fetch("https://ramp-api.ivorypay.io/api/v1/virtual-accounts/query", {
method: "POST",
headers: {
"Authorization": "your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
accountNumber: "9900123456",
}),
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
"https://ramp-api.ivorypay.io/api/v1/virtual-accounts/query",
headers={
"Authorization": "your_api_key",
"Content-Type": "application/json",
},
json={
"accountNumber": "9900123456",
},
)
print(response.json())Example response
The query response can contain additional fields specific to the account route. The example is illustrative; do not use this query as payment or settlement confirmation. Use deposits and settlements for reconciliation.
Last updated