Skip to Content
KingsPay Docs

List Virtual Accounts

List the account's virtual accounts that haven't expired, newest first by default. See the Listing, Filtering & Sorting guide for the filter and sort syntax.

GET
/v1/virtual-accounts

List the account's virtual accounts that haven't expired, newest first by default. See the Listing, Filtering & Sorting guide for the filter and sort syntax.

Authorization

API Key
headerAuthorizationBearer <token>

Your API key for the API. You can find it in your integration settings. Starts with sk_

Query Parameters

page?integer

Page number, starting at 1. Defaults to 1.

Formatint32
pagesize?integer

Virtual accounts per page, up to 100. Defaults to 10.

Formatint32
filters?string

Comma-separated field:condition:value filters, for example type:equal:open,expires_at:before:2026-12-01. Fields: id, number, name, payment_method, type, amount, created_at, expires_at, payment_charge_id.

sort?string

Field to sort by; prefix with - for descending. One of created_at, expires_at, amount, min_amount, max_amount, name. Defaults to -created_at.

Response Body

OK

application/json
  1. response
data*array<>
page*integer
Formatint32
page_size*integer
Formatint32
total_items*integer
Formatint32
status?string
Example Request
curl -X GET 'https://api.kingsplatform.net/api/v1/virtual-accounts'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "payment_method": "string",      "number": "string",      "name": "string",      "type": "string",      "amount": null,      "min_amount": null,      "max_amount": null,      "expires_at": null,      "paid_at": null    }  ],  "page": 0,  "page_size": 0,  "total_items": 0,  "status": "string"}