Skip to main content

Primary Account APIs

Get Primary Account Details​

POST /abc/v1/account/detail

Get Primary Account Details

Request Headers

X-API-Key
string
Description
-
example
{apiKey}
X-Timestamp
integer
Description
-
example
{{Timestamp}}
X-Nonce
string
Description
-
example
{{Nonce}}
X-Signature
string
Description
-
example
{{Signature}}
Content-Type
string
Description
-
example
application/json

Request Body

The file does not define a request body structure.

Successful Response

Data model: CommonResultOpenAccountResponse

code
integer
Description
Error code
msg
string
Description
Human-readable error message
message
string
Description
-
data
object (OpenAccountResponse)
Description
-

data structure (OpenAccountResponse)

parentAccountId
string
Description
primary account unique ID
parentAccountName
string
Description
primary account name
accountStatus
integer
Description
Account status: 1=active / 2=lost / 3=deleted / 4=dormant
availableAmount
number
Description
available balance, unit: cents
frozenAmount
number
Description
frozen balance, unit: cents
bookAmount
number
Description
book amount, unit: cents
currency
string
Description
Currency (ISO 4217), such as USD
createTime
string
Description
account opening time

Primary Account Management: Account Transfer​

POST /abc/v1/account/transfer

Primary Account Management: Account Transfer

Request Headers

X-API-Key
string
Description
-
example
{apiKey}
X-Timestamp
integer
Description
-
example
{{Timestamp}}
X-Nonce
string
Description
-
example
{{Nonce}}
X-Signature
string
Description
-
example
{{Signature}}
Content-Type
string
Description
-
example
application/json

Request Body

Data model: OpenAccountTransferRequest

transferInAccountId
string
Description
transfer-in account ID
transferInIsParentAccount
boolean
Description
whether the transfer-in account is the primary account
transferOutAccountId
string
Description
transfer-out account unique ID
transferOutIsParentAccount
boolean
Description
whether the transfer-out account is the primary account
transferAmount
number
Description
transfer amount

Successful Response

Data model: CommonResultBoolean

code
integer
Description
Error code
msg
string
Description
Human-readable error message
message
string
Description
-
data
boolean
Description
Response data

Get Recharge Address​

POST /abc/v1/account/recharge-address

Get Recharge Address

Request Headers

X-API-Key
string
Description
-
example
{apiKey}
X-Timestamp
integer
Description
-
example
{{Timestamp}}
X-Nonce
string
Description
-
example
{{Nonce}}
X-Signature
string
Description
-
example
{{Signature}}
Content-Type
string
Description
-
example
application/json

Request Body

The file does not define a request body structure.

Successful Response

Data model: CommonResultOpenRechargeAddressResponse

code
integer
Description
Error code
msg
string
Description
Human-readable error message
message
string
Description
-
data
object (OpenRechargeAddressResponse)
Description
-

data structure (OpenRechargeAddressResponse)

address
string
Description
Merchant recharge address; null if the merchant has not enabled a wallet
minRechargeAmount
number
Description
Minimum recharge amount, unit: cents (minor unit); deposits below this amount are not credited

Query Primary Account Fund Flows​

POST /abc/v1/account/flow/query

Query Primary Account Fund Flows

Request Headers

X-API-Key
string
Description
-
example
{apiKey}
X-Timestamp
integer
Description
-
example
{{Timestamp}}
X-Nonce
string
Description
-
example
{{Nonce}}
X-Signature
string
Description
-
example
{{Signature}}
Content-Type
string
Description
-
example
application/json

Request Body

Data model: OpenAccountFlowQueryRequest

pageNo
integerRequired
Description
Page number, starting from 1; minimum 1
Example / Default
1
pageSize
integerRequired
Description
Items per page, maximum 200; minimum 1
Example / Default
10
accountFlowId
string
Description
Fund account transaction flow ID
Example / Default
PF20260101000001
parentAccountId
string
Description
primary account ID
Example / Default
PA_001
currency
string
Description
currency code ISO 4217
Example / Default
USD
transTypes
arrayinteger>
Description
Transaction type array: 1=self-service recharge, 2=outgoing transfer, 3=incoming transfer, 4=fee deduction, 6=manual recharge, 7=adjustment increase, 8=adjustment decrease, 9=refund; pass one element when querying a single type
rechargeMethod
integer
Description
Recharge method: 1=USD transfer, 5=USDT transfer, 6=rebate-to-recharge, 7=balance transfer, 8=account adjustment (only populated for recharge transactions)
Example / Default
5
transStatus
integer
Description
Transaction status: 1=success, 2=failure, 3=pending, 4=processing; minimum 1; maximum 4
Example / Default
1
transactionTime
arraystring>
Description
Transaction time range, an array with two elements: [start time, end time]

Successful Response

Data model: CommonResultPageResultOpenAccountFlowResponse

code
integer
Description
Error code
msg
string
Description
Human-readable error message
message
string
Description
-
data
object (PageResultOpenAccountFlowResponse)
Description
-

data structure (PageResultOpenAccountFlowResponse)

total
integer (int64)
Description
Total
list
array<object (OpenAccountFlowResponse)>
Description
Data

Query Recharge Details​

POST /abc/v1/account/recharge/query

Query Recharge Details

Request Headers

X-API-Key
string
Description
-
example
{apiKey}
X-Timestamp
integer
Description
-
example
{{Timestamp}}
X-Nonce
string
Description
-
example
{{Nonce}}
X-Signature
string
Description
-
example
{{Signature}}
Content-Type
string
Description
-
example
application/json

Request Body

Data model: OpenRechargeFlowQueryRequest

pageNo
integerRequired
Description
Page number, starting from 1; minimum 1
Example / Default
1
pageSize
integerRequired
Description
Items per page, maximum 200; minimum 1
Example / Default
10
accountFlowId
string
Description
Fund account transaction flow ID
Example / Default
PF20260101000001
parentAccountId
string
Description
primary account ID
Example / Default
PA_001
currency
string
Description
currency code ISO 4217
Example / Default
USD
transTypes
arrayinteger>Required
Description
Transaction type array: 1=self-service recharge, 2=outgoing transfer, 3=incoming transfer, 4=fee deduction, 6=manual recharge, 7=adjustment increase, 8=adjustment decrease, 9=refund
rechargeMethod
integer
Description
Recharge method: 1=USD transfer, 5=USDT transfer, 6=rebate-to-recharge, 7=balance transfer, 8=account adjustment
Example / Default
5
transStatus
integer
Description
Transaction status: 1=success, 2=failure, 3=pending, 4=processing; minimum 1; maximum 4
Example / Default
1
transactionTime
arraystring>
Description
Transaction time range, an array with two elements: [start time, end time]

Successful Response

Data model: CommonResultPageResultOpenAccountFlowResponse

code
integer
Description
Error code
msg
string
Description
Human-readable error message
message
string
Description
-
data
object (PageResultOpenAccountFlowResponse)
Description
-

data structure (PageResultOpenAccountFlowResponse)

total
integer (int64)
Description
Total
list
array<object (OpenAccountFlowResponse)>
Description
Data