帮助中心

2023-查询商城订单(单个)

2021-11-23

接口编号 2023

接口说明

  • 获取单个订单的数据。

  • 待发货订单Dtls中的Quantity,显示为可发货数量(并排除数量为0明细),其它状态订单显示为购买数量

  • DeliverQuantity&RefundQuantity,仅待发货并传入IsDeliver=true,显示发货和未发货退款数量

  • 订单已关闭指全部退款退货

请求说明

  • HTTP请求方式:POST

  • 返回数据格式:JSON

  • 请求路径:api/morder/ordgetone

订单状态

0:已取消  1:待付款  2:待发货  4:已发货  8:交易成功 16:交易完成  20:已关闭 1200:定金支付成功

订单金额字段算法:
主表:
  • TotalMoney(商品总金额)=商品数量*商品单价

  • DiscountAmount(支付优惠金额):订单参与满减和优惠券抵扣的总优惠金额

  • PayAmount(支付总金额,包含运费)

  • TotalMoney - DiscountAmount = PayAmount - 运费

明细:
  • Amount:商品支付金额(Amount = Quantity*PriceSell)

  • DiscountAmount:商品参与满减,抵扣券优惠金额DiscountAmount= Amount -AvgAmount)

请求参数


字段类型为空长度描述
OrderCodestring1~16订单号
IsCommissionTypebool
是否返回佣金类型(默认false不返回)
HaveOrderDetailbool
是否返回订单明细(默认不返回明细)
IsExcludeRefundProbool
导出订单时是否排除已产生退款单(且退款单未取消)的订单明细(默认false排除)
IsDeliverbool
待发货订单显示明细全部
IsLivebool
是否返回直播信息
FxHandlerint1默认-1全部,0未完成分销,1完成分销


请求参数示例代码(json对象)

{
"OrderCode": "E0144876719013000038",
"HaveOrderDetail": "true",
"IsExcludeRefundPro":"true",
"CommissionType":"false"
}

返回参数

订单数据

字段类型描述
Codestring订单号
OrderTypestring订单类型(MALL:商城订单,BNEG卖券订单)
ShopCodestring门店代码(多门店情况下为仓库代码)
StoreCodestring多门店门店代码
StoreTypeint门店类型(默认0,1:商场店)
FlowChannelint流量渠道来源,0、默认值;1、西瓜商城;2、视频号
TotalMoneydecimal商品总金额
DiscountMoney(弃用)decimal折扣优惠金额
DiscountAmountdecimal支付优惠金额
ReturnQuantityint退货数量
OrderTimestring下单时间
OrderPreShipTimestring订单预售发货时间(只有预售订单才有)
IsPayedbool是否付款完成
PayTimestring付款时间
PayAmountdecimal支付金额
UseCouponNostring使用券号
UseCouponValuedecimal使用券面额
RewardFeedecimal分销佣金
UseBonusint抵现积分
ExpressFeedecimal快递费用
ExpressFeeTypestring快递费用类型(MY:人民币 BS:积分)
IsCodbool是否货到付款
CodServiceFeedecimal货到付款服务费
BuyerCodestring买家线上卡号
BuyerOldCodestring买家线下卡号
VipCodestring买家线上卡号
BuyerEmailstring买家email
BuyerNickstring买家昵称
BuyerMobilestring买家手机号
WxUnionIDstring微信UnionID
ActTypestring活动类型 OG-开团,JG-参团,BA-砍价,LC-限券购,DOG-多品团开团,DJG-多品团参团,PRE-预售,DPRE-定金预售
ActIdint活动Id
LiveActIdint直播活动Id
LiveActTypeint直播类型(1:腾讯直播(直播插件))
RecvConsigneestring收货联系人
RecvMobilestring收货人手机
RecvTelstring收货人电话
RecvAddressstring收货人地址
RecvProvincestring收货省份
RecvCitystring收货城市
RecvCountystring收货区县
OrderStatusint订单状态
BuyerRemarkstring买家备注
OrderRemarkstring订单备注
ServiceSalerCodestring服务导购(需要开启导购销售)
ServiceSalerNamestring服务导购名称(需要开启导购销售)
ServiceChannelCodestring服务导购所属门店
SellerCodestring分销员(弃用
SellerSysShopCodestring分销员所属系统门店 (弃用)
SelfFetchShopCodestring自提门店编码
DelivTypeint0:快递,1:自提
DelivTypeDescstring内容为“快递”或者“自提”
DeliveryCodestring自提订单核销码
CommissionTypeint0导购分销 1会员分销 2导购分销自购 3会员分销自购 -1无
DtlsList<SalesOrderDtlGetResInfo>订单明细
FxComResListList<SalesFxCommssionGetResInfo>导购分销信息
LiveIdint直播间ID
LiveNamestring直播房间名称
LastModifystring订单最后修改时间
ExchangeRefCodeList<string>换货关联单号
OrderTagstring订单标签 默认为空,0、换货订单(发生换货行为的订单) 1、换货发货单(换货成功商品生成的0元订单)
BuyerNamestring购买人姓名
FxHandlerint0:分销逻辑未处理,1:分销逻辑处理完成
UsePrepaidCardAmountdecimal使用储值卡金额
UsePrepaidCardGiftAmountdecimal使用储值卡赠送金额
DataOriginint0:线下门店,1:品牌自有商城,2:品牌线上官网,3:PC销售,4:APP销售,6:EZR微商城,7:EZR微信小程序,9:第三方商城订单,10:淘宝,11:京东,20:EZR支付宝小程序
ChangeDiscountAmountdecimal改价优惠金额合计


订单明细数据


字段类型描述
ItemNostring商品货号
BarCodestring商品条码
PriceOriginaldecimal原始单价
PriceSelldecimal销售单价
Quantityint订购数量
Amountdecimal支付金额
DiscountMoney(弃用)decimal折扣优惠金额
DiscountAmountdecimal支付优惠总金额
FrDiscountAmountdecimal满减支付优惠金额(只有接口传入IsGetDiscountAmountDtl=true才处理)
CouponDiscountAmountdecimal券支付优惠金额(只有接口传入IsGetDiscountAmountDtl=true才处理)
RewardFeedecimal分销佣金
UseBonusint抵现积分
IsGiftbool是否赠品
ReturnQuantitydecimal退货数量
ReturnPricedecimal退货单价
ReturnMoneydecimal退货金额
RetailPricedecimal吊牌价
OrderCouponAmountdecimal订单券金额
ProCouponAmountdecimal商品券金额
AvgAmountdecimal小计
WxProCouponAmountdecimal微信优惠券商品券抵扣额
WxOrderCouponAmountdecimal微信优惠券订单券抵扣额
DeliverQuantityint已发货数量
RefundQuantityint未发货退款数量
FxTypeint分销类型:-1无 0 导购;1 会员;2 合伙人
SgCodestring导购工号
SgShopCodestring导购门店编码
VipCodestring会员卡号
RelationTypeint关系类型:-1无 0 会员分享关系  1  会员邀请关系  2  服务导购关系  3 导购分享链接关系
ProductBrandIdint商品品牌
ProductBrandCodestring商品品牌
FxOrderRateInfosList<FxOrderRateVoBusi>分销订单佣金比例明细
SkuActTypeint活动类型=9为积分兑换活动
ChangeDiscountAmountdecimal改价优惠金额
VipDiscountAmountdecimal商品的会员折扣金额



分销订单佣金比例明细


字段类型描述
FxTypeint佣金类型  0导购  1微客
FxOcLevelint佣金等级  1一级  2发展
Ratedouble佣金值
RateTypeint佣金类型  0比例  1实付金额


导购分销信息


字段类型描述
SellerSysShopCodestring分销员所属系统门店
SellerCodestring分销员编号


系统级返回结果示例(json)

{
 "Sign": "F6C7E6DDE2760F956BC7B2F7EC184601C81A1BF5",
 "Result": {
     "Code": "E0109109820111850020",
     "OrderType": "MALL",
     "TotalQty": 2,
     "TotalMoney": 0.02,
     "DiscountAmount": 0,
     "ReturnQuantity": 2,
     "ReturnMoney": 0.02,
     "OrderTime": "2020-11-18 14:48:36",
     "OrderPreShipTime": "",
     "IsPayed": true,
     "PayTime": "2020-11-18 14:48:36",
     "HasSendTime": "",
     "FinishTime": "",
     "PayAmount": 0.02,
     "UseCouponNo": null,
     "UseCouponValue": 0,
     "RewardFee": 0,
     "UseBonus": 0,
     "ExpressCode": null,
     "ExpressOrgCode": "",
     "ExpressOrgName": "",
     "ExpressFee": 0,
     "ExpressFeeType": "MY",
     "ExpressCost": 0,
     "IsCod": false,
     "CodServiceFee": 0,
     "BuyerCode": "EZ55585538",
     "BuyerOldCode": "",
     "BuyerEmail": "",
     "BuyerNick": "SmileAlice",
     "RecvConsignee": "史绒",
     "RecvMobile": "18217158262",
     "RecvTel": null,
     "RecvAddress": "徐虹中路20号2栋5楼2522室上海盛本通讯科技有限公司",
     "RecvProvince": "上海市",
     "RecvCity": "上海市",
     "RecvCounty": "徐汇区",
     "OrderStatus": 4,
     "BuyerRemark": "",
     "OrderRemark": "",
     "ShopCode": "shirong_上海虹桥仓库",
     "StoreCode": "SR_ALICEAB",
     "ServiceSalerCode": null,
     "ServiceSalerName": null,
     "ServiceChannelCode": "canshu300",
     "SellerSysShopCode": "",
     "SellerCode": "",
     "DelivTypeDesc": "快递",
     "DelivType": 0,
     "Dtls": [
         {
             "Id": 780917,
             "ItemNo": "124124213",
             "BarCode": "124124213",
             "ProductName": "【水果】四川汉源车厘子大樱桃美早黑珍珠新鲜水果包邮3山东10汶川非5斤装(ivanU版)",
             "PriceOriginal": 0.01,
             "PriceSell": 0.01,
             "Quantity": 2,
             "Amount": 0.02,
             "DiscountAmount": 0,
             "FrDiscountAmount": 0,
             "CouponDiscountAmount": 0,
             "RewardFee": 0,
             "UseBonus": 0,
             "UseCouponNo": null,
             "UseCouponValue": 0,
             "IsGift": false,
             "GiftType": null,
             "ReturnQuantity": 2,
             "ReturnPrice": 0.01,
             "ReturnMoney": 0.02,
             "RetailPrice": 0,
             "OutOrderCode": "",
             "OutOrderCodeExt1": "",
             "SkuAttrValsEx": null,
             "OrderCouponAmount": 0,
             "ProCouponAmount": 0,
             "AvgAmount": 0.02,
             "OutCode": null,
             "WxProCouponAmount": 0,
             "WxOrderCouponAmount": 0,
             "DeliverQuantity": 0,
             "RefundQuantity": 0,
             "FxType": 1,
             "SgCode": "0981",
             "SgShopCode": "WDY181012AB",
             "VipCode": "EZ55585538",
             "RelationType": 0,
             "ProductBrandId": 0,
             "ProductBrandCode": "",
             "FxOrderRateInfos": [
                 {
                     "FxType": 1,
                     "FxOcLevel": 1,
                     "Rate": 80,
                     "RateType": 0
                 },
                 {
                     "FxType": 0,
                     "FxOcLevel": 2,
                     "Rate": 20,
                     "RateType": 0
                 }
             ]
         }
     ],
     "fxComResList": [
         {
             "SellerSysShopCode": "WDY181012AB",
             "SellerCode": "0981"
         }
     ],
     "VipCode": "EZ55585538",
     "SelfFetchShopId": 0,
     "SelfFetchShopCode": "",
     "DeliveryCode": null,
     "FxHandler": 0,
     "BuyerName": "呵呵",
     "BuyerIdCard": "",
     "Rate": "",
     "WxPayRequest": "",
     "WxPayResponse": "",
     "TradeNo": "",
     "CommissionType": -1,
     "UseCouponNoList": [],
     "RecvProvinceCode": null,
     "RecvCityCode": null,
     "RecvCountyCode": null,
     "LiveId": 0,
     "LiveName": null,
     "LastModify": "2020-11-18 14:57:44",
     "OrderTag": "",
     "ExchangeRefCode": [],
     "BuyerMobile": "18217158262",
     "ActType": "",
     "ActId": 0,
     "LiveActId": 0,
     "LiveActType": 0,
     "WxUnionID": "oBtnQt4lOvO9a6zGU0CWaModZCjY",
     "UsePrepaidCardAmount": 0.02,
     "UsePrepaidCardGiftAmount": 0
 },
 "Status": true,
 "StatusCode": 200,
 "Msg": "成功",
 "Timestamp": "20201118150006"
}


8122