POST api/UnPos/Merchant/Guider/CalculateBill/Add
添加一个导游结算单
Request Information
URI Parameters
None.
Body Parameters
UnPosAddGuiderCalculateParmName | Description | Type | Additional information |
---|---|---|---|
BillNum |
单据号 |
string |
Required |
MerchantId |
商户ID |
integer |
Required |
ShopId |
门店ID |
string |
Required |
HappenDate |
结算日期 yyyymmdd |
string |
Required |
HappenTime |
结算时间 hhmmss |
string |
Required |
GuiderNumber |
导游证号 |
string |
Required |
CalUserType |
核算人类型 1-平台(出租人)执行返利 2-商户执行返利 |
string |
Required |
Memory |
备注 |
string |
None. |
IsPayByCash |
是否现金付清 |
string |
None. |
Details |
导游结算条目清单。 |
Collection of UnPosAddGuiderCalculateDetailParm |
None. |
Request Formats
application/json, text/json
Sample:
{ "BillNum": "sample string 1", "MerchantId": 2, "ShopId": "sample string 3", "HappenDate": "sample string 4", "HappenTime": "sample string 5", "GuiderNumber": "sample string 6", "CalUserType": "sample string 7", "Memory": "sample string 8", "IsPayByCash": "sample string 9", "Details": [ { "BillNum": "sample string 1", "SellBillNum": "sample string 2", "AutoId": 3, "MerchantId": 4, "ShopId": "sample string 5", "ProductId": 6, "BarCode": "sample string 7", "SellType": "sample string 8", "ProductName": "sample string 9", "Standard": "sample string 10", "ProducingArea": "sample string 11", "QualityLevel": "sample string 12", "Unit": "sample string 13", "Amount": 14.0, "ListingPrice": 15.0, "RetailPrice": 16.0, "LowestRetailPrice": 17.0, "CalPrice": 18.0 }, { "BillNum": "sample string 1", "SellBillNum": "sample string 2", "AutoId": 3, "MerchantId": 4, "ShopId": "sample string 5", "ProductId": 6, "BarCode": "sample string 7", "SellType": "sample string 8", "ProductName": "sample string 9", "Standard": "sample string 10", "ProducingArea": "sample string 11", "QualityLevel": "sample string 12", "Unit": "sample string 13", "Amount": 14.0, "ListingPrice": 15.0, "RetailPrice": 16.0, "LowestRetailPrice": 17.0, "CalPrice": 18.0 } ] }
application/xml, text/xml
Sample:
<UnPosAddGuiderCalculateParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <BillNum>sample string 1</BillNum> <CalUserType>sample string 7</CalUserType> <Details> <UnPosAddGuiderCalculateDetailParm> <Amount>14</Amount> <AutoId>3</AutoId> <BarCode>sample string 7</BarCode> <BillNum>sample string 1</BillNum> <CalPrice>18</CalPrice> <ListingPrice>15</ListingPrice> <LowestRetailPrice>17</LowestRetailPrice> <MerchantId>4</MerchantId> <ProducingArea>sample string 11</ProducingArea> <ProductId>6</ProductId> <ProductName>sample string 9</ProductName> <QualityLevel>sample string 12</QualityLevel> <RetailPrice>16</RetailPrice> <SellBillNum>sample string 2</SellBillNum> <SellType>sample string 8</SellType> <ShopId>sample string 5</ShopId> <Standard>sample string 10</Standard> <Unit>sample string 13</Unit> </UnPosAddGuiderCalculateDetailParm> <UnPosAddGuiderCalculateDetailParm> <Amount>14</Amount> <AutoId>3</AutoId> <BarCode>sample string 7</BarCode> <BillNum>sample string 1</BillNum> <CalPrice>18</CalPrice> <ListingPrice>15</ListingPrice> <LowestRetailPrice>17</LowestRetailPrice> <MerchantId>4</MerchantId> <ProducingArea>sample string 11</ProducingArea> <ProductId>6</ProductId> <ProductName>sample string 9</ProductName> <QualityLevel>sample string 12</QualityLevel> <RetailPrice>16</RetailPrice> <SellBillNum>sample string 2</SellBillNum> <SellType>sample string 8</SellType> <ShopId>sample string 5</ShopId> <Standard>sample string 10</Standard> <Unit>sample string 13</Unit> </UnPosAddGuiderCalculateDetailParm> </Details> <GuiderNumber>sample string 6</GuiderNumber> <HappenDate>sample string 4</HappenDate> <HappenTime>sample string 5</HappenTime> <IsPayByCash>sample string 9</IsPayByCash> <Memory>sample string 8</Memory> <MerchantId>2</MerchantId> <ShopId>sample string 3</ShopId> </UnPosAddGuiderCalculateParm>
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.