POST api/UnPos/Shop/Deduction/Add
向T_UnPos_Shop_Deduction中插入一个记录。
Request Information
URI Parameters
None.
Body Parameters
被插入的内容。
UnPos_Shop_DeductionItemName | Description | Type | Additional information |
---|---|---|---|
MerchantId |
商户ID |
integer |
Required |
ShopId |
门店的ID |
string |
Required Max length: 4 |
ItemName |
缴费/扣除项名 |
string |
Required Max length: 40 |
BaseDeductible |
基数 |
decimal number |
Required |
DefaultAmount |
默认计收数量 |
decimal number |
None. |
BaseUnit |
计收单位 |
string |
Max length: 20 |
CalculateCycle |
计缴周期 |
string |
Required Max length: 1 |
Reserve1 |
保留一 |
string |
Max length: 50 |
Reserve2 |
保留二 |
string |
Max length: 50 |
Request Formats
application/json, text/json
Sample:
{ "MerchantId": 1, "ShopId": "sample string 2", "ItemName": "sample string 3", "BaseDeductible": 4.0, "DefaultAmount": 1.0, "BaseUnit": "sample string 5", "CalculateCycle": "sample string 6", "Reserve1": "sample string 7", "Reserve2": "sample string 8" }
application/xml, text/xml
Sample:
<UnPos_Shop_DeductionItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.UnPos"> <BaseDeductible>4</BaseDeductible> <BaseUnit>sample string 5</BaseUnit> <CalculateCycle>sample string 6</CalculateCycle> <DefaultAmount>1</DefaultAmount> <ItemName>sample string 3</ItemName> <MerchantId>1</MerchantId> <Reserve1>sample string 7</Reserve1> <Reserve2>sample string 8</Reserve2> <ShopId>sample string 2</ShopId> </UnPos_Shop_DeductionItem>
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
向T_UnPos_Shop_Deduction中插入一个记录。
CommonOperationResultName | Description | Type | Additional 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.