POST api/UnPos/Merchant/Customer/CalculateBill/Add
添加一个客户单位结算单
Request Information
URI Parameters
None.
Body Parameters
UnPosCustomerCalculateAddParmName | Description | Type | Additional information |
---|---|---|---|
BillNum |
单据号 |
string |
Required |
MerchantId |
商户ID |
integer |
Required |
ShopId |
门店ID |
string |
Required |
HappenDate |
结算日期 yyyymmdd |
string |
Required |
HappenTime |
结算时间 hhmmss |
string |
Required |
CustomerType |
单位类型 |
string |
Required |
CustomerId |
单位ID |
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", "CustomerType": "sample string 6", "CustomerId": "sample string 7", "CalUserType": "sample string 8", "Memory": "sample string 9", "IsPayByCash": "sample string 10", "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:
<UnPosCustomerCalculateAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos"> <BillNum>sample string 1</BillNum> <CalUserType>sample string 8</CalUserType> <CustomerId>sample string 7</CustomerId> <CustomerType>sample string 6</CustomerType> <Details xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <d2p1:UnPosAddGuiderCalculateDetailParm> <d2p1:Amount>14</d2p1:Amount> <d2p1:AutoId>3</d2p1:AutoId> <d2p1:BarCode>sample string 7</d2p1:BarCode> <d2p1:BillNum>sample string 1</d2p1:BillNum> <d2p1:CalPrice>18</d2p1:CalPrice> <d2p1:ListingPrice>15</d2p1:ListingPrice> <d2p1:LowestRetailPrice>17</d2p1:LowestRetailPrice> <d2p1:MerchantId>4</d2p1:MerchantId> <d2p1:ProducingArea>sample string 11</d2p1:ProducingArea> <d2p1:ProductId>6</d2p1:ProductId> <d2p1:ProductName>sample string 9</d2p1:ProductName> <d2p1:QualityLevel>sample string 12</d2p1:QualityLevel> <d2p1:RetailPrice>16</d2p1:RetailPrice> <d2p1:SellBillNum>sample string 2</d2p1:SellBillNum> <d2p1:SellType>sample string 8</d2p1:SellType> <d2p1:ShopId>sample string 5</d2p1:ShopId> <d2p1:Standard>sample string 10</d2p1:Standard> <d2p1:Unit>sample string 13</d2p1:Unit> </d2p1:UnPosAddGuiderCalculateDetailParm> <d2p1:UnPosAddGuiderCalculateDetailParm> <d2p1:Amount>14</d2p1:Amount> <d2p1:AutoId>3</d2p1:AutoId> <d2p1:BarCode>sample string 7</d2p1:BarCode> <d2p1:BillNum>sample string 1</d2p1:BillNum> <d2p1:CalPrice>18</d2p1:CalPrice> <d2p1:ListingPrice>15</d2p1:ListingPrice> <d2p1:LowestRetailPrice>17</d2p1:LowestRetailPrice> <d2p1:MerchantId>4</d2p1:MerchantId> <d2p1:ProducingArea>sample string 11</d2p1:ProducingArea> <d2p1:ProductId>6</d2p1:ProductId> <d2p1:ProductName>sample string 9</d2p1:ProductName> <d2p1:QualityLevel>sample string 12</d2p1:QualityLevel> <d2p1:RetailPrice>16</d2p1:RetailPrice> <d2p1:SellBillNum>sample string 2</d2p1:SellBillNum> <d2p1:SellType>sample string 8</d2p1:SellType> <d2p1:ShopId>sample string 5</d2p1:ShopId> <d2p1:Standard>sample string 10</d2p1:Standard> <d2p1:Unit>sample string 13</d2p1:Unit> </d2p1:UnPosAddGuiderCalculateDetailParm> </Details> <HappenDate>sample string 4</HappenDate> <HappenTime>sample string 5</HappenTime> <IsPayByCash>sample string 10</IsPayByCash> <Memory>sample string 9</Memory> <MerchantId>2</MerchantId> <ShopId>sample string 3</ShopId> </UnPosCustomerCalculateAddParm>
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.