我的优惠券列表
# 优惠券
---
## 根据状态查询我的优惠券列表
### BASIC
**Path:** hucai.wechat.coupon.my_coupon_list
**Method:** POST
### REQUEST
**Headers:**
| name | value | required | desc |
| ------------ | ------------ | ------------ | ------------ |
| Content-Type | application/json | YES | |
**RequestBody**
| name | type | desc |
| ------------ | ------------ | ------------ |
| state | string | 优惠券使用状态 WSY:未使用 YSY: 已使用 YSX:已失效 |
**Request Demo:**
```json
{
"state": ""
}
```
### RESPONSE
**Header:**
| name | value | required | desc |
| ------------ | ------------ | ------------ | ------------ |
| content-type | application/json;charset=UTF-8 | NO | |
**Body:**
| name | type | desc |
| ------------ | ------------ | ------------ |
| code | integer | |
| message | string | |
| result | array | |
|   |─ | object | |
|     |─couponname | string | 优惠劵名称 |
|     |─templateid | integer | 模板Id |
|     |─instancecount | integer | |
|     |─effectivetype | string | |
|     |─effectivevalue | string | |
|     |─shareflag | string | |
|     |─superpositionflag | string | |
|     |─firstOrderLimit | string | |
|     |─state | string | 状态[YES:可用,NO:不可用] |
|     |─delflag | string | |
|     |─createat | string | |
|     |─createuser | string | |
|     |─modifyat | string | |
|     |─modifyuser | string | |
|     |─useobject | string | |
|     |─totalPrice | number | |
|     |─couponType | string | 券类型[FullSub:满减优惠,Discount:折扣优惠,SingleItem:单品优惠] |
|     |─dateformat | string | |
|     |─begindate | string | |
|     |─enddate | string | |
|     |─userId | integer | |
|     |─useTime | string | |
|     |─discountValueText | string | |
|     |─useObjectIds | string | |
|     |─useObjectVals | string | |
|     |─useObjectValsList | array | |
|       |─ | object | |
|         |─type | integer | defaultVal:NULL,<br>comments: |
|         |─code | string | defaultVal:NULL,<br>comments: |
|         |─name | string | defaultVal:NULL,<br>comments: |
|         |─prodCycle | integer | defaultVal:NULL,<br>comments: |
|         |─pics | string | defaultVal:NULL,<br>comments: |
|         |─config | string | defaultVal:NULL,<br>comments: |
|         |─bindingType | string | defaultVal:NULL,<br>comments: |
|         |─innerColor | string | defaultVal:NULL,<br>comments: |
|         |─createUser | integer | defaultVal:NULL,<br>comments: |
|         |─createTime | string | defaultVal:NULL,<br>comments: |
|         |─status | integer | defaultVal:NULL<br>comments:0 无效 1 有效 2 置顶 |
|         |─firstPictureName | string | 首张上传图片的文件名 |
|         |─deployTime | string | defaultVal:NULL,<br>comments: |
|         |─brief | string | 简单说明 |
|         |─detail | string | 详细说明 |
|         |─priceRegin | string | 价格范围 |
|         |─beginNumber | integer | 起始印刷量 |
|         |─createUserT | string | Transient |
|         |─materialWeight | string | 封面材料 |
|         |─bodyMaterials | string | 内文材料 |
|         |─categoryId | integer | 类别ID |
|         |─hasDiscount | boolean | |
|         |─filterType | string | |
|         |─log | object | |
|         |─id | integer | |
|     |─instanceCode | string | 劵实例编号 |
|     |─useCount | integer | 劵使用次数 |
|     |─couponTotalLimit | integer | 券创建上限 |
|     |─log | object | |
|     |─id | integer | |
**Response Demo:**
```json
{
"code": 0,
"message": "",
"result": [
{
"couponname": "",
"templateid": 0,
"instancecount": 0,
"effectivetype": "",
"effectivevalue": "",
"shareflag": "",
"superpositionflag": "",
"firstOrderLimit": "",
"state": "",
"delflag": "",
"createat": "",
"createuser": "",
"modifyat": "",
"modifyuser": "",
"useobject": "",
"totalPrice": 0.0,
"couponType": "",
"dateformat": "",
"begindate": "",
"enddate": "",
"userId": 0,
"useTime": "",
"discountValueText": "",
"useObjectIds": "",
"useObjectVals": "",
"useObjectValsList": [
{
"type": 0,
"code": "",
"name": "",
"prodCycle": 0,
"pics": "",
"config": "",
"bindingType": "",
"innerColor": "",
"createUser": 0,
"createTime": "",
"status": 0,
"firstPictureName": "",
"deployTime": "",
"brief": "",
"detail": "",
"priceRegin": "",
"beginNumber": 0,
"createUserT": "",
"materialWeight": "",
"bodyMaterials": "",
"categoryId": 0,
"hasDiscount": false,
"filterType": "",
"log": {},
"id": 0
}
],
"instanceCode": "",
"useCount": 0,
"couponTotalLimit": 0,
"log": {},
"id": 0
}
]
}
```