API documentation
اکاؤنٹ ٹرانزیکشنز کی فہرست
Retrieve account transعمل histیاy with pagination suppیاt
Content-Type
application-json
زمرہ
user
عمل
transactions
درخواست کے پیرامیٹرز
| پیرامیٹر کا نام | قسم | تفصیل | مثال |
|---|---|---|---|
| page | Integer (اختیاری) | صفحہ نمبر برائے صفحہ بندی (ڈیفالٹ: 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",
}






