orderGet (获取订单列表)


以字典形式返回,不再建议使用

接口信息

协议 请求方式 请求地址
HTTPS POST https://open.mengdian.com/api/mname/WE_MALL/cname/orderGet?accesstoken=ACCESS_TOKEN

请求参数

备注内容

必须设置下单时间(create_begin_time,create_end_time)或更新时间(update_begin_time,update_end_time)中的一对,允许查询任何时间点,但查询的时间跨度不能超过24小时。

请求示例

{
  "order_state": 0,
  "order_fields": "*",
  "order_detail_fields": "*",
  "create_begin_time": "2014-01-01 10:00:00",
  "create_end_time": "2014-01-01 11:00:00",
  "update_begin_time": "2014-01-01 10:00:00",
  "update_end_time": "2014-01-01 11:00:00",
  "page_size": 20,
  "page_no": 1,
  "need_distribution_info": false
}

响应参数

响应示例

{
 "row_count":100,
 "page_no":1,
 "page_size":20,
 "page_count":5,
 "page_data":[
   {
     "order_no":"155015033121917",
     "order_state":0,
     "order":{
       "Id":1174908,
       "AId":456,
       "MemberId":"2355cd37-16d4-ca97-b238-a1d1b87ba944",
       "OpenId":"",
       "OrderNo":"155015033121917",
       "Source":"VDian",
       "TotalAmount":0.11,
       "DiscountAmount":0,
       "RealAmount":0.11,
       "IsOnlinePay":true,
       "PaymentType":"tenpay",
       "DiscountInfo":null,
       "PayStatus":1,
       "PayTime":"2015-03-31T14:58:21.417",
       "DeliveryFee":0,
       "DeliveryType":"免运费",
       "Carrier":null,
       "DeliveryNo":null,
       "ReceiverAddressRemark":1,
       "ConsigneeName":"阿琴",
       "ConsigneeAddress":"上海上海市宝山区逸仙路2816号华滋奔腾大厦A栋14楼",
       "ConsigneeTel":"15618868608",
       "ConsignorName":null,
       "ConsignorTel":null,
       "ConsignorAddress":"上海上海市宝山区逸仙路2816号华滋奔腾大厦A栋14楼",
       "DeliveryTime":"1970-01-01T00:00:00",
       "ReceivingTime":"1970-01-01T00:00:00",
       "DeliveryStatus":0,
       "RightsApplyTime":"1970-01-01T00:00:00",
       "RightsStatus":-1,
       "OldStatus":null,
       "EvaluationStatus":0,
       "OrderStatus":1,
       "Points":0,
       "CouponsNo":null,
       "CouponsAmount":0,
       "PointsAmount":0,
       "VoucherNo":null,
       "VoucherAmount":0,
       "PointsUse":0,
       "BalanceAmount":0,
       "TotalQty":1,
       "TotalWeight":0,
       "MemberName":"",
       "MarkType":0,
       "MarkContent":null,
       "Remark":"",
       "CreateTime":"2015-03-31T14:56:48.213",
       "CreateBy":"2355cd37-16d4-ca97-b238-a1d1b87ba944",
       "LastUpdateTime":"2015-03-31T14:58:21.417",
       "LastUpdateBy":"2355cd37-16d4-ca97-b238-a1d1b87ba944",
       "IsDelete":false,
       "IsMemberDelete":false,
       "Complete":"1970-01-01T00:00:00",
       "PaymentName":"财付通",
       "PaymentId":"942",
       "OrderType":1,
       "IsMemberClose":false,
       "IsUpPrice":false,
       "PaymentOrder":null,
       "Transaction_id":null,
       "IsTrash":false,
       "RedPackageId":0,
       "RedPackageAmount":0,
       "ActivityType":0,
       "SDeliverAgentId":0,
       "OrderFlagColor":0,
       "OrderFlagContent":null
     },
     "goods":[
       {
         "Id":175061,
         "AId":456,
         "MemberId":"2355cd37-16d4-ca97-b238-a1d1b87ba944",
         "OpenId":"",
         "OrderId":1174908,
         "ItemId":150136,
         "ProductId":180295,
         "ItemName":"金额超大的商品99675",
         "ImageUrl":"http://shopimg.weimob.com/456/Goods/1503171143357225.jpg",
         "ItemDescription":"白色",
         "Qty":1,
         "Price":0.11,
         "RealPrice":0.11,
         "Amount":0.11,
         "RealAmount":0.11,
         "Evaluation":"null",
         "Reply":"null",
         "CreateBy":"2355cd37-16d4-ca97-b238-a1d1b87ba944",
         "CreateTime":"2015-03-31T14:56:48",
         "LastUpdateBy":"2355cd37-16d4-ca97-b238-a1d1b87ba944",
         "LastUpdateTime":"2015-03-31T14:56:48",
         "IsDelete":false,
         "InventoryType":0,
         "ProductsCode":"1",
         "GoodsCode":"null"
       }
     ],
     "distribution":{
       "SDeliverAgentId":200000031,
       "SDeliverAgentInfo":{
         "Id":66,
         "AId":670,
         "FId":"200000031",
         "CodeNum":21,
         "CodeUsed":7,
         "RealPercent":100,
         "LowPercent":100,
         "HighPercent":100,
         "ShowPercent":100,
         "AName":"一级发货分销商(数据全)",
         "ADesc":"",
         "ALId":"207",
         "AType":"1",
         "TimeStart":1425916800,
         "TimeEnd":1457539199,
         "TimeCreate":1425968335,
         "State":1,
         "Womid":829,
         "Brokerage":0,
         "Paynum":0,
         "Actiondate":"0",
         "LevelName":"袁浩婷",
         "StartTime":"2015-03-1000:00:00.000",
         "EndTime":"2016-03-0923:59:59.000",
         "CcreateTime":"2015-03-1014:18:55.000",
         "QrId":0,
         "QrInfo":null,
         "DeliverId":200000031
       },
       "AgentId":100000030,
       "AgentInfo":{
         "Id":79,
         "AId":670,
         "FId":"100000030",
         "CodeNum":6,
         "CodeUsed":4,
         "RealPercent":60,
         "LowPercent":110,
         "HighPercent":200,
         "ShowPercent":200,
         "AName":"二级不发货分销商",
         "ADesc":"",
         "ALId":"94",
         "AType":"1",
         "TimeStart":1427385600,
         "TimeEnd":1459007999,
         "TimeCreate":1427423494,
         "State":1,
         "Womid":860,
         "Brokerage":0,
         "Paynum":0,
         "Actiondate":"0",
         "LevelName":"3",
         "StartTime":"2015-03-2700:00:00.000",
         "EndTime":"2016-03-2623:59:59.000",
         "CcreateTime":"2015-03-2710:31:34.000",
         "QrId":0,
         "QrInfo":null,
         "DeliverId":200000031
       }
     }
   }
 ]
}

全局返回码

返回码 描述 解决方案
-1 系统繁忙
0 请求成功
8000001 获取access_token失败,不经常发生
8000002 目标地址不合法
8000003 非法的参数
8000004 非法的参数格式
8000005 需要以get方式请求
8000006 需要以post方式请求
8000007 需要https请求
8000008 Xml/Json格式解析错误
8000101 不可用的accessToken
8000102 未被授权的API
8000103 超过了API调用次数
8000104 指定mname和cname没有对应的API
8000105 accessToken过期
8000106 转发超时
8000199 转发系统错误,请联系我们
8000901 全局系统错误,请联系我们
8000902 未被配置的API转发,请联系我们
8000903 其他accessToken生成错误,请联系我们