POST api/CouponType/T/Modify

修改优惠券类型

Request Information

URI Parameters

None.

Body Parameters

CouponTypeAddOrUpdateParm
NameDescriptionTypeAdditional information
CouponTypeId

优惠券类型ID

string

Required

Max length: 8

CouponName

优惠券名称

string

Required

Max length: 40

CouponType

优惠券类型

string

Required

Max length: 1

Denomination

面值/最大面值

decimal number

Required

PayBillSummaryLimit

支付单据金额限制

decimal number

None.

CountLimitPerUser

单一用户领取限制 1表示一张,最大值为10

byte

Required

GivenToOne

是否可以转赠 1-允许,0不允许

string

Required

Max length: 1

ComboWithOtherCoupon

是否可以和其他优惠券组合使用 1-允许,0不允许

string

Required

Max length: 1

GetWithValuePoint

是否允许积分兑换 1-允许,0不允许

string

Required

Max length: 1

SuperimposeMult

是否可以叠加使用 1允许,0不允许

string

Required

Max length: 1

ValuePointExchangeRate

积分兑换比率

integer

None.

BackgroundColor

背景色 A棕R红O橙Y黄G绿B蓝P紫K黑

string

Required

Max length: 1

ForeColor

前景色 K黑W白

string

Required

Max length: 1

SourceOfFund

结算资金来源 1-景区,2-联营门店自担

string

Required

Max length: 1

UsedForBusi

使用业务范围 A|1|2|3|4|5|6|7|8 A表示系统内的任意业务;1-票务(含景区和演出);2-自营零售业务;3-包车业务;4-即上即下环保车业务;5-装备租赁业务,6-联营零售业务,7-餐饮业务,8-其他业务

string

Required

Max length: 20

UsedForSpecialShop

是否限制店铺 1-是 0-否

string

Required

Max length: 1

GivenCountLimit

发行数量限制

integer

Required

GivenSummaryLimit

发行总金额限制

decimal number

Required

EnableForNet

允许互联网领用

string

Required

Max length: 1

UsedForSpecialTime

固定使用期限 1-固定,2-活动,3-不限

string

Required

Max length: 1

UsedByDays

使用期限时长

byte

None.

GetStartTime

领取起始时间

string

Max length: 12

GetEndTime

领取结束时间

string

Max length: 12

UseStartTime

使用起始时间

string

Max length: 12

UseEndTime

使用截止时间

string

Max length: 12

Request Formats

application/json, text/json

Sample:
{
  "CouponTypeId": "sample string 1",
  "CouponName": "sample string 2",
  "CouponType": "sample string 3",
  "Denomination": 4.0,
  "PayBillSummaryLimit": 5.0,
  "CountLimitPerUser": 64,
  "GivenToOne": "sample string 7",
  "ComboWithOtherCoupon": "sample string 8",
  "GetWithValuePoint": "sample string 9",
  "SuperimposeMult": "sample string 10",
  "ValuePointExchangeRate": 11,
  "BackgroundColor": "sample string 12",
  "ForeColor": "sample string 13",
  "SourceOfFund": "sample string 14",
  "UsedForBusi": "sample string 15",
  "UsedForSpecialShop": "sample string 16",
  "GivenCountLimit": 17,
  "GivenSummaryLimit": 18.0,
  "EnableForNet": "sample string 19",
  "UsedForSpecialTime": "sample string 20",
  "UsedByDays": 64,
  "GetStartTime": "sample string 22",
  "GetEndTime": "sample string 23",
  "UseStartTime": "sample string 24",
  "UseEndTime": "sample string 25"
}

application/xml, text/xml

Sample:
<CouponTypeAddOrUpdateParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.ValueCard">
  <BackgroundColor>sample string 12</BackgroundColor>
  <ComboWithOtherCoupon>sample string 8</ComboWithOtherCoupon>
  <CountLimitPerUser>64</CountLimitPerUser>
  <CouponName>sample string 2</CouponName>
  <CouponType>sample string 3</CouponType>
  <CouponTypeId>sample string 1</CouponTypeId>
  <Denomination>4</Denomination>
  <EnableForNet>sample string 19</EnableForNet>
  <ForeColor>sample string 13</ForeColor>
  <GetEndTime>sample string 23</GetEndTime>
  <GetStartTime>sample string 22</GetStartTime>
  <GetWithValuePoint>sample string 9</GetWithValuePoint>
  <GivenCountLimit>17</GivenCountLimit>
  <GivenSummaryLimit>18</GivenSummaryLimit>
  <GivenToOne>sample string 7</GivenToOne>
  <PayBillSummaryLimit>5</PayBillSummaryLimit>
  <SourceOfFund>sample string 14</SourceOfFund>
  <SuperimposeMult>sample string 10</SuperimposeMult>
  <UseEndTime>sample string 25</UseEndTime>
  <UseStartTime>sample string 24</UseStartTime>
  <UsedByDays>64</UsedByDays>
  <UsedForBusi>sample string 15</UsedForBusi>
  <UsedForSpecialShop>sample string 16</UsedForSpecialShop>
  <UsedForSpecialTime>sample string 20</UsedForSpecialTime>
  <ValuePointExchangeRate>11</ValuePointExchangeRate>
</CouponTypeAddOrUpdateParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

修改优惠券类型

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.