API接口目录

自营业务

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

查询周度采购计划行信息

公共参数
请求参数
名称 类型 是否必须 示例值 描述
pageNoStringN1页码
pageSizeStringN10每页条数
supplierCodeStringY10001073供应商编码
purchaseWeekPlanNoStringYW000000001周度采购计划编号
响应参数
名称 类型 示例值 描述
purchaseWeekPlansString
supplierCodeString10000335供应商编码
purchaseWeekPlanNoStringW000000001周度采购计划编号
weekplanStartDateString2018M8W2确认送货开始周
buyCodeString10202010采购方编码,苏宁总部、苏宁分部的法人编码
postDateString2018-07-18采购计划审批成功时间,格式化日期YYYY-MM-DD
weekItemString1周度采购计划行项目号
snProductCodeString102536103苏宁商品编码
commodityDescString海信空调商品名称
supplierProductCodeString124521供应商商品编码
eanString6945213504706EAN码。商品的EAN码
unitString计量单位
plantCodeStringD025分仓代码
plantNameString南京仓分仓名称
locationCodeString0001库位编码
locationNameString常规机库位名称
weekStartDateString2018-07-18供货计划周起始时间,格式化日期YYYY-MM-DD
weekEndDateString2018-07-26供货计划周结束时间,格式化日期YYYY-MM-DD
purchaseQtyString1000采购计划数量
forecastSalesString100预测销量
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <queryPurweekplan>
      <purchaseWeekPlanNo>W000000001</purchaseWeekPlanNo>
      <pageNo>1</pageNo>
      <pageSize>10</pageSize>
      <supplierCode>10001073</supplierCode>
    </queryPurweekplan>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "queryPurweekplan": {
        "purchaseWeekPlanNo": "W000000001",
        "pageNo": "1",
        "pageSize": "10",
        "supplierCode": "10001073"
      }
    }
  }
}
			
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              
<sn_responseContent>
  <sn_body>
    <queryPurweekplan>
      <purchaseWeekPlans>
        <plantName>南京仓</plantName>
        <forecastSales>100</forecastSales>
        <postDate>2018-07-18</postDate>
        <purchaseQty>1000</purchaseQty>
        <supplierCode>10000335</supplierCode>
        <locationName>常规机</locationName>
        <plantCode>D025</plantCode>
        <weekEndDate>2018-07-26</weekEndDate>
        <ean>6945213504706</ean>
        <locationCode>0001</locationCode>
        <weekplanStartDate>2018M8W2</weekplanStartDate>
        <unit>件</unit>
        <purchaseWeekPlanNo>W000000001</purchaseWeekPlanNo>
        <snProductCode>102536103</snProductCode>
        <buyCode>10202010</buyCode>
        <commodityDesc>海信空调</commodityDesc>
        <weekItem>1</weekItem>
        <weekStartDate>2018-07-18</weekStartDate>
        <supplierProductCode>124521</supplierProductCode>
      </purchaseWeekPlans>
    </queryPurweekplan>
  </sn_body>
  <sn_head>
    <pageTotal>1</pageTotal>
    <pageNo>1</pageNo>
    <totalSize>1</totalSize>
    <returnMessage>biz.handler.data-get:success</returnMessage>
  </sn_head>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_head": {
      "pageTotal": "1",
      "pageNo": "1",
      "totalSize": "1",
      "returnMessage": "biz.handler.data-get:success"
    },
    "sn_body": {
      "queryPurweekplan": [
        {
          "purchaseWeekPlans": [
            {
              "plantName": "南京仓",
              "forecastSales": "100",
              "postDate": "2018-07-18",
              "purchaseQty": "1000",
              "supplierCode": "10000335",
              "locationName": "常规机",
              "plantCode": "D025",
              "weekEndDate": "2018-07-26",
              "ean": "6945213504706",
              "locationCode": "0001",
              "weekplanStartDate": "2018M8W2",
              "unit": "件",
              "purchaseWeekPlanNo": "W000000001",
              "snProductCode": "102536103",
              "commodityDesc": "海信空调",
              "buyCode": "10202010",
              "weekItem": "1",
              "weekStartDate": "2018-07-18",
              "supplierProductCode": "124521"
            }
          ]
        }
      ]
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.selfmarket.querypurweekplan.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.selfmarket.queryPurweekplan.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.scpc 服务不可用 请联系苏宁技术人员
公共异常码
API工具
FAQ