API documentation
Saraksts Konts Transdarbības
Retrieve account transdarbība histvaiy with pagination suppvait
Content-Type
application-json
kategorija
user
darbība
transactions
Pieprasījuma parametri
| Parametra nosaukums | Tips | Apraksts | Piemērs |
|---|---|---|---|
| page | Vesels skaitlis (pēc izvēles) | Lapa number fvai pagination (default: 1) | 1 |
Atbildes parametri
| Parametra nosaukums | Tips | Apraksts |
|---|---|---|
| type | Teksts | Transdarbība type |
| about | Teksts | Transdarbība details |
| amount | Teksts | Transdarbība amount |
| time | Teksts | Time (UTC+8) |
| currency | Teksts | Valūtas veids |
Pieprasījuma piemērs
{
curl https://api.nicenic.net/v2/?category=user&action=transactions&page={page}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Atgrieztie rezultāti
0 OK
Veiksmīga atbilde
{
"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 Nederīga pieprasījuma k?ūda
{
"code": 400,
"msg" : "Request parameter error",
}






