qimen.taobao.xhotel.futurehotel.invoice (未来酒店-预约发票)

未来酒店-预约发票

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
UpdateRQ UpdateRQ 可选
  • AuthenticationToken
  • AuthenticationToken
  • 可选
  • └ Username
  • String
  • 可选
  • taobao
  • taobao
  • └ Password
  • String
  • 可选
  • taobao
  • taobao
  • └ CreateToken
  • String
  • 可选
  • taobao1387784033263-1387784033266
  • taobao1387784033263-1387784033266
  • └ TaoBaoOrderId
  • Number
  • 可选
  • 1387784033263
  • 1387784033263
  • └ OrderId
  • String
  • 可选
  • R387784033263
  • R387784033263
  • └ RequestID
  • String
  • 可选
  • 请求唯一标识,此值需要在结果中返回
  • 请求唯一标识,此值需要在结果中返回
  • └ HotelCode
  • String
  • 可选
  • 外部酒店编码
  • 外部酒店编码
  • └ OperateType
  • Number
  • 可选
  • 1
  • 1
  • └ Action
  • Number
  • 可选
  • 0
  • 0
  • └ DisplayText
  • String
  • 可选
  • 用户张三需要提前准备发票
  • 用户张三需要提前准备发票
  • Invoice
  • Invoice
  • 可选
  • 预约发票
  • └ InvoiceType
  • String
  • 可选
  • 发票类型(1:普通发票;2:增值税专用发票,)
  • 发票类型(1:普通发票;2:增值税专用发票,)
  • └ InvoiceTitle
  • String
  • 可选
  • 阿里巴巴集团
  • 阿里巴巴集团
  • └ TaxpayerID
  • String
  • 可选
  • 纳税人识别号:纳税人识别号,一律由15位、18或者20位码(字符型)组成。
  • 纳税人识别号:纳税人识别号,一律由15位、18或者20位码(字符型)组成。
  • └ RegAddress
  • String
  • 可选
  • 公司注册地址:抬头公司注册地址
  • 公司注册地址:抬头公司注册地址
  • └ CompanyTel
  • String
  • 可选
  • 公司电话:抬头公司电话,区号-电话号码
  • 公司电话:抬头公司电话,区号-电话号码
  • └ BankName
  • String
  • 可选
  • 开户行: 抬头公司银行开户行名称
  • 开户行: 抬头公司银行开户行名称
  • └ BankAccount
  • String
  • 可选
  • 银行账户:抬头公司银行账号
  • 银行账户:抬头公司银行账号
  • └ PostType
  • Number
  • 可选
  • 0
  • 0
  • └ EarlyPrepare
  • Number
  • 可选
  • 0
  • 0
  • └ ReceiverName
  • String
  • 可选
  • 张三
  • 张三
  • └ ReceiverMobile
  • Number
  • 可选
  • 13601083188
  • 13601083188
  • └ ReceiverAddress
  • String
  • 可选
  • 北京国家广告产业园B座
  • 北京国家广告产业园B座
  • └ Provider
  • Number
  • 可选
  • 1
  • 1
  • └ Payer
  • Number
  • 可选
  • 1
  • 1
  • └ WantTime
  • String
  • 可选
  • 需要发票时间(格式yyyy-MM-dd HH:mm:ss)
  • 需要发票时间(格式yyyy-MM-dd HH:mm:ss)
  • └ Comment
  • String
  • 可选
  • 备注信息
  • 备注信息
  • └ Extensions
  • String
  • 可选
  • 扩展值
sellerId String 可选 1234 卖家id
hid String 可选 1234 酒店Id
vendor String 可选 chinaonline 系统商
pmsType String 可选 11 pms类型

响应参数

名称 类型 示例值 描述
Result Result
  • └ Message
  • String
  • 描述
  • 描述
  • └ ResultCode
  • String
  • 0
  • 0:成功;1:失败;101:订单还未下达酒店PMS,请稍后再试
  • └ OrderId
  • String
  • 商家外部订单号
  • 商家外部订单号

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
TaobaoXhotelFuturehotelInvoiceRequest req = new TaobaoXhotelFuturehotelInvoiceRequest();
TaobaoXhotelFuturehotelInvoiceRequest.UpdateRQ obj1 = new TaobaoXhotelFuturehotelInvoiceRequest.UpdateRQ();
TaobaoXhotelFuturehotelInvoiceRequest.AuthenticationToken obj2 = new TaobaoXhotelFuturehotelInvoiceRequest.AuthenticationToken();
obj2.setsername("taobao");
obj2.setassword("taobao");
obj2.setreateToken("taobao1387784033263-1387784033266");
obj1.setuthenticationToken(obj2);
obj1.setaoBaoOrderId(1387784033263L);
obj1.setrderId("R387784033263");
obj1.setequestID("请求唯一标识,此值需要在结果中返回");
obj1.setotelCode("外部酒店编码");
obj1.setperateType(1L);
obj1.setction(0L);
obj1.setisplayText("用户张三需要提前准备发票");
TaobaoXhotelFuturehotelInvoiceRequest.Invoice obj3 = new TaobaoXhotelFuturehotelInvoiceRequest.Invoice();
obj3.setnvoiceType("发票类型(1:普通发票;2:增值税专用发票,)");
obj3.setnvoiceTitle("阿里巴巴集团");
obj3.setaxpayerID("纳税人识别号:纳税人识别号,一律由15位、18或者20位码(字符型)组成。");
obj3.setegAddress("公司注册地址:抬头公司注册地址");
obj3.setompanyTel("公司电话:抬头公司电话,区号-电话号码");
obj3.setankName("开户行: 抬头公司银行开户行名称");
obj3.setankAccount("银行账户:抬头公司银行账号");
obj3.setostType(0L);
obj3.setarlyPrepare(0L);
obj3.seteceiverName("张三");
obj3.seteceiverMobile(13601083188L);
obj3.seteceiverAddress("北京国家广告产业园B座");
obj3.setrovider(1L);
obj3.setayer(1L);
obj3.setantTime("需要发票时间(格式yyyy-MM-dd HH:mm:ss)");
obj3.setomment("备注信息");
obj1.setnvoice(obj3);
obj1.setxtensions("无");
req.setpdateRQ(obj1);
req.setSellerId("1234");
req.setHid("1234");
req.setVendor("chinaonline");
req.setPmsType("11");
TaobaoXhotelFuturehotelInvoiceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<Result>
    <Message>描述</Message>
    <ResultCode>0</ResultCode>
    <OrderId>商家外部订单号</OrderId>
</Result>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部