确认出票
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param | BookTicketConfirmRQ | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | TapResult | rs | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TrainAgentOrderConfirmRequest req = new TrainAgentOrderConfirmRequest(); TrainAgentOrderConfirmRequest.BookTicketConfirmRQ obj1 = new TrainAgentOrderConfirmRequest.BookTicketConfirmRQ(); List<TrainAgentOrderConfirmRequest.TicketDTO> list3 = new ArrayList<TrainAgentOrderConfirmRequest.TicketDTO>(); TrainAgentOrderConfirmRequest.TicketDTO obj4 = new TrainAgentOrderConfirmRequest.TicketDTO(); list3.add(obj4); obj4.setTtpOrderId(1234L); obj4.setSubOrderId(12345L); obj4.setSequenceNo( "E12434343" ); obj4.setSeatNo( "05" ); obj4.setCoachNo( "04" ); obj4.setBatchNo( "1" ); obj4.setTicketTypeCode( "1" ); obj4.setTtpSubOrderId(43535354L); obj4.setRealSeatTypeCode( "1" ); obj4.setRealTicketPrice(12100L); obj1.setTickets(list3); obj1.setTtpOrderId(1234L); obj1.setVipSettlementModeCode(0L); obj1.setAliPayTradeNo( "453534534" ); obj1.setAliPayAccount( "545353@qq.com" ); obj1.setCanChange( false ); obj1.setFlatMsg( "04检票口" ); req.setParam(obj1); TrainAgentOrderConfirmResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < train_agent_order_confirm_response > < result > < success >false</ success > < error_code >-1</ error_code > < error_msg >系统错误</ error_msg > </ result > </ train_agent_order_confirm_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|