Onerway
POST

查询虚拟账户

使用此接口根据用户 ID 查询该用户的虚拟账户,付款到该虚拟账户时,请仅使用 status 为 ACTIVE 的账户。

请求

apiKey
用于访问嵌入式金融 API 的 API key。
示例:
Content-Type
请求内容类型。
示例:
userId
要查询虚拟账户的用户 ID。
示例:

请求示例

curl -X POST 'https://sandbox-baas.onerway.com/embedded-finance/api/v2/virtual-account/query' \
  -H 'apiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "userId": 12345678
}'

响应

respCode
Onerway 返回的响应码;20000 表示成功。
示例:
respMsg
响应码对应的可读消息。
示例:
该用户的虚拟账户列表。

响应示例

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": [
    {
      "merchantNo": "800***",
      "userId": 12345678,
      "iban": "GB00EXAMPLE00000000000000",
      "ownerName": "EXAMPLE USER",
      "sortCode": "040893",
      "bankCountry": "GB",
      "status": "ACTIVE"
    }
  ]
}
该接口暂未记录错误响应。