For the complete documentation index, see llms.txt. This page is also available as Markdown.

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/query

Authentication

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 exact response shape is forwarded from the upstream payment processor and may include additional processor-specific fields.

Last updated