## 示例
接口名稱:獲取用戶訂單
接口地址:域名/index.php?m=api&c=order&a=getUserOrderList
請求方式:POST
數據類型:JSON
響應類型:JSON
請求參數:
| 參數名稱 | 是否必須 | 類型 | 默認值 | 描述 |
| --- | --- | --- | --- | --- |
| uid | 是 | int | | 會員uid |
| type | 否 | varchar | transactions(查詢所有訂單) | 交易transactions、 轉讓transfers、付款payment、 傭金commission、兌現cashout、回購repurchases |
| month | 否 | varchar | current(查詢當月訂單) | current 當月訂單、last上月訂單 |
響應數據:
| 參數名稱 | 是否必須 | 類型 | 默認值 | 描述 |
| --- | --- | --- | --- | --- |
| message | 是 | string | | 返回信息 |
| code | 是 | int | | 狀態碼 |
| data | 是 | array / string | | json / false |
| --uid | 是 | int | | 轉賬操作的通知人 |
| --tuid | 是 | int | | 收款通知人 |
| --debit | 是 | decimal | | 欠款 |
| --credit | 是 | decimal | | 記賬 |
| --description | 是 | decimal | | 描述 |
| --folio | 是 | varchar | | 對賬單號 |
| --date | 是 | int | | 創建時間 |
| --type | 是 | varchar | |交易Transactions、 轉讓Transfers、 付款Payment、 傭金Commission、 兌現Cashout、 回購Repurchases、|
成功響應示列:
~~~
{
"code": 1001,
"message": "獲取用戶訂單成功",
"data": [
{
"id": "10",
"date": "1528178670",
"folio": "DEA63498889",
"description": "You made a Payout from your rewards wallet",
"credit": null,
"debit": "1000.00",
"type": "payment",
"uid": "48",
"tuid": null
},
{
"id": "13",
"date": "1528206303",
"folio": "DEA48580869",
"description": "You made a Payout from your rewards wallet",
"credit": null,
"debit": "1224.00",
"type": "payment",
"uid": "48",
"tuid": null
}
]
}
~~~
失敗響應示列:
~~~
{
"code": 2001,
"message": "獲取用戶訂單失敗",
"data": false
}
~~~