跳转到主要内容
POST
/
v1
/
virtual
/
accounts
Create Virtual Account
curl --request POST \
  --url https://api-sandbox.uqpaytech.com/api/v1/virtual/accounts \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "currency": "USD,SGD",
  "payment_method": "LOCAL"
}
'
{
  "message": "SUCCESS"
}

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.

x-idempotency-key
string<uuid>
必填

A unique identifier (UUID) used to maintain operation idempotency, ensuring that repeated executions of the same operation do not result in unintended effects or duplication. It helps preserve data consistency in the face of network errors, retries, or failures.

x-request-id
string

A custom identifier for the request, up to 64 characters. If provided, this value is returned in the associated webhook event as request_id.

Maximum string length: 64

请求体

application/json
currency
string
必填

Multiple currencies are joined using commas. Currency code ISO_4217.

示例:

"USD,SGD"

payment_method
enum<string>

The payment method needs to be specified to ensure that accurate banking details are captured and validated for the specified payment method.

可用选项:
LOCAL,
SWIFT
示例:

"LOCAL"

响应

200 - application/json

VA Account creation successfully.

message
string
示例:

"SUCCESS"