POST api/v2/coupon/exchange

用戶購買優惠券

Request Information

URI Parameters

None.

Body Parameters

ExchangeCouponReqContract
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ExchangeCouponReqContract'.

Response Information

Resource Description

用戶購買優惠券

ReturnResultOfExchangeCouponRspContract
NameDescriptionTypeAdditional 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"
}