รายการธุรกรรมของบัญชี
ดึงประวัติธุรกรรมบัญชีพร้อมรองรับการแบ่งหน้า
Content-Type
application/json
หมวดหมู่
user
action
transactions
พารามิเตอร์คำขอ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|
| page | Integer (Optional) | หมายเลขหน้าสำหรับการแบ่งหน้า (ค่าเริ่มต้น: 1) | 1 |
พารามิเตอร์การตอบกลับ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย |
|---|---|---|
| type | String | ประเภทธุรกรรม |
| about | String | รายละเอียดธุรกรรม |
| amount | String | จำนวนเงินรายการ |
| time | String | เวลา (UTC+8) |
| currency | String | ประเภทสกุลเงิน |
ตัวอย่างคำขอ
{
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",
}






