API接口目录

自营业务

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

批量查询换货信息

公共参数
请求参数
名称 类型 是否必须 示例值 描述
pageNoStringY1页码
pageSizeStringY10每页条数
supplierCodeStringY10000020商家编码
exchangeStatusStringNWAIT_SELLER_AGREE换货状态
startTimeStringN2018-12-12 12:00:00开始时间
endTimeStringN2018-12-12 12:00:00开始时间
响应参数
名称 类型 示例值 描述
orderCodeString2005421502B2C订单号
omsOrderItemNoString00005196454302销售订单行号(OMS行号)
workordernumStringS000041982换货请求号
exchangeStatusStringWAIT_SELLER_AGREE换货状态值
exchangeStatusDescString换货待处理换货状态描述
createTimeString2018-12-12 12:00:00换货申请时间
countDownTimeString2018-12-12 12:00:00倒计时截止时间
updateTimeString2018-12-12 12:00:00状态修改时间
exchangereasonString缺货换货原因
exchangenumString1换货数量
changeTypeString1换异型标识1:同型 2:异型
exchangecmmdtyNameString老板消毒柜ZTD100B-810五重净化消毒换货商品名称
suningCmmdtyCodeString101721351换货申请中的苏宁商品编码
exchangecmmdtyCodeString101721351换货商家商品编码
saleqtyString1交易数量
cmmdtyNameString老板消毒柜ZTD100B-810五重净化消毒原销售商品名称
cmmdtyCodeString101721351原销售苏宁商品编码
supplierCmmdtyCodeString101721351 原销售商家商品编码
statusString1010 待发货;40 已发货; 45 已代顾客确认收货;50 顾客已收货
customernameString收件人姓名
custmobphoneString12345678901收件人电话
returnAddressString南京市收件人地址
expressCompanyNameString德邦退货快递公司
expressCompanyCodeStringD01退货快递编码
userNameString买家昵称买家昵称
expressNoString1111111物流单号
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <queryExchangegoods>
      <exchangeStatus>WAIT_SELLER_AGREE</exchangeStatus>
      <pageNo>1</pageNo>
      <pageSize>10</pageSize>
      <startTime>2018-12-12 12:00:00</startTime>
      <endTime>2018-12-12 12:00:00</endTime>
      <supplierCode>10000020</supplierCode>
    </queryExchangegoods>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "queryExchangegoods": {
        "exchangeStatus": "WAIT_SELLER_AGREE",
        "pageNo": "1",
        "pageSize": "10",
        "startTime": "2018-12-12 12:00:00",
        "endTime": "2018-12-12 12:00:00",
        "supplierCode": "10000020"
      }
    }
  }
}
			
                                
响应示例
  • 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>
    <queryExchangegoods>
      <custmobphone>12345678901</custmobphone>
      <expressNo>1111111</expressNo>
      <cmmdtyCode>101721351</cmmdtyCode>
      <expressCompanyCode>D01</expressCompanyCode>
      <omsOrderItemNo>00005196454302</omsOrderItemNo>
      <exchangecmmdtyName>老板消毒柜ZTD100B-810五重净化消毒</exchangecmmdtyName>
      <countDownTime>2018-12-12 12:00:00</countDownTime>
      <returnAddress>南京市</returnAddress>
      <exchangereason>缺货</exchangereason>
      <suningCmmdtyCode>101721351</suningCmmdtyCode>
      <exchangeStatus>WAIT_SELLER_AGREE</exchangeStatus>
      <workordernum>S000041982</workordernum>
      <saleqty>1</saleqty>
      <customername>张</customername>
      <supplierCmmdtyCode>101721351 </supplierCmmdtyCode>
      <exchangenum>1</exchangenum>
      <changeType>1</changeType>
      <cmmdtyName>老板消毒柜ZTD100B-810五重净化消毒</cmmdtyName>
      <updateTime>2018-12-12 12:00:00</updateTime>
      <userName>买家昵称</userName>
      <exchangecmmdtyCode>101721351</exchangecmmdtyCode>
      <expressCompanyName>德邦</expressCompanyName>
      <exchangeStatusDesc>换货待处理</exchangeStatusDesc>
      <createTime>2018-12-12 12:00:00</createTime>
      <orderCode>2005421502</orderCode>
      <status>10</status>
    </queryExchangegoods>
  </sn_body>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_head": {
      "totalSize": "1",
      "pageTotal": "1",
      "pageNo": "1",
      "returnMessage": "biz.handler.data-get:success"
    },
    "sn_body": {
      "queryExchangegoods": [
        {
          "custmobphone": "12345678901",
          "expressNo": "1111111",
          "cmmdtyCode": "101721351",
          "expressCompanyCode": "D01",
          "omsOrderItemNo": "00005196454302",
          "exchangecmmdtyName": "老板消毒柜ZTD100B-810五重净化消毒",
          "countDownTime": "2018-12-12 12:00:00",
          "returnAddress": "南京市",
          "exchangereason": "缺货",
          "suningCmmdtyCode": "101721351",
          "exchangeStatus": "WAIT_SELLER_AGREE",
          "workordernum": "S000041982",
          "saleqty": "1",
          "customername": "张",
          "supplierCmmdtyCode": "101721351 ",
          "exchangenum": "1",
          "changeType": "1",
          "cmmdtyName": "老板消毒柜ZTD100B-810五重净化消毒",
          "updateTime": "2018-12-12 12:00:00",
          "userName": "买家昵称",
          "exchangecmmdtyCode": "101721351",
          "expressCompanyName": "德邦",
          "exchangeStatusDesc": "换货待处理",
          "createTime": "2018-12-12 12:00:00",
          "orderCode": "2005421502",
          "status": "10"
        }
      ]
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.selfmarket.queryexchangegoods.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.somp 服务不可用 请联系苏宁技术人员
biz.selfmarket.queryexchangegoods.invalid-biz:100 查询无结果 请检查查询条件
biz.selfmarket.queryexchangegoods.invalid-biz:101 供应商编码不能为空. 请检查查询条件
biz.selfmarket.queryexchangegoods.invalid-biz:102 页数不能为空. 请检查查询条件
biz.selfmarket.queryexchangegoods.invalid-biz:103 每页数量不能为空. 请检查查询条件
biz.selfmarket.queryexchangegoods.invalid-biz:104 开始时间格式不符合yyyy-MM-dd HH:mm:ss. 请检查查询条件
biz.selfmarket.queryexchangegoods.invalid-biz:105 结束时间格式不符合yyyy-MM-dd HH:mm:ss. 请检查查询条件
biz.selfmarket.queryexchangegoods.invalid-biz:106 换货状态不是枚举值中的一个. 请确认状态是否是WAIT_SELLER_AGREE,WAIT_BUYER_RETURN_GOODS,WAIT_SELLER_DELIVER_GOODS,WAIT_BUYER_CONFIRM_GOODS,SELLER_REFUSED,SUCCESS,CLOSED中的一个
biz.selfmarket.queryexchangegoods.format-error:* 参数格式错误 请检查此参数的值,*号表示参数字段名
biz.selfmarket.queryexchangegoods.invalid-biz:107 开始时间结束时间只能同时存在或者都不存在. 请确认开始时间和结束时间.
公共异常码
API工具
FAQ