POST api/UnPos/Merchant/Shop/ProductSetPrice/V/Add
某个商户向系统中添加一个调价单
Request Information
URI Parameters
None.
Body Parameters
新增的调价单的信息。
MerhcantShopProductSetPriceAddParmName | Description | Type | Additional information |
---|---|---|---|
ProductId |
商品ID int NOT NULL. |
integer |
Required |
ShopId |
门店ID Char(4) NOT NULL. |
string |
Required Max length: 4 |
BillNum |
单据号 char(20) NOT NULL. |
string |
Required Max length: 20 |
StartTime |
开始调价的起始时间 char(14) NOT NULL. |
string |
Required Max length: 14 |
Forever |
是否永久 char(1) NOT NULL. |
string |
Required Max length: 1 |
EndTime |
生效截止时间 char(14) Forever =0’时此值才有意义 |
string |
Max length: 14 |
Unit |
计量单位 Varchar(8) NOT NULL. |
string |
Required Max length: 8 |
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. |
RetailPrice |
零售价 Numeric(8,2) NN |
decimal number |
Required |
LowestRetailPrice |
零售底价 Numeric(8,2) NN |
decimal number |
Required |
Memory |
备注 Varchar(100) |
string |
Max length: 100 |
UserCode | integer |
Required |
Request Formats
application/json, text/json
{ "ProductId": 1, "ShopId": "sample string 2", "BillNum": "sample string 3", "StartTime": "sample string 4", "Forever": "sample string 5", "EndTime": "sample string 6", "Unit": "sample string 7", "ApplyToObject": "sample string 8", "MemberLimitLevel": 64, "IsSellAmountLimit": "sample string 10", "PerBillAmountLimit": 11.0, "PerBillAmountLimitType": "sample string 12", "PerAmountSummaryLimit": 13.0, "RetailPrice": 14.0, "LowestRetailPrice": 15.0, "Memory": "sample string 16", "UserCode": 17 }
application/xml, text/xml
<MerhcantShopProductSetPriceAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <ApplyToObject>sample string 8</ApplyToObject> <BillNum>sample string 3</BillNum> <EndTime>sample string 6</EndTime> <Forever>sample string 5</Forever> <IsSellAmountLimit>sample string 10</IsSellAmountLimit> <LowestRetailPrice>15</LowestRetailPrice> <MemberLimitLevel>64</MemberLimitLevel> <Memory>sample string 16</Memory> <PerAmountSummaryLimit>13</PerAmountSummaryLimit> <PerBillAmountLimit>11</PerBillAmountLimit> <PerBillAmountLimitType>sample string 12</PerBillAmountLimitType> <ProductId>1</ProductId> <RetailPrice>14</RetailPrice> <ShopId>sample string 2</ShopId> <StartTime>sample string 4</StartTime> <Unit>sample string 7</Unit> <UserCode>17</UserCode> </MerhcantShopProductSetPriceAddParm>
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.