API接口目录

零售云业务

采购API
订单API
库存API
价格API
商品API
报表API
消息服务API
基础数据API
物流API
零售商认证API
发票API
快修回收API
云仓API
异常码自查工具
suning.retailer.btcorderdetails.get 零售云B2C订单详情查询接口
¥免费

零售云B2C订单详情查询接口

公共参数
请求参数
名称 类型 是否必须 示例值 描述
appIdStringY111111调用方唯一编码
orderCodeStringYP2019854512654B2c订单号
channelCodeStringN19451零售商外部唯一标识
storeCodeStringN59021channelCode、storeCode(门店编码)必须填一个
响应参数
名称 类型 示例值 描述
respBeanString
orderCodeStringP307811348906097订单号
merchantCodeString080525零售商编码
storeCodeString59128店铺编码
storeNameString店铺名称店铺名称
userCodeStringEMP1523935333427销售员编码
cashierCodeStringEMP1523935333427收银员编码
buyerCodeString7000586928顾客会员编码
buyerPhoneString13800000000顾客手机号
buyerNameString小明顾客姓名
payStateString1支付状态 -1:已取消/已删除,0:未支付/待退款,1:已支付/已退款
orderStateString1订单状态(1:待支付 2:待发货 3:已完成 4:待审核 5:待退款 6:退款中 7:已退款 -1:已取消)
orderAmountString826.00订单总价
discountAmountString0.00优惠金额
payAmountString826.00应付金额
updateTimeString2019-08-05 09:43:05更新时间
paidAmountString826.00实付金额
paidTimeString2019-08-05 09:43:05支付完成时间
orderTimeString2019-08-05 09:30:44下单时间
remarkString备注订单备注信息
createCodeStringEMP1523935333427销售员编码
combinationFlagString0是否包含套餐
orderFromString1订单来源
orderChannelString1订单渠道
orderItemsString
orderItemCodeStringP30781134890609701订单行号
cmmdtyCodeString000000000120874428商品编码
combinationCodeString111111套餐编码
cmmdtyNameString一台洗衣机商品名称
unitPriceString826.00单价
sellPriceString826.00实际单价
quantityString1数量
totalPayAmountString826.00实际应付金额
discountItemAmountString0.00行优惠金额
returnNumString0申请退货及已退总数量
purchaseOrderItemNoString00102399563601采购订单行号
purchaseOrderNoString001023995636采购订单号
purchasePriceString800.00采购价格
returnStateString0退货状态(0:可退,1:处理中,-1:已退)
orderItemStateString2订单行状态(1:待支付 2:待发货 3:已完成 4:待审核 5:待退款 6:退款中 7:已退款 -1:已取消)
deliveryIdString deliveryId配送地址主键
orderTypeString1订单类型(0:门店现货,1:平台预定)
combinationFlagString0是否包含套餐
logisticsStateString0物流配送状态(0:未配送,1:正在配送,2:配送完成)
hopeArrivalTimeString2019-08-06 18:00:00期望送达时间
lanaFlagString0使用蓝A标志(使用蓝A标志)
lanaDiscountString0.00蓝A优惠金额
activityTypeString1活动类型1:返利,2:高佣
goodsOrderItemCodeString0000阳光包对应的主商品订单行
imeiString0000串码
sunPackageFlagString1延保标示:是否是保险商品(1:商品:2:保险)
orderDeliveryInfoString
receiverNameString张三receiverName
receiverPhoneString18000000000receiverPhone
provinceCodeString100省编码
provinceNameString江苏省省名称
cityCodeString025城市编码
cityNameString南京市城市名称
districtCodeString01区编码
districtNameString玄武区区名称
townCodeString99镇编码
townNameString全区镇名称
buyerAddressString苏宁大道一号404收货详细地址
orderPayDetailsString
payTypeString1支付类型(1:现金支付、2:支付宝支付 3:易付宝支付、4:银联支付、5:微信支付、6:捷信支付 )
payAmountString826.00支付金额
payTimeString2019-08-05 09:43:04.0支付时间
payWayString0交易方式
bankCardString000000000000000银行卡号
payCodeStringCASH支付编码
payOrderCodeStringCASH1908051000001订单支付编码
payStateString1支付方式(0-未支付,1-支付成功,3-撤销成功,4-部分退货,5-全额退货,6-支付失败,8-状态未知)
orderCombinationsString
orderCodeString000000000120874428订单编码
combinationCodeString111111套餐编码
combinationNameString套餐1套餐名称
combinationQuantityString1套餐数量
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <getBtcorderdetails>
      <appId>111111</appId>
      <orderCode>P2019854512654</orderCode>
      <channelCode>19451</channelCode>
      <storeCode>59021</storeCode>
    </getBtcorderdetails>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "getBtcorderdetails": {
        "appId": "111111",
        "orderCode": "P2019854512654",
        "channelCode": "19451",
        "storeCode": "59021"
      }
    }
  }
}
			
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              
<sn_responseContent>
  <sn_body>
    <getBtcorderdetails>
      <respBean>
        <discountAmount>0.00</discountAmount>
        <remark>备注</remark>
        <payState>1</payState>
        <orderPayDetails>
          <payType>1</payType>
          <payAmount>826.00</payAmount>
          <bankCard>000000000000000</bankCard>
          <payTime>2019-08-05 09:43:04.0</payTime>
          <payWay>0</payWay>
          <payOrderCode>CASH1908051000001</payOrderCode>
          <payState>1</payState>
          <payCode>CASH</payCode>
        </orderPayDetails>
        <orderChannel>1</orderChannel>
        <orderItems>
          <returnState>0</returnState>
          <orderType>1</orderType>
          <purchaseOrderItemNo>00102399563601</purchaseOrderItemNo>
          <cmmdtyCode>000000000120874428</cmmdtyCode>
          <sellPrice>826.00</sellPrice>
          <purchasePrice>800.00</purchasePrice>
          <sunPackageFlag>1</sunPackageFlag>
          <discountItemAmount>0.00</discountItemAmount>
          <purchaseOrderNo>001023995636</purchaseOrderNo>
          <orderItemState>2</orderItemState>
          <deliveryId> deliveryId</deliveryId>
          <hopeArrivalTime>2019-08-06 18:00:00</hopeArrivalTime>
          <lanaFlag>0</lanaFlag>
          <goodsOrderItemCode>0000</goodsOrderItemCode>
          <unitPrice>826.00</unitPrice>
          <quantity>1</quantity>
          <cmmdtyName>一台洗衣机</cmmdtyName>
          <totalPayAmount>826.00</totalPayAmount>
          <logisticsState>0</logisticsState>
          <lanaDiscount>0.00</lanaDiscount>
          <combinationFlag>0</combinationFlag>
          <combinationCode>111111</combinationCode>
          <returnNum>0</returnNum>
          <orderItemCode>P30781134890609701</orderItemCode>
          <imei>0000</imei>
          <activityType>1</activityType>
        </orderItems>
        <userCode>EMP1523935333427</userCode>
        <orderState>1</orderState>
        <orderAmount>826.00</orderAmount>
        <payAmount>826.00</payAmount>
        <orderTime>2019-08-05 09:30:44</orderTime>
        <storeName>店铺名称</storeName>
        <createCode>EMP1523935333427</createCode>
        <orderCombinations>
          <combinationCode>111111</combinationCode>
          <combinationQuantity>1</combinationQuantity>
          <combinationName>套餐1</combinationName>
          <orderCode>000000000120874428</orderCode>
        </orderCombinations>
        <merchantCode>080525</merchantCode>
        <orderDeliveryInfo>
          <townName>全区</townName>
          <buyerAddress>苏宁大道一号404</buyerAddress>
          <receiverPhone>18000000000</receiverPhone>
          <districtCode>01</districtCode>
          <cityName>南京市</cityName>
          <districtName>玄武区</districtName>
          <townCode>99</townCode>
          <receiverName>张三</receiverName>
          <provinceCode>100</provinceCode>
          <cityCode>025</cityCode>
          <provinceName>江苏省</provinceName>
        </orderDeliveryInfo>
        <updateTime>2019-08-05 09:43:05</updateTime>
        <buyerName>小明</buyerName>
        <paidTime>2019-08-05 09:43:05</paidTime>
        <buyerCode>7000586928</buyerCode>
        <combinationFlag>0</combinationFlag>
        <buyerPhone>13800000000</buyerPhone>
        <orderCode>P307811348906097</orderCode>
        <orderFrom>1</orderFrom>
        <cashierCode>EMP1523935333427</cashierCode>
        <paidAmount>826.00</paidAmount>
        <storeCode>59128</storeCode>
      </respBean>
    </getBtcorderdetails>
  </sn_body>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_body": {
      "getBtcorderdetails": {
        "respBean": {
          "discountAmount": "0.00",
          "remark": "备注",
          "payState": "1",
          "orderPayDetails": [
            {
              "payType": "1",
              "payAmount": "826.00",
              "bankCard": "000000000000000",
              "payTime": "2019-08-05 09:43:04.0",
              "payWay": "0",
              "payOrderCode": "CASH1908051000001",
              "payState": "1",
              "payCode": "CASH"
            }
          ],
          "orderChannel": "1",
          "orderItems": {
            "returnState": "0",
            "orderType": "1",
            "purchaseOrderItemNo": "00102399563601",
            "cmmdtyCode": "000000000120874428",
            "sellPrice": "826.00",
            "purchasePrice": "800.00",
            "sunPackageFlag": "1",
            "discountItemAmount": "0.00",
            "purchaseOrderNo": "001023995636",
            "orderItemState": "2",
            "deliveryId": " deliveryId",
            "hopeArrivalTime": "2019-08-06 18:00:00",
            "lanaFlag": "0",
            "goodsOrderItemCode": "0000",
            "unitPrice": "826.00",
            "quantity": "1",
            "cmmdtyName": "一台洗衣机",
            "totalPayAmount": "826.00",
            "logisticsState": "0",
            "lanaDiscount": "0.00",
            "combinationFlag": "0",
            "combinationCode": "111111",
            "returnNum": "0",
            "orderItemCode": "P30781134890609701",
            "imei": "0000",
            "activityType": "1"
          },
          "userCode": "EMP1523935333427",
          "orderState": "1",
          "orderAmount": "826.00",
          "payAmount": "826.00",
          "orderTime": "2019-08-05 09:30:44",
          "storeName": "店铺名称",
          "createCode": "EMP1523935333427",
          "orderCombinations": [
            {
              "combinationCode": "111111",
              "combinationQuantity": "1",
              "combinationName": "套餐1",
              "orderCode": "000000000120874428"
            }
          ],
          "merchantCode": "080525",
          "orderDeliveryInfo": {
            "townName": "全区",
            "buyerAddress": "苏宁大道一号404",
            "receiverPhone": "18000000000",
            "districtCode": "01",
            "cityName": "南京市",
            "districtName": "玄武区",
            "townCode": "99",
            "receiverName": "张三",
            "provinceCode": "100",
            "cityCode": "025",
            "provinceName": "江苏省"
          },
          "updateTime": "2019-08-05 09:43:05",
          "buyerName": "小明",
          "paidTime": "2019-08-05 09:43:05",
          "buyerCode": "7000586928",
          "combinationFlag": "0",
          "buyerPhone": "13800000000",
          "orderCode": "P307811348906097",
          "orderFrom": "1",
          "cashierCode": "EMP1523935333427",
          "paidAmount": "826.00",
          "storeCode": "59128"
        }
      }
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
isp.sys.service.unavailable.esser 服务不可用 请联系苏宁技术人员
biz.retailer.getbtcorderdetails.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.srcdss 服务不可用 请联系苏宁技术人员
biz.retailer.getbtcorderdetails.invalid-biz:100 请求参数缺失 请检查查询参数
biz.retailer.getbtcorderdetails.invalid-biz:101 接口执行返回失败 请检查查询参数
biz.retailer.getbtcorderdetails.invalid-biz:102 查询结果为空 请检查查询参数
biz.retailer.getbtcorderdetails.invalid-biz:103 系统异常 请联系苏宁技术人员
biz.retailer.getbtcorderdetails.invalid-biz:105 无效的AppId请求 请检查查询参数
biz.retailer.getbtcorderdetails.invalid-biz:112 门店/渠道信息不存在 请检查查询参数
公共异常码
API工具
FAQ