POST
开立币种账户
使用此接口为指定用户提交指定币种的账户开户请求。
请求
apiKey用于访问嵌入式金融 API 的 API key。
示例:
replace_with_api_keyContent-Type请求内容类型。
示例:
application/jsonuserId需要开立币种账户的用户 ID。
示例:
123456789currencyCode待开立账户的币种代码。
示例:
GBPcurl -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"
}'响应
respCodeOnerway 返回的响应码;
20000 表示成功。示例:
20000respMsg响应码对应的可读消息。
示例:
Successdata响应数据;成功示例中为
null。{
"respCode": "20000",
"respMsg": "Success",
"data": null
}该接口暂未记录错误响应。