API接口目录

平台业务

商品API
价格API
库存API
销售准备API
交易API
退货退款API(新)
财务API
店铺API
物流API
促销API
分销API
发票API
招商API
换货API
互动营销API
退货退款API
客服API
平台营销API
风控API
会员通API
账房API
财务记账API
异常码自查工具
suning.custom.saledetail.query 订单详情
¥免费

订单详情

公共参数
请求参数
名称 类型 是否必须 示例值 描述
supplierCodeStringY70012345商户编码
btcOrderIdStringY35404259516销售订单号
btcOrderItemIdStringY111111234124321销售订单行号
omsOrderItemIdStringY35404259516OMS行号
响应参数
名称 类型 示例值 描述
orderBaseInfoString
btcOrderIdString35404259516销售订单号
btcOrderItemIdString123销售订单行号
commodityCodeString912346567988商品编码
commodityNameString苹果手机11商品名称
totalAmountString120销售金额
salePriceString10销售单价
saleQtyString2销售数量
transportFeeString5运费
saleTimeString2021-02-22 09:49:22订单销售时间
conReceiptTimeString2021-02-02 20:37:24确认收货时间
refundTimeString2021-02-02 20:37:25 退款时间
refundApplyTimeString2021-02-02 20:37:25 退款申请时间
mainPayInfosString
payCodeDescString支付宝支付类型
payAmountString12支付金额
contractDeductionString0.1合同扣点
commissionAmountString1.2平台佣金
settlementStatusString交易关闭结算状态:待结算、已结算、不结算、以苏宁金融结算为准、已出单待开票、已开票待结算、审核失败、交易关闭
eppTransferTimeString2021-02-01 20:35:25结算日期
snkPayInfosString
payCodeDescString苏宁卡支付类型
payAmountString10支付金额
contractDeductionString0.1合同扣点
commissionAmountString1平台佣金
settlementStatusString已结算结算状态:待结算、已结算、不结算、以苏宁金融结算为准、已出单待开票、已开票待结算、审核失败、交易关闭
eppTransferTimeString2021-02-01 20:35:25结算日期
discountPayInfosString
payCodeDescString平台券优惠类型
payTypeDescString平台券优惠描述
payAmountString10支付金额
commitmentRatioString1:0平台承担比例
contractDeductionString0.1合同扣点
commissionAmountString1平台佣金
settlementStatusString待结算结算状态:待结算、已结算、不结算、以苏宁金融结算为准、已出单待开票、已开票待结算、审核失败、交易关闭
accountNumberStringG0120200170057494对账单号
eppTransferTimeString2021-02-01 20:35:25结算日期
otherFeeInfosString
payTypeDescString购物返云钻类型
baseAmountString100费用计算基数金额
contractDeductionString0.12合同扣点
payAmountString10支出金额
settlementStatusString待结算支出状态:待结算、已结算、结算失败、不结算
accountNumberStringG0120200170057494对账单号
settlementDateString2020-10-12结算日期
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <querySaledetail>
      <btcOrderId>35404259516</btcOrderId>
      <omsOrderItemId>35404259516</omsOrderItemId>
      <btcOrderItemId>111111234124321</btcOrderItemId>
      <supplierCode>70012345</supplierCode>
    </querySaledetail>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "querySaledetail": {
        "btcOrderId": "35404259516",
        "omsOrderItemId": "35404259516",
        "btcOrderItemId": "111111234124321",
        "supplierCode": "70012345"
      }
    }
  }
}
			
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              
<sn_responseContent>
  <sn_body>
    <querySaledetail>
      <orderBaseInfo>
        <btcOrderId>35404259516</btcOrderId>
        <totalAmount>120</totalAmount>
        <saleTime>2021-02-22 09:49:22</saleTime>
        <transportFee>5</transportFee>
        <salePrice>10</salePrice>
        <btcOrderItemId>123</btcOrderItemId>
        <refundTime>2021-02-02 20:37:25	</refundTime>
        <commodityCode>912346567988</commodityCode>
        <refundApplyTime>2021-02-02 20:37:25	</refundApplyTime>
        <conReceiptTime>2021-02-02 20:37:24</conReceiptTime>
        <saleQty>2</saleQty>
        <commodityName>苹果手机11</commodityName>
      </orderBaseInfo>
      <mainPayInfos>
        <payAmount>12</payAmount>
        <settlementStatus>交易关闭</settlementStatus>
        <payCodeDesc>支付宝</payCodeDesc>
        <contractDeduction>0.1</contractDeduction>
        <eppTransferTime>2021-02-01 20:35:25</eppTransferTime>
        <commissionAmount>1.2</commissionAmount>
      </mainPayInfos>
      <otherFeeInfos>
        <payAmount>10</payAmount>
        <settlementStatus>待结算</settlementStatus>
        <contractDeduction>0.12</contractDeduction>
        <settlementDate>2020-10-12</settlementDate>
        <accountNumber>G0120200170057494</accountNumber>
        <baseAmount>100</baseAmount>
        <payTypeDesc>购物返云钻</payTypeDesc>
      </otherFeeInfos>
      <discountPayInfos>
        <payAmount>10</payAmount>
        <settlementStatus>待结算</settlementStatus>
        <commitmentRatio>1:0</commitmentRatio>
        <payCodeDesc>平台券</payCodeDesc>
        <contractDeduction>0.1</contractDeduction>
        <accountNumber>G0120200170057494</accountNumber>
        <eppTransferTime>2021-02-01 20:35:25</eppTransferTime>
        <payTypeDesc>平台券</payTypeDesc>
        <commissionAmount>1</commissionAmount>
      </discountPayInfos>
      <snkPayInfos>
        <payAmount>10</payAmount>
        <settlementStatus>已结算</settlementStatus>
        <payCodeDesc>苏宁卡</payCodeDesc>
        <contractDeduction>0.1</contractDeduction>
        <eppTransferTime>2021-02-01 20:35:25</eppTransferTime>
        <commissionAmount>1</commissionAmount>
      </snkPayInfos>
    </querySaledetail>
  </sn_body>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_body": {
      "querySaledetail": {
        "orderBaseInfo": {
          "btcOrderId": "35404259516",
          "totalAmount": "120",
          "saleTime": "2021-02-22 09:49:22",
          "transportFee": "5",
          "salePrice": "10",
          "btcOrderItemId": "123",
          "refundTime": "2021-02-02 20:37:25\t",
          "commodityCode": "912346567988",
          "refundApplyTime": "2021-02-02 20:37:25\t",
          "conReceiptTime": "2021-02-02 20:37:24",
          "saleQty": "2",
          "commodityName": "苹果手机11"
        },
        "mainPayInfos": [
          {
            "payAmount": "12",
            "settlementStatus": "交易关闭",
            "payCodeDesc": "支付宝",
            "contractDeduction": "0.1",
            "eppTransferTime": "2021-02-01 20:35:25",
            "commissionAmount": "1.2"
          }
        ],
        "otherFeeInfos": [
          {
            "payAmount": "10",
            "settlementStatus": "待结算",
            "contractDeduction": "0.12",
            "settlementDate": "2020-10-12",
            "accountNumber": "G0120200170057494",
            "baseAmount": "100",
            "payTypeDesc": "购物返云钻"
          }
        ],
        "discountPayInfos": [
          {
            "payAmount": "10",
            "settlementStatus": "待结算",
            "commitmentRatio": "1:0",
            "payCodeDesc": "平台券",
            "contractDeduction": "0.1",
            "accountNumber": "G0120200170057494",
            "eppTransferTime": "2021-02-01 20:35:25",
            "payTypeDesc": "平台券",
            "commissionAmount": "1"
          }
        ],
        "snkPayInfos": [
          {
            "payAmount": "10",
            "settlementStatus": "已结算",
            "payCodeDesc": "苏宁卡",
            "contractDeduction": "0.1",
            "eppTransferTime": "2021-02-01 20:35:25",
            "commissionAmount": "1"
          }
        ]
      }
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.custom.querysaledetail.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.custom.querysaledetail.format-error:* 参数格式错误 请检查此参数的值,*号表示参数字段名
biz.custom.querysaledetail.length-overlong:* 参数的值超过规定长度 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.mbc 服务不可用 请联系苏宁技术人员
biz.custom.querysaledetail.invalid-biz:100 商家编码不存在或无效 请检查商家编码
公共异常码
API工具
FAQ