POST api/UnPos/Shop/CardCode/Bill/Add
添加一个联营零售售货单(码牌)
Request Information
URI Parameters
None.
Body Parameters
UnPosShopCodeCardBillAddName | Description | Type | Additional information |
---|---|---|---|
MerchantId |
商户ID |
integer |
None. |
ShopId |
门店ID |
string |
None. |
BillNum |
单据号 |
string |
Required |
BusiFrom |
交易来源 1-前台 2-互联网 |
string |
Required |
DayIndexCode |
当日的订单序号码 |
string |
Required |
BusiFromSubType |
子交易来源 1-营业员小程序 2-码牌 |
string |
None. |
CodeCardType |
码牌类型 P-门店快捷码牌,C公共码牌,T-门店桌面码牌 |
string |
None. |
CardId |
码牌ID |
string |
None. |
CardName |
码牌名/桌台号 |
string |
None. |
TableOrCallNum |
等号牌或餐台 |
string |
None. |
HappenDate |
发生日期 |
string |
Required |
HappenTime |
发生时间 |
string |
Required |
GuiderNumber |
导游证号 |
string |
None. |
CustomerType |
客户类型 |
string |
None. |
CustomerId |
客户单位ID |
string |
None. |
RebateMode |
返利模式 1-允许(门店自行返利),2-允许(出租人统一返利),0禁止。 |
string |
Required |
PersonalMemberId |
会员ID |
integer |
None. |
Details |
售货明细 |
Collection of MerchantShopSellBillDetailParm |
None. |
Request Formats
application/json, text/json
Sample:
{ "MerchantId": 1, "ShopId": "sample string 2", "BillNum": "sample string 3", "BusiFrom": "sample string 4", "DayIndexCode": "sample string 5", "BusiFromSubType": "sample string 6", "CodeCardType": "sample string 7", "CardId": "sample string 8", "CardName": "sample string 9", "TableOrCallNum": "sample string 10", "HappenDate": "sample string 11", "HappenTime": "sample string 12", "GuiderNumber": "sample string 13", "CustomerType": "sample string 14", "CustomerId": "sample string 15", "RebateMode": "sample string 16", "PersonalMemberId": 17, "Details": [ { "ProductId": 1, "Unit": "sample string 2", "Standard": "sample string 3", "Amount": 4.0, "RetailPrice": 5.0, "LowestRentailPrice": 6.0, "Reserve1": "sample string 7", "Reserve2": "sample string 8" }, { "ProductId": 1, "Unit": "sample string 2", "Standard": "sample string 3", "Amount": 4.0, "RetailPrice": 5.0, "LowestRentailPrice": 6.0, "Reserve1": "sample string 7", "Reserve2": "sample string 8" } ] }
application/xml, text/xml
Sample:
<UnPosShopCodeCardBillAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <BillNum>sample string 3</BillNum> <BusiFrom>sample string 4</BusiFrom> <BusiFromSubType>sample string 6</BusiFromSubType> <CardId>sample string 8</CardId> <CardName>sample string 9</CardName> <CodeCardType>sample string 7</CodeCardType> <CustomerId>sample string 15</CustomerId> <CustomerType>sample string 14</CustomerType> <DayIndexCode>sample string 5</DayIndexCode> <Details> <MerchantShopSellBillDetailParm> <Amount>4</Amount> <LowestRentailPrice>6</LowestRentailPrice> <ProductId>1</ProductId> <Reserve1>sample string 7</Reserve1> <Reserve2>sample string 8</Reserve2> <RetailPrice>5</RetailPrice> <Standard>sample string 3</Standard> <Unit>sample string 2</Unit> </MerchantShopSellBillDetailParm> <MerchantShopSellBillDetailParm> <Amount>4</Amount> <LowestRentailPrice>6</LowestRentailPrice> <ProductId>1</ProductId> <Reserve1>sample string 7</Reserve1> <Reserve2>sample string 8</Reserve2> <RetailPrice>5</RetailPrice> <Standard>sample string 3</Standard> <Unit>sample string 2</Unit> </MerchantShopSellBillDetailParm> </Details> <GuiderNumber>sample string 13</GuiderNumber> <HappenDate>sample string 11</HappenDate> <HappenTime>sample string 12</HappenTime> <PersonalMemberId>17</PersonalMemberId> <RebateMode>sample string 16</RebateMode> <TableOrCallNum>sample string 10</TableOrCallNum> <MerchantId>1</MerchantId> <ShopId>sample string 2</ShopId> </UnPosShopCodeCardBillAdd>
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
添加一个联营零售售货单(码牌)
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.