URL: /api/assets/getCouponGrant
Type: POST
Content-Type: application/json; charset=utf-8
Description: 优惠卷发放查询接口
Body-parameters:
Parameter | Type | Required | Description |
---|---|---|---|
opfid | string | true | 开放平台ID |
nonce | string | true | 6位随机字串不能为空 |
timestamp | string | true | 签名时间戳 |
signature | string | true | 签名 |
uid | string | true | 第三方用户id |
companyId | string | true | 第三方公司id |
pageNo | int32 | false | 页码 |
pageSize | int32 | false | 页容 |
Request-body:
{
"opfid": "30",
"nonce": "oeq1ri",
"timestamp": "2022-05-19 14:33:20",
"signature": "bcqh5t",
"uid": "bc299ab7-4b46-4929-9bb3-7e9abd83c18c",
"companyId": "bc299ab7-4b46-4929-9bb3-7e9abd83c18c",
"pageNo": 878,
"pageSize": 10
}
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
code | string | 状态码 | - |
errorCode | string | 错误状态码 | - |
msg | string | 状态描述 | - |
data | object | 数据 | - |
└─pageNo | int32 | 页码 | - |
└─pageSize | int32 | 页大小 | - |
└─total | int32 | 总数 | - |
└─data | array | 数据 | - |
└─couponName | string | 券名 | - |
└─couponType | string | 券类型 | - |
└─num | int32 | 数量 | - |
└─grantTime | string | 发放时间 | - |
Response-example:
{
"code": "7904",
"errorCode": "7904",
"msg": "g6d1y7",
"data": {
"pageNo": 838,
"pageSize": 10,
"total": 503,
"data": [
{
"couponName": "峻熙.江",
"couponType": "dw4v2n",
"num": 166,
"grantTime": "2022-05-19 14:33:21"
}
]
}
}
Curl-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i /api/assets/getCouponGrant --data '{
"opfid": "30",
"nonce": "oeq1ri",
"timestamp": "2022-05-19 14:33:20",
"signature": "bcqh5t",
"uid": "bc299ab7-4b46-4929-9bb3-7e9abd83c18c",
"companyId": "bc299ab7-4b46-4929-9bb3-7e9abd83c18c",
"pageNo": 878,
"pageSize": 10
}'