API documentation
รายการธุรกรรมบัญชี
Retrieve account transการทำงาน histหรือy with pagination suppหรือt
Content-Type
application-json
หมวดหมู่
user
การทำงาน
transactions
พารามิเตอร์คำขอ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|
| page | จำนวนเต็ม (ไม่บังคับ) | หมายเลขหน้าสำหรับการแบ่งหน้า (ค่าปริยาย: 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",
}






