API接口目录
suning.custexpand.returngoods.add 退货
¥免费

退货

公共参数
请求参数
名称 类型 是否必须 示例值 描述
custNumStringYcustNumcustNum
ecoTypeStringYecoTypeecoType
orderItemIdStringYorderItemIdorderItemId
backOrderItemIdStringYbackOrderItemIdbackOrderItemId
storeStringYstorestore
branchStringYbranchbranch
handlersStringYhandlershandlers
onLineFlagStringNonLineFlagonLineFlag
orderTypeStringNorderTypeorderType
addStructListStringN
accountTypeStringNaccountType1accountType1
accountAddAmtStringNaccountAddAmtaccountAddAmt
subtractStructListStringN
accountSubAmtStringNaccountSubAmtaccountSubAmt
accountTpStringNaccountTpaccountTp
returnSceneStringYreturnScenereturnScene
isCalcTotalOffsetLimitStringNisCalcTotalOffsetLimitisCalcTotalOffsetLimit
appCodeStringYappCodeappCode
tranTimestampStringYtranTimestamptranTimestamp
sourceSystemNoStringYsourceSystemNosourceSystemNo
sourceChannelStringYsourceChannelsourceChannel
响应参数
名称 类型 示例值 描述
cashMarginStructListString
accountTypeStringaccountTypeaccountType
accountVarAmtStringaccountVarAmtaccountVarAmt
lackStructListString
accountTypeStringaccountTypeaccountType
accountVarAmtStringaccountVarAmtaccountVarAmt
rtnSubDetailListString
accountTypeStringaccountTypeaccountType
addAmtStringaddAmtaddAmt
orderTypeStringorderTypeorderType
statusStringstatus服务状态
codeStringcode错误码
descStringdesc错误描述
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                <sn_request>
  <sn_body>
    <addReturngoods>
      <orderType>orderType</orderType>
      <backOrderItemId>backOrderItemId</backOrderItemId>
      <ecoType>ecoType</ecoType>
      <returnScene>returnScene</returnScene>
      <orderItemId>orderItemId</orderItemId>
      <sourceChannel>sourceChannel</sourceChannel>
      <tranTimestamp>tranTimestamp</tranTimestamp>
      <sourceSystemNo>sourceSystemNo</sourceSystemNo>
      <custNum>custNum</custNum>
      <appCode>appCode</appCode>
      <store>store</store>
      <branch>branch</branch>
      <onLineFlag>onLineFlag</onLineFlag>
      <addStructList>
        <accountAddAmt>accountAddAmt</accountAddAmt>
        <accountType>accountType1</accountType>
      </addStructList>
      <isCalcTotalOffsetLimit>isCalcTotalOffsetLimit</isCalcTotalOffsetLimit>
      <subtractStructList>
        <accountTp>accountTp</accountTp>
        <accountSubAmt>accountSubAmt</accountSubAmt>
      </subtractStructList>
      <handlers>handlers</handlers>
    </addReturngoods>
  </sn_body>
</sn_request>

                                
                                {
  "sn_request": {
    "sn_body": {
      "addReturngoods": {
        "orderType": "orderType",
        "backOrderItemId": "backOrderItemId",
        "ecoType": "ecoType",
        "returnScene": "returnScene",
        "orderItemId": "orderItemId",
        "sourceChannel": "sourceChannel",
        "tranTimestamp": "tranTimestamp",
        "sourceSystemNo": "sourceSystemNo",
        "custNum": "custNum",
        "appCode": "appCode",
        "store": "store",
        "branch": "branch",
        "onLineFlag": "onLineFlag",
        "addStructList": [
          {
            "accountAddAmt": "accountAddAmt",
            "accountType": "accountType1"
          }
        ],
        "isCalcTotalOffsetLimit": "isCalcTotalOffsetLimit",
        "subtractStructList": [
          {
            "accountTp": "accountTp",
            "accountSubAmt": "accountSubAmt"
          }
        ],
        "handlers": "handlers"
      }
    }
  }
}
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              <sn_responseContent>
  <sn_body>
    <addReturngoods>
      <code>code</code>
      <cashMarginStructList>
        <accountVarAmt>accountVarAmt</accountVarAmt>
        <accountType>accountType</accountType>
      </cashMarginStructList>
      <lackStructList>
        <accountVarAmt>accountVarAmt</accountVarAmt>
        <accountType>accountType</accountType>
      </lackStructList>
      <rtnSubDetailList>
        <orderType>orderType</orderType>
        <addAmt>addAmt</addAmt>
        <accountType>accountType</accountType>
      </rtnSubDetailList>
      <desc>desc</desc>
      <status>status</status>
    </addReturngoods>
  </sn_body>
</sn_responseContent>

                              
                              {
  "sn_responseContent": {
    "sn_body": {
      "addReturngoods": {
        "code": "code",
        "cashMarginStructList": [
          {
            "accountVarAmt": "accountVarAmt",
            "accountType": "accountType"
          }
        ],
        "lackStructList": [
          {
            "accountVarAmt": "accountVarAmt",
            "accountType": "accountType"
          }
        ],
        "rtnSubDetailList": [
          {
            "orderType": "orderType",
            "addAmt": "addAmt",
            "accountType": "accountType"
          }
        ],
        "desc": "desc",
        "status": "status"
      }
    }
  }
}
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.custexpand.addreturngoods.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.custexpand.addreturngoods.format-error:* 参数格式错误 请检查此参数的值,*号表示参数字段名
isp.sys.service.unavailable.qqs 服务不可用 请联系苏宁技术人员
biz.custexpand.addreturngoods.invalid-biz:100 输入信息必填性校验失败 请检查参数问题
biz.custexpand.addreturngoods.invalid-biz:101 退货试算失败需要补现 请联系苏宁技术人员
biz.custexpand.addreturngoods.invalid-biz:102 会员不存在 请检查会员、账户
biz.custexpand.addreturngoods.invalid-biz:103 账号已锁定 请检查会员、账户
biz.custexpand.addreturngoods.invalid-biz:104 待处理任务处理失败,交易失败 请联系苏宁技术人员
biz.custexpand.addreturngoods.invalid-biz:105 系统错误 请联系苏宁技术人员
biz.custexpand.addreturngoods.invalid-biz:106 账户匹配失败,未找到对应账户 请检查会员、账户
biz.custexpand.addreturngoods.invalid-biz:107 查询无原单扣减批次信息 请检查会员、账户
biz.custexpand.addreturngoods.invalid-biz:108 查询电子心意券批次明细失败 请联系苏宁技术人员
biz.custexpand.addreturngoods.invalid-biz:109 查询电子礼金券账户批次明细失败 请联系苏宁技术人员
biz.custexpand.addreturngoods.invalid-biz:110 查询预付款批次明细失败 请联系苏宁技术人员
biz.custexpand.addreturngoods.invalid-biz:111 增减量必须大于0 请检查会员、账户
biz.custexpand.addreturngoods.invalid-biz:112 总余额不足 请检查会员、账户
公共异常码
API工具
FAQ