POST api/EquipmentLease/NewLeaseBill/Add
添加一个租赁单
Request Information
URI Parameters
None.
Body Parameters
ELEquipmentLeaseBillAddParmName | Description | Type | Additional information |
---|---|---|---|
BillNum |
BillNum char(20),/*单据号*/ |
string |
Required |
LeaseDate |
LeaseDate char(8),/*单据日期*/ |
string |
Required |
LeaseTime |
LeaseTime char(6),/*单据时间*/ |
string |
Required |
BusinessFrom |
BusinessFrom char(1),/*业务来源 1-前台业务 2-互联网业务*/ |
string |
Required |
Mobile |
Mobile char(11),/*租赁人手机*/ |
string |
Required |
MemberID |
MemberID varchar(10),/*租赁人会员ID*/ |
string |
None. |
IDNumber |
IDNumber varchar(20),/*租赁人证件号码*/ |
string |
Required |
IDName |
IDName varchar(20),/*租赁人姓名*/ |
string |
Required |
InternetChannels |
InternetChannels char(1),/*互联网渠道 微信或支付宝*/ |
string |
None. |
OpenId |
OpenId varchar(100),/*租赁人OPENID*/ |
string |
None. |
UnionId |
UnionId varchar(100),/*租赁人UNIONID*/ |
string |
None. |
ExpectDate |
ExpectDate char(10),/*预计领取装备时间 YYYYMMDDHH*/ |
string |
None. |
PrereceiptMoney |
PrereceiptMoney numeric(10,2),/*预收租金*/ |
decimal number |
Required |
BillStatus |
BillStatus char(1),/*单据状态 1-下单 2-支付中 3-支付完成 4-正在取件 5-取件完成 6-正在归还 7-归还完成 8-结算完成 9-正在退款/补差 A完成 B 强制完成(租赁人拒不归还,强制结算所有押金,灭失全部租赁装备) F 已关闭*/ |
string |
Required |
CloseReason |
CloseReason char(1),/*关闭原因 1-租赁人关闭 2-超时未支付关闭等*/ |
string |
None. |
Memory |
Memory varchar(100),/*备注*/ |
string |
None. |
Detail |
租赁单明细 |
Collection of ELEquipmentLeaseBillDetailParm |
None. |
Request Formats
application/json, text/json
{ "BillNum": "sample string 1", "LeaseDate": "sample string 2", "LeaseTime": "sample string 3", "BusinessFrom": "sample string 4", "Mobile": "sample string 5", "MemberID": "sample string 6", "IDNumber": "sample string 7", "IDName": "sample string 8", "InternetChannels": "sample string 9", "OpenId": "sample string 10", "UnionId": "sample string 11", "ExpectDate": "sample string 12", "PrereceiptMoney": 13.0, "BillStatus": "sample string 14", "CloseReason": "sample string 15", "Memory": "sample string 16", "Detail": [ { "BillNum": "sample string 1", "DetailId": 2, "EquipmentID": 3, "EquipmentName": "sample string 4", "EquipmentUniqueID": "sample string 5", "BarCodes": "sample string 6", "EquipmentUniqueCode": "sample string 7", "DepotID": "sample string 8", "ShelfNumber": "sample string 9", "DeliveredUser": "sample string 10", "ActualDeliveryDate": "sample string 11", "EquipmentType": "sample string 12", "CategoryCode": "sample string 13", "CategoryName": "sample string 14", "Unit": "sample string 15", "ManagementMode": "sample string 16", "Value": 17.0, "Deposit": 18.0, "Specs": "sample string 19", "ProducingAreas": "sample string 20", "QualityStandards": "sample string 21", "Amount": 22, "RentStatus": "sample string 23", "ReturnTime": "sample string 24", "ReturnDepotID": "sample string 25", "ReturnShelfNumber": "sample string 26", "ReturnUser": "sample string 27", "PackageID": "sample string 28", "PackageName": "sample string 29", "PackageAccount": 64, "CalulationMode": "sample string 31", "LeaseUnitTime": 32, "Price": 33.0, "TimeoutGrace": 34, "CalulationMode2": "sample string 35", "Price2": 36.0, "LeaseUnitTime2": 37, "MaxLeaseTime": 38, "RepentTime": 39, "RentalTimeLong": 40, "RentalFee": 41.0, "DamagedCompensation": 42.0, "ReturnAmount": 43, "ReduceReason": "sample string 44", "ReduceTimeLong": 45, "ReduceMoney": 46.0 }, { "BillNum": "sample string 1", "DetailId": 2, "EquipmentID": 3, "EquipmentName": "sample string 4", "EquipmentUniqueID": "sample string 5", "BarCodes": "sample string 6", "EquipmentUniqueCode": "sample string 7", "DepotID": "sample string 8", "ShelfNumber": "sample string 9", "DeliveredUser": "sample string 10", "ActualDeliveryDate": "sample string 11", "EquipmentType": "sample string 12", "CategoryCode": "sample string 13", "CategoryName": "sample string 14", "Unit": "sample string 15", "ManagementMode": "sample string 16", "Value": 17.0, "Deposit": 18.0, "Specs": "sample string 19", "ProducingAreas": "sample string 20", "QualityStandards": "sample string 21", "Amount": 22, "RentStatus": "sample string 23", "ReturnTime": "sample string 24", "ReturnDepotID": "sample string 25", "ReturnShelfNumber": "sample string 26", "ReturnUser": "sample string 27", "PackageID": "sample string 28", "PackageName": "sample string 29", "PackageAccount": 64, "CalulationMode": "sample string 31", "LeaseUnitTime": 32, "Price": 33.0, "TimeoutGrace": 34, "CalulationMode2": "sample string 35", "Price2": 36.0, "LeaseUnitTime2": 37, "MaxLeaseTime": 38, "RepentTime": 39, "RentalTimeLong": 40, "RentalFee": 41.0, "DamagedCompensation": 42.0, "ReturnAmount": 43, "ReduceReason": "sample string 44", "ReduceTimeLong": 45, "ReduceMoney": 46.0 } ] }
application/xml, text/xml
<ELEquipmentLeaseBillAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <BillNum>sample string 1</BillNum> <BillStatus>sample string 14</BillStatus> <BusinessFrom>sample string 4</BusinessFrom> <CloseReason>sample string 15</CloseReason> <Detail> <ELEquipmentLeaseBillDetailParm> <ActualDeliveryDate>sample string 11</ActualDeliveryDate> <Amount>22</Amount> <BarCodes>sample string 6</BarCodes> <BillNum>sample string 1</BillNum> <CalulationMode>sample string 31</CalulationMode> <CalulationMode2>sample string 35</CalulationMode2> <CategoryCode>sample string 13</CategoryCode> <CategoryName>sample string 14</CategoryName> <DamagedCompensation>42</DamagedCompensation> <DeliveredUser>sample string 10</DeliveredUser> <Deposit>18</Deposit> <DepotID>sample string 8</DepotID> <DetailId>2</DetailId> <EquipmentID>3</EquipmentID> <EquipmentName>sample string 4</EquipmentName> <EquipmentType>sample string 12</EquipmentType> <EquipmentUniqueCode>sample string 7</EquipmentUniqueCode> <EquipmentUniqueID>sample string 5</EquipmentUniqueID> <LeaseUnitTime>32</LeaseUnitTime> <LeaseUnitTime2>37</LeaseUnitTime2> <ManagementMode>sample string 16</ManagementMode> <MaxLeaseTime>38</MaxLeaseTime> <PackageAccount>64</PackageAccount> <PackageID>sample string 28</PackageID> <PackageName>sample string 29</PackageName> <Price>33</Price> <Price2>36</Price2> <ProducingAreas>sample string 20</ProducingAreas> <QualityStandards>sample string 21</QualityStandards> <ReduceMoney>46</ReduceMoney> <ReduceReason>sample string 44</ReduceReason> <ReduceTimeLong>45</ReduceTimeLong> <RentStatus>sample string 23</RentStatus> <RentalFee>41</RentalFee> <RentalTimeLong>40</RentalTimeLong> <RepentTime>39</RepentTime> <ReturnAmount>43</ReturnAmount> <ReturnDepotID>sample string 25</ReturnDepotID> <ReturnShelfNumber>sample string 26</ReturnShelfNumber> <ReturnTime>sample string 24</ReturnTime> <ReturnUser>sample string 27</ReturnUser> <ShelfNumber>sample string 9</ShelfNumber> <Specs>sample string 19</Specs> <TimeoutGrace>34</TimeoutGrace> <Unit>sample string 15</Unit> <Value>17</Value> </ELEquipmentLeaseBillDetailParm> <ELEquipmentLeaseBillDetailParm> <ActualDeliveryDate>sample string 11</ActualDeliveryDate> <Amount>22</Amount> <BarCodes>sample string 6</BarCodes> <BillNum>sample string 1</BillNum> <CalulationMode>sample string 31</CalulationMode> <CalulationMode2>sample string 35</CalulationMode2> <CategoryCode>sample string 13</CategoryCode> <CategoryName>sample string 14</CategoryName> <DamagedCompensation>42</DamagedCompensation> <DeliveredUser>sample string 10</DeliveredUser> <Deposit>18</Deposit> <DepotID>sample string 8</DepotID> <DetailId>2</DetailId> <EquipmentID>3</EquipmentID> <EquipmentName>sample string 4</EquipmentName> <EquipmentType>sample string 12</EquipmentType> <EquipmentUniqueCode>sample string 7</EquipmentUniqueCode> <EquipmentUniqueID>sample string 5</EquipmentUniqueID> <LeaseUnitTime>32</LeaseUnitTime> <LeaseUnitTime2>37</LeaseUnitTime2> <ManagementMode>sample string 16</ManagementMode> <MaxLeaseTime>38</MaxLeaseTime> <PackageAccount>64</PackageAccount> <PackageID>sample string 28</PackageID> <PackageName>sample string 29</PackageName> <Price>33</Price> <Price2>36</Price2> <ProducingAreas>sample string 20</ProducingAreas> <QualityStandards>sample string 21</QualityStandards> <ReduceMoney>46</ReduceMoney> <ReduceReason>sample string 44</ReduceReason> <ReduceTimeLong>45</ReduceTimeLong> <RentStatus>sample string 23</RentStatus> <RentalFee>41</RentalFee> <RentalTimeLong>40</RentalTimeLong> <RepentTime>39</RepentTime> <ReturnAmount>43</ReturnAmount> <ReturnDepotID>sample string 25</ReturnDepotID> <ReturnShelfNumber>sample string 26</ReturnShelfNumber> <ReturnTime>sample string 24</ReturnTime> <ReturnUser>sample string 27</ReturnUser> <ShelfNumber>sample string 9</ShelfNumber> <Specs>sample string 19</Specs> <TimeoutGrace>34</TimeoutGrace> <Unit>sample string 15</Unit> <Value>17</Value> </ELEquipmentLeaseBillDetailParm> </Detail> <ExpectDate>sample string 12</ExpectDate> <IDName>sample string 8</IDName> <IDNumber>sample string 7</IDNumber> <InternetChannels>sample string 9</InternetChannels> <LeaseDate>sample string 2</LeaseDate> <LeaseTime>sample string 3</LeaseTime> <MemberID>sample string 6</MemberID> <Memory>sample string 16</Memory> <Mobile>sample string 5</Mobile> <OpenId>sample string 10</OpenId> <PrereceiptMoney>13</PrereceiptMoney> <UnionId>sample string 11</UnionId> </ELEquipmentLeaseBillAddParm>
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.