POST api/UnPos/Merchant/Shop/ProductClassDiscount/Add
商品类别限时打折
Request Information
URI Parameters
None.
Body Parameters
MerhcantShopProductClassDiscountParmName | Description | Type | Additional information |
---|---|---|---|
ProductId |
商品ID int NOT NULL. |
integer |
Required |
ShopId |
门店ID Char(4) NOT NULL. |
string |
Required Max length: 4 |
ProductClassCode |
商品类别 Char(6) NOT NULL. |
string |
Required Max length: 6 |
ApplyToObject |
适用对象 char(1) NOT NULL. |
string |
Required Max length: 1 |
MemberLimitLevel |
限定最低会员等级 Byte |
byte |
None. |
IsSellAmountLimit |
是否启用每单购买数量限制 char(1) NOT NULL. |
string |
Required Max length: 1 |
PerBillAmountLimit |
每单购买数量限制 Numeric(8,4) 当IsSellSummaryLimit=‘1’,此值有意义。表示依据下面的两个字段来限制购买。 |
decimal number |
None. |
PerBillAmountLimitType |
每单购买金额许可模式 char(1) N不限制,P每单限制;A达到许可金额后可以购买限制数量的本商品;B每倍许可金额阀值可以购买指定数量的商品。 |
string |
None. |
PerAmountSummaryLimit |
许可购买金额阀值 Numeric(12,2) |
decimal number |
None. |
Memory |
备注 Varchar(100) |
string |
Max length: 100 |
UserCode |
用户代码 int |
integer |
Required |
Start |
限时打折的起始时间 char(14) NOT NULL. |
string |
Required Max length: 14 |
End |
限时打折的截止时间 char(14) NOT NULL. |
string |
Required Max length: 14 |
Discount |
折扣 Numeric(8,2) NN |
decimal number |
Required |
IsIgnore |
是否忽略价格不存在的情况 char(1) NN |
string |
Required Max length: 1 |
Request Formats
application/json, text/json
{ "ProductId": 1, "ShopId": "sample string 2", "ProductClassCode": "sample string 3", "ApplyToObject": "sample string 4", "MemberLimitLevel": 64, "IsSellAmountLimit": "sample string 6", "PerBillAmountLimit": 7.0, "PerBillAmountLimitType": "sample string 8", "PerAmountSummaryLimit": 9.0, "Memory": "sample string 10", "UserCode": 11, "Start": "sample string 12", "End": "sample string 13", "Discount": 14.0, "IsIgnore": "sample string 15" }
application/xml, text/xml
<MerhcantShopProductClassDiscountParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <ApplyToObject>sample string 4</ApplyToObject> <Discount>14</Discount> <End>sample string 13</End> <IsIgnore>sample string 15</IsIgnore> <IsSellAmountLimit>sample string 6</IsSellAmountLimit> <MemberLimitLevel>64</MemberLimitLevel> <Memory>sample string 10</Memory> <PerAmountSummaryLimit>9</PerAmountSummaryLimit> <PerBillAmountLimit>7</PerBillAmountLimit> <PerBillAmountLimitType>sample string 8</PerBillAmountLimitType> <ProductClassCode>sample string 3</ProductClassCode> <ProductId>1</ProductId> <ShopId>sample string 2</ShopId> <Start>sample string 12</Start> <UserCode>11</UserCode> </MerhcantShopProductClassDiscountParm>
application/x-www-form-urlencoded
Sample not available.
application/bson
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
商品类别限时打折
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
<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
Binary JSON content. See http://bsonspec.org for details.