返回订单API

  • 功能描述:根据订单编号查询增值税专票资质信息

    支持的数据格式:XML

    HTTP请求方式:GET

    版本:1.0

  • 接口调用时传递的v为大版本号,如对于1.1,调用时为v=1.0

    时间:2017-7-11

    版本:v1.0

    变更说明:新建;

  • 系统级输入参数:

    请参考系统级输入参数

    应用级输入参数:


    变量名称 变量命名 变量类型 是否必填 示例 说明

    订单编号

    orderID

    Long

    12345678

    订单号

  • 商家接收到的XML文件格式说明:


    变量名称 变量命名 变量类型 说明
    订单编号
    orderID
    long

    单位名称
    companyName
    String

    纳税人识别号
    taxpayerCode
    String

    注册地址
    companyAddress
    String

    注册电话
    compantTel
    String

    开户银行
    depositBank
    String

    银行账号
    bankAccount
    String

  • <?xml version="1.0" encoding="GBK" standalone="yes"?>

    <response> 
      <functionID>getVatInvoice</functionID>  
      <time>2017-07-04 16:32:19</time>  
      <orderID>12345678</orderID>  
      <companyName>当当网</companyName>  
      <taxpayerCode>1234567890HYGTR</taxpayerCode>  
      <companyAddress>朝阳区北三环东路8号</companyAddress>  
      <compantTel>65651677</compantTel>  
      <depositBank>中国银行</depositBank>  
      <bankAccount>621661280000447287</bankAccount> 

    </response>

  • <?xml version="1.0" encoding="GBK" standalone="yes"?>

    <response> 
      <functionID>getVatInvoice</functionID>  
      <time>2017-07-04 16:20:45</time>  
      <Error> 
        <operCode>35</operCode>   //2600:非增值税专票订单2601:未查询到资质信息;3 5:订单编号错误; 1206:订单不属于该商家
        <operation>订单编号错误</operation> 
      </Error> 
    </response>


  • java版

    SdkClient sdkClient= new SdkClient(appKey, appSecret, session, version) ;
    OrderVatInvoiceGetRequest request=new OrderVatInvoiceGetRequest();
    request.setOrderID("38080608730");
    OrderVatInvoiceGetResponse response=sdkClient.excute(request);
    System.out.println(response.toString());


    php版

    $sdkClient = new DDHttpClient(appKey,appSecret,session)

    $vatinvoiceGetRequest = new VatinvoiceGetRequest();
    $vatinvoiceGetRequest->setOrderId("35703720953");
    $result = $ddHttpClient->execute($vatinvoiceGetRequest);