Virtual Accounts
List Virtual Accounts
Retrieve a paginated list of all virtual bank accounts.
GET
/
v1
/
virtual-accounts
List virtual accounts
curl --request GET \
--url https://billing.example.com/v1/virtual-accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/virtual-accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/virtual-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/virtual-accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/virtual-accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/virtual-accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/virtual-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_number": "<string>",
"ifsc_code": "<string>",
"bank_name": "<string>",
"beneficiary_name": "<string>",
"razorpay_va_id": "<string>",
"status": "<string>",
"amount_expected": 123,
"amount_received": 123,
"closed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customer_id | string (UUID) | No | Filter virtual accounts by customer ID. |
status | string | No | Filter by status: active, paid, expired, or closed. |
invoice_id | string | No | Filter by associated invoice ID. |
limit | integer | No | Number of records to return (default 10, max 100). |
offset | integer | No | Number of records to skip (default 0). |
Example Request
curl -G https://api.recurso.dev/v1/virtual-accounts \
-H "Authorization: Bearer rsk_live_xxx" \
-d status=active \
-d limit=10
Response
Returns a list of virtual account objects.{
"object": "list",
"data": [
{
"id": "va_8e7d6c5b4a3f2109",
"object": "virtual_account",
"customer_id": "cust_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"invoice_id": "inv_5d4c3b2a1f0e9876",
"amount": 249900,
"amount_received": 0,
"account_number": "9876540012345678",
"ifsc_code": "RATN0VAAPIS",
"bank_name": "RBL Bank",
"beneficiary_name": "Recurso Payments Pvt Ltd",
"status": "active",
"expires_at": "2026-07-23T23:59:59Z",
"created_at": "2026-06-23T10:15:30Z",
"updated_at": "2026-06-23T10:15:30Z"
},
{
"id": "va_2f1a0b9c8d7e6543",
"object": "virtual_account",
"customer_id": "cust_f0e1d2c3-b4a5-6789-0abc-def123456789",
"invoice_id": null,
"amount": 150000,
"amount_received": 150000,
"account_number": "9876540098765432",
"ifsc_code": "RATN0VAAPIS",
"bank_name": "RBL Bank",
"beneficiary_name": "Recurso Payments Pvt Ltd",
"status": "paid",
"expires_at": "2026-07-20T23:59:59Z",
"created_at": "2026-06-20T09:00:00Z",
"updated_at": "2026-06-21T14:30:00Z"
}
],
"has_more": false,
"total_count": 2
}
Authorizations
Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.
Query Parameters
Max rows returned (clamped to 1000).
Required range:
x <= 1000Rows to skip, for paging past the clamp.
Required range:
x >= 0Response
Virtual accounts for the tenant.
Show child attributes
Show child attributes
⌘I
List virtual accounts
curl --request GET \
--url https://billing.example.com/v1/virtual-accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/virtual-accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/virtual-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/virtual-accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/virtual-accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://billing.example.com/v1/virtual-accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/virtual-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_number": "<string>",
"ifsc_code": "<string>",
"bank_name": "<string>",
"beneficiary_name": "<string>",
"razorpay_va_id": "<string>",
"status": "<string>",
"amount_expected": 123,
"amount_received": 123,
"closed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}