API接口目录

自营业务

退厂API
厂送API
厂送退换货API
品牌串码API
采购订单API
供应商收发货API
售后服务API
供应商财务API
主数据API
自营合同API
自营商品API
自营财务API
采购计划API
收发货API
订单API
易道报表API
不良品API
自营促销API
异常码自查工具
suning.selfmarket.orderinvoicebatchdetail.query 采购发票开票清单明细查询
¥免费

发票对应的开票清单采购明细查询

公共参数
请求参数
名称 类型 是否必须 示例值 描述
pageNoStringN1页码
pageSizeStringN10每页条数
supplierCodeStringY10000007供应商编码,必填,只能输入一个
invoiceNumStringN52370000发票号码
batchCodeStringNKP202204000000开票清单号
响应参数
名称 类型 示例值 描述
noString930186851100000000结算明细流水号
transNoString10023410000苏宁收货单
transLineNoString0010苏宁收货单行号
orderNoString1030500000苏宁采购单
orderLineNoString0001苏宁采购单行号
factoryOrderNoString100789642022010718180000供应商发货单号
purchaseCompanyString5400苏宁公司编码
baseDateString2022-06-14收货日期
transQtyString1开票数量
taxRateString0.13税率
taxAmtString113.00税额
noTaxAmtString10.00未税金额
setAmtString13.00含税总价
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                <sn_request>
  <sn_body>
    <queryOrderinvoicebatchdetail>
      <pageNo>1</pageNo>
      <batchCode>KP202204000000</batchCode>
      <pageSize>10</pageSize>
      <supplierCode>10000007</supplierCode>
      <invoiceNum>52370000</invoiceNum>
    </queryOrderinvoicebatchdetail>
  </sn_body>
</sn_request>

                                
                                {
  "sn_request": {
    "sn_body": {
      "queryOrderinvoicebatchdetail": {
        "pageNo": "1",
        "batchCode": "KP202204000000",
        "pageSize": "10",
        "supplierCode": "10000007",
        "invoiceNum": "52370000"
      }
    }
  }
}
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              <sn_responseContent>
  <sn_head>
    <totalSize>1</totalSize>
    <pageTotal>1</pageTotal>
    <pageNo>1</pageNo>
    <returnMessage>biz.handler.data-get:success</returnMessage>
  </sn_head>
  <sn_body>
    <queryOrderinvoicebatchdetail>
      <no>930186851100000000</no>
      <transLineNo>0010</transLineNo>
      <orderLineNo>0001</orderLineNo>
      <baseDate>2022-06-14</baseDate>
      <orderNo>1030500000</orderNo>
      <noTaxAmt>10.00</noTaxAmt>
      <purchaseCompany>5400</purchaseCompany>
      <setAmt>13.00</setAmt>
      <transNo>10023410000</transNo>
      <taxRate>0.13</taxRate>
      <transQty>1</transQty>
      <factoryOrderNo>100789642022010718180000</factoryOrderNo>
      <taxAmt>113.00</taxAmt>
    </queryOrderinvoicebatchdetail>
  </sn_body>
</sn_responseContent>

                              
                              {
  "sn_responseContent": {
    "sn_head": {
      "totalSize": "1",
      "pageTotal": "1",
      "pageNo": "1",
      "returnMessage": "biz.handler.data-get:success"
    },
    "sn_body": {
      "queryOrderinvoicebatchdetail": [
        {
          "no": "930186851100000000",
          "transLineNo": "0010",
          "orderLineNo": "0001",
          "baseDate": "2022-06-14",
          "orderNo": "1030500000",
          "noTaxAmt": "10.00",
          "purchaseCompany": "5400",
          "setAmt": "13.00",
          "transNo": "10023410000",
          "taxRate": "0.13",
          "transQty": "1",
          "factoryOrderNo": "100789642022010718180000",
          "taxAmt": "113.00"
        }
      ]
    }
  }
}
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.selfmarket.queryorderinvoicebatchdetail.length-overlong:* 参数的值超过规定长度 请检查此参数的值,*号表示参数字段名
biz.selfmarket.queryorderinvoicebatchdetail.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.sbc 服务不可用 请联系苏宁技术人员
biz.selfmarket.queryorderinvoicebatchdetail.invalid-biz:100 页码必须是正整数 请检查查询参数
biz.selfmarket.queryorderinvoicebatchdetail.invalid-biz:101 每页查询条数大于0且小于等于50的整数 请检查查询参数
biz.selfmarket.queryorderinvoicebatchdetail.invalid-biz:102 供应商编码不存在或格式错误 请检查查询参数
biz.selfmarket.queryorderinvoicebatchdetail.invalid-biz:103 发票号码、开票清单号必填一个 请检查查询参数
biz.selfmarket.queryorderinvoicebatchdetail.invalid-biz:104 未查询到发票对应批次
公共异常码
API工具
FAQ