子賬戶接口
創建子賬戶
POST /abc/v1/sub-account/create
創建子賬戶
請求頭
{apiKey}{{Timestamp}}{{Nonce}}{{Signature}}請求體
數據模型:OpenSubAccountCreateRequest
成功響應
數據模型:CommonResultOpenSubAccountResponse
data 結構(OpenSubAccountResponse)
子賬戶分頁查詢
POST /abc/v1/sub-account/query
子賬戶分頁查詢
請求頭
{apiKey}{{Timestamp}}{{Nonce}}{{Signature}}請求體
數據模型:OpenSubAccountPageRequest
成功響應
數據模型:CommonResultPageResultOpenSubAccountResponse
data 結構(PageResultOpenSubAccountResponse)
子賬戶詳情
POST /abc/v1/sub-account/detail
子賬戶詳情
請求頭
{apiKey}{{Timestamp}}{{Nonce}}{{Signature}}請求體
數據模型:OpenSubAccountDetailRequest
成功響應
數據模型:CommonResultOpenSubAccountResponse
data 結構(OpenSubAccountResponse)
啓停子賬戶
POST /abc/v1/sub-account/update-status
啓停子賬戶
請求頭
{apiKey}{{Timestamp}}{{Nonce}}{{Signature}}請求體
數據模型:OpenSubAccountStatusUpdateRequest
成功響應
數據模型:CommonResultOpenSubAccountResponse
data 結構(OpenSubAccountResponse)
修改子賬戶名稱
POST /abc/v1/sub-account/update-name
修改子賬戶名稱
請求頭
{apiKey}{{Timestamp}}{{Nonce}}{{Signature}}請求體
數據模型:OpenSubAccountUpdateNameRequest
成功響應
數據模型:CommonResultBoolean
查詢子賬戶資金流水
POST /abc/v1/sub-account/flow/query
查詢子賬戶資金流水
請求頭
{apiKey}{{Timestamp}}{{Nonce}}{{Signature}}請求體
數據模型:OpenSubAccountFlowQueryRequest
成功響應
數據模型:CommonResultPageResultOpenSubAccountFlowResponse
data 結構(PageResultOpenSubAccountFlowResponse)
切換子賬戶卡渠道
POST /abc/v1/sub-account/switch-provider
切換子賬戶卡渠道
請求頭
{{APIKey}}{{Timestamp}}{{Nonce}}{{Signature}}請求體
請求體格式:application/json
可用卡渠道 ID 以 ORBSIS 提供的配置為準。
請求體範例
{ "subAccountId": "SUB_001", "targetProviderName": "ORBSIS_A" }
cURL 範例
curl --request POST 'https://open.orbsis.com/abc/v1/sub-account/switch-provider' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: api-key' \
--header 'X-Timestamp: unix-seconds' \
--header 'X-Nonce: unique-nonce' \
--header 'X-Signature: base64-signature' \
--data '{"subAccountId":"SUB_001","targetProviderName":"ORBSIS_A"}'
成功響應
HTTP 狀態碼:200
切換成功後,響應體爲空對象。
{}