## 示例
接口名称:获取用户订单
接口地址:域名/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
}
~~~