POST api/EcoCar/Busi/SellBill/CreateNew
向系统中添加一个购票请求,在支付前,必须执行这个API,不论是哪一种支付方式。需要判断这个API的返回值 ,errcode=0表示成功,TAG值中将返回本次创建的订购单。 这个API需要使用全局参数:EcoCar_SellStationId , 售票站点ID EcoCar_MarketAreaId 市场区划ID EcoCar_TeamTypeCode 团队类型代码
Request Information
URI Parameters
None.
Body Parameters
购票请求
EcoCarSellBillNewParmName | Description | Type | Additional information |
---|---|---|---|
classid |
班次的ID |
string |
Required Max length: 12 |
siteid |
当前站点,这个参数暂时没有用,如果分段计费,则此参数将会有用 |
string |
Max length: 4 |
ticketypeid |
门票类型ID。 |
string |
Required Max length: 36 |
price |
价格. |
decimal number |
Required |
amount |
数量. 不能超过当前当班车辆的坐位数。 |
integer |
Required |
unionid |
当用户自主购票时,这个值为UNIONID |
string |
Max length: 50 |
busitype |
业务类型 1-手持机扫码购票;2客户自主手机购票。 |
string |
Required Max length: 1 |
clienttype |
客户端类型,WECHAT或ALI |
string |
Required Max length: 6 |
Request Formats
application/json, text/json
{ "classid": "sample string 1", "siteid": "sample string 2", "ticketypeid": "sample string 3", "price": 4.0, "amount": 5, "unionid": "sample string 6", "busitype": "sample string 7", "clienttype": "sample string 8" }
application/xml, text/xml
<EcoCarSellBillNewParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.EcoCar"> <amount>5</amount> <busitype>sample string 7</busitype> <classid>sample string 1</classid> <clienttype>sample string 8</clienttype> <price>4</price> <siteid>sample string 2</siteid> <ticketypeid>sample string 3</ticketypeid> <unionid>sample string 6</unionid> </EcoCarSellBillNewParm>
application/x-www-form-urlencoded
Sample not available.
application/bson
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
向系统中添加一个购票请求,在支付前,必须执行这个API,不论是哪一种支付方式。需要判断这个API的返回值 ,errcode=0表示成功,TAG值中将返回本次创建的订购单。 这个API需要使用全局参数:EcoCar_SellStationId , 售票站点ID EcoCar_MarketAreaId 市场区划ID EcoCar_TeamTypeCode 团队类型代码
CommonOperationResultWithTagOfEcoCarSellBillItemResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | EcoCarSellBillItemResult |
None. |
Response Formats
application/json, text/json
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "classid": "sample string 1", "presellticketnum": "sample string 2", "sellticketnum": "sample string 3", "begindate": "sample string 4", "begintime": "sample string 5", "userloginname": "sample string 6", "sellstationid": "sample string 7", "marketareaid": "sample string 8", "teamtypecode": "sample string 9", "ticketypeid": "sample string 10", "tickettypename": "sample string 11", "ticketgroupname": "sample string 12", "price": 13.0, "amount": 14, "paybegintime": "sample string 15", "paymentid": "sample string 16", "paymenttypeid": "sample string 17", "payendtime": "sample string 18", "converttime": "sample string 19", "convertstate": "sample string 20", "busitype": "sample string 21", "unionid": "sample string 22", "clienttype": "sample string 23" } }
application/xml, text/xml
<CommonOperationResultWithTagOfEcoCarSellBillItemResultguOp_Pzk_S 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.EcoCar"> <d2p1:amount>14</d2p1:amount> <d2p1:begindate>sample string 4</d2p1:begindate> <d2p1:begintime>sample string 5</d2p1:begintime> <d2p1:busitype>sample string 21</d2p1:busitype> <d2p1:classid>sample string 1</d2p1:classid> <d2p1:clienttype>sample string 23</d2p1:clienttype> <d2p1:convertstate>sample string 20</d2p1:convertstate> <d2p1:converttime>sample string 19</d2p1:converttime> <d2p1:marketareaid>sample string 8</d2p1:marketareaid> <d2p1:paybegintime>sample string 15</d2p1:paybegintime> <d2p1:payendtime>sample string 18</d2p1:payendtime> <d2p1:paymentid>sample string 16</d2p1:paymentid> <d2p1:paymenttypeid>sample string 17</d2p1:paymenttypeid> <d2p1:presellticketnum>sample string 2</d2p1:presellticketnum> <d2p1:price>13</d2p1:price> <d2p1:sellstationid>sample string 7</d2p1:sellstationid> <d2p1:sellticketnum>sample string 3</d2p1:sellticketnum> <d2p1:teamtypecode>sample string 9</d2p1:teamtypecode> <d2p1:ticketgroupname>sample string 12</d2p1:ticketgroupname> <d2p1:tickettypename>sample string 11</d2p1:tickettypename> <d2p1:ticketypeid>sample string 10</d2p1:ticketypeid> <d2p1:unionid>sample string 22</d2p1:unionid> <d2p1:userloginname>sample string 6</d2p1:userloginname> </tag> </CommonOperationResultWithTagOfEcoCarSellBillItemResultguOp_Pzk_S>
application/bson
Binary JSON content. See http://bsonspec.org for details.