Onerway
POST

开立币种账户

使用此接口为指定用户提交指定币种的账户开户请求。

请求

apiKey
用于访问嵌入式金融 API 的 API key。
示例:
Content-Type
请求内容类型。
示例:
userId
需要开立币种账户的用户 ID。
示例:
currencyCode
待开立账户的币种代码。
示例:

请求示例

curl -X POST 'https://sandbox-baas.onerway.com/embedded-finance/api/v2/currency-accounts/open' \
  -H 'apiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "userId": 123456789,
  "currencyCode": "GBP"
}'

响应

respCode
Onerway 返回的响应码;20000 表示成功。
示例:
respMsg
响应码对应的可读消息。
示例:
data
响应数据;成功示例中为 null。

响应示例

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": null
}
该接口暂未记录错误响应。