POST api/ManageCoupon/AddCoupon

添加券

Request Information

URI Parameters

None.

Body Parameters

CouponAddModel
NameDescriptionTypeAdditional information
Id

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.

CreateUserId

创建用户Id

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "a9d148bd-5744-4495-8471-5e5a5c422a6d",
  "CouponCode": "sample string 1",
  "Source": 1,
  "Product": "sample string 2",
  "AmountOver": 3.0,
  "FaceValue": 4.0,
  "Points": 5.0,
  "BeginTime": "2020/04/03 12:05:01",
  "EndTime": "2020/04/03 12:05:01",
  "GetCouponUrl": "sample string 8",
  "GetCouponCommand": "sample string 9",
  "Shop": "sample string 10",
  "CreateUserId": "48ed9e3a-7f87-4a0e-aeaa-45df200de1d2"
}

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": {}
}