跳转到主要内容
GET
/
v1
/
virtual
/
accounts
List Virtual Accounts
curl --request GET \
  --url https://api-sandbox.uqpaytech.com/api/v1/virtual/accounts \
  --header 'x-auth-token: <api-key>'
{
  "total_pages": 10,
  "total_items": 105,
  "data": [
    {
      "account_holder": "John Doe",
      "account_number": "12345678",
      "capability": {
        "payment_method": "SWIFT"
      },
      "country_code": "SG",
      "currency": "SGD",
      "account_bank_id": "72970a7c-7921-431c-b95f-3438724ba16f",
      "bank_name": "ABC Bank",
      "bank_address": "810 Seventh Avenue, New York, NY 10019, US",
      "clearing_system": {
        "type": "bic_swift",
        "value": "TCCLGB3L"
      },
      "status": "ACTIVE",
      "close_reason": ""
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers-sandbox.uqpaytech.com/llms.txt

Use this file to discover all available pages before exploring further.

授权

x-auth-token
string
header
必填

The API token for login provided by UQPay.

请求头

x-on-behalf-of
string

Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts. If omitted or empty, the request is executed using the master account. More information at Connected Accounts.

查询参数

page_size
integer
必填

The maximum number of items to return per page. Must be between 10 and 100, inclusive.

必填范围: 1 <= x <= 100
示例:

10

page_number
integer
必填

The page number to retrieve a specific set of items. Must be 1 or greater.

必填范围: x >= 1
示例:

1

currency
string

Specifies the currency or currencies for the Virtual Account (VA), determining which funds it can receive. Multiple currencies should be separated by commas. Currency codes follow the ISO 4217 standard.

示例:

"USD,SGD"

响应

200 - application/json

OK - List virtual accounts returned successfully.

total_pages
integer

The total number of pages of available items.

示例:

10

total_items
integer

The total counts of available items.

示例:

105

data
object[]