API documentation
???? ????? Trans?????????????s
Retrieve account trans????????????? hist???y with pagination supp???t
Content-Type
application-json
?????????
user
?????????????
transactions
??????????? ???????
| ???????? ????? | ????? | ?????????????? | ?????? |
|---|---|---|---|
| page | ????? (???????) | ?? number f??? pagination (default: 1) | 1 |
???????? ??????????
| ???????? ????? | ????? | ?????????????? |
|---|---|---|
| type | ??? | Trans????????????? type |
| about | ??? | Trans????????????? details |
| amount | ??? | Trans????????????? amount |
| time | ??? | Time (UTC+8) |
| currency | ??? | ???????? ????? |
??????? ???????
{
curl https://api.nicenic.net/v2/?category=user&action=transactions&page={page}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
??????????? ?????????
0 OK
????? ????????
{
"code": 0,
"msg" : "success",
"data" : {
[
{
"type": "order_pay",
"about": "Domain registration fee",
"amount": "-15.99",
"time": "2023-04-01 12:00:00",
"currency": "USD"
},
{
"type": "order_pay",
"about": "Account deposit",
"amount": "100.00",
"time": "2023-04-01 12:00:00",
"currency": "USD"
}
...
]
}
}
400 ??? ???????
{
"code": 400,
"msg" : "Request parameter error",
}






