POST api/v2/coupon/exchange
用戶購買優惠券
Request Information
URI Parameters
None.
Body Parameters
ExchangeCouponReqContractName | Description | Type | Additional information |
---|---|---|---|
memberguid |
會員id |
string |
None. |
productid |
商品ID |
string |
None. |
createdate |
創建日期 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "memberguid": "sample string 1", "productid": "sample string 2", "createdate": "2024-12-23T20:16:20.0765443+08:00" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
用戶購買優惠券
ReturnResultOfExchangeCouponRspContractName | Description | Type | Additional information |
---|---|---|---|
data | ExchangeCouponRspContract |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "couponcode": "sample string 1", "productname": "sample string 2", "expiredate": "2024-12-23T20:16:20.092175+08:00", "coupontype": 4, "usetime": 5, "usetype": 6 }, "code": 1, "message": "sample string 2" }