POST api/ManageCoupon/EditCoupon

编辑券

Request Information

URI Parameters

None.

Body Parameters

CouponEditModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CouponCode

券编号

string

None.

Source

券来源平台

CouponSource

None.

Product

适用产品

string

None.

AmountOver

满xx金额

decimal number

None.

FaceValue

面额

decimal number

None.

Points

消耗积分

decimal number

None.

BeginTime

有效开始日期

date

None.

EndTime

有效结束日期

date

None.

GetCouponUrl

领券链接

string

None.

GetCouponCommand

领取口令

string

None.

Shop

店铺

string

None.

LastUpdateUserId

修改用户Id

globally unique identifier

None.

LastUpdateTime

修改时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "2ca7ffac-7b4d-4f53-a59b-933668185f65",
  "CouponCode": "sample string 2",
  "Source": 1,
  "Product": "sample string 3",
  "AmountOver": 4.0,
  "FaceValue": 5.0,
  "Points": 6.0,
  "BeginTime": "2020/05/27 04:11:00",
  "EndTime": "2020/05/27 04:11:00",
  "GetCouponUrl": "sample string 9",
  "GetCouponCommand": "sample string 10",
  "Shop": "sample string 11",
  "LastUpdateUserId": "714d1b79-e5c5-4417-8e9c-3d278754a3e3",
  "LastUpdateTime": "2020/05/27 04:11:00"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiReturnModel
NameDescriptionTypeAdditional information
Code

ReturnCode

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 0,
  "Message": "sample string 1",
  "Data": {}
}