批量获取一段时间区间内的订单数据(推荐为初始化下载订单使用)
支持平台: 淘宝, 拍拍, 京东, 一号店
批量获取一段时间区间内的订单数据(推荐为初始化下载订单使用)
支持平台: 淘宝, 拍拍, 京东, 一号店
需授权
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
method | String | 是 | API接口名称 |
certi_id | Number | 否 | 分配给应用的证书ID |
from_node_id | String | 是 | API调用的来源节点ID,对于第三方开发者来说,此id即为申请应用颁发的APP KEY |
from_api_v | String | 否 | 请求方版本号 |
to_node_id | String | 否 | API调用的目的节点ID(除了基础服务类api,其他接口必传此参数) |
to_api_v | String | 否 | 接收方版本号 |
callback_url | String | 否 | 响应回调地址,带http路径的标准URL。(调用异步接口此参数必填) |
v | String | 是 | 矩阵API协议版本,可选值:1.0 |
timestamp | String | 是 | 时间戳,格式为yyyy-MM-dd hh:mm:ss,例如:2008-01-25 20:23:30。ShopEx API服务端允许客户端请求时间误差为10分钟 |
format | String | 是 | 可选,指定响应格式。默认JSON ,目前支持格式为JSON |
sign | String | 是 | 对调用API时所有输入参数(包括应用级参数)进行签名结果 |
名称 | 类型 |
|
示例值 | 默认值 | 描述 |
---|---|---|---|---|---|
start_time | Number |
淘宝(必填) 拍拍(必填) 京东(可选) 一号店(可选) |
1332415649 |
获取时间区间内订单的开始时间 格式为时间戳 |
|
end_time | Number |
淘宝(必填) 拍拍(必填) 京东(可选) 一号店(可选) |
1332419249 |
获取时间区间内订单的结束时间 格式为时间戳 |
名称 | 类型 | 是否必须 | 示例值 | 描述 |
---|---|---|---|---|
trade | Trade | 是 | 异步返回单条的订单数据 |
异步请求返回: { "rsp":"running", "msg_id":"3463421b2581604c74dcb9b74ffab2e4" } 任务异步推送: { "rsp":"running", "msg_id":"3463421b2581604c74dcb9b74ffab2e4" "data":{ "trade":{ "tid":"201001010001", "tradetype":"fixed", "created":"2010-11-11 16:50:55", "modified":"2010-11-11 18:50:55", "pay_time ":"2010-11-11 17:50:55", "end_time ":"2010-11-20 17:50:55", "confirm_time":"2010-11-11 17:50:55", "consign_time":"2010-11-11 18:50:55", "title":"测试标题", "status":"TRADE_ACTIVE", "pay_status":"PAY_NO", "ship_status":"SHIP_NO", "has_invoice":"true", "invoice_title":"张三", "invoice_desc":"食品", "invoice_fee":"10.00", "total_goods_fee":"100.00", "total_trade_fee":"110.00", "discount_fee":"0.00", "payed_fee":"0.00", "currency":"CNY", "currency_rate":"1", "total_currency_fee":"110", "buyer_obtain_point_fee":"20", "point_fee":"100", "total_weight":1.5, "shipping_tid":1, "shipping_type":"申通E物流", "shipping_fee":"10.00", "goods_discount_fee":"0.00", "orders_discount_fee":"0.00", "is_delivery":true, "is_cod":true, "is_protect":true, "protect_fee":"5", "payment_tid":"1", "payment_type":"支付宝", "receiver_name":"张三", "receiver_email":"zhangshan@sohu.com", "receiver_state":"上海", "receiver_city":"上海", "receiver_district":"徐汇区", "receiver_address":"上海徐汇区虹桥路1号101", "receiver_zip":"201200", "receiver_mobile":"13912563563", "receiver_phone":"58565858", "receiver_time":"2010-11-20 18:50:55", "commission_fee":"0.00" "buyer_alipay_no":"alipay@shopextest.cn" "buyer_id":"1001", "buyer_uname":"testname", "buyer_email":"buyer@shopextest.cn", "buyer_memo":"", "buyer_flag":"", "buyer_message":"", "buyer_rate":"true" "orders_number":"2", "orders":{ "order":[{ "oid":"1", "type":"goods", "type_alias":"商品", "iid":"1", "title":"衬衫", "items_num":"2", "order_status":"SHIP_NO", "total_order_fee":"1200.00", "discount_fee":"0.00", "weight":"1", "consign_time":"2010-10-01 08:01:00", "order_items":{ "order_item":[{ "sku_id":"001" "iid":"1", "bn":"bn0001_01", "name":"白色、41/衬衫", "sku_properties":"颜色:白色;尺码:41", "price":"100", "num":"10", "weight":"0.5", "score":"20", "total_item_fee":"1000", "sendnum":"10", "item_type":"product" }, { "sku_id":"001" "iid":"1", "bn":"bn0001_01", "name":"赠送领带(粉红色)", "sku_properties":"颜色:粉红色", "price":"100", "num":"2", "weight":"0.5", "score":"20", "total_item_fee":"200", "sendnum":"2", "item_type":"gift" }] } }, { "oid":"2", "type":"goods", "type_alias":"商品", "iid":"2", "title":"裤子", "items_num":"1", "total_order_fee":"100.00", "order_status":"SHIP_NO", "discount_fee":"0.00", "weight":"0.5", "consign_time":"2010-10-05 08:02:00", "order_items":{ "order_item":[{ "sku_id":"001", "iid":"1", "bn":"bn0001_01", "name":"黑色、XL码/裤子", "sku_properties":"颜色:黑色;尺码:XL", "price":"100", "num":"1", "weight":"0.5", "score":"20", "total_item_fee":"100", "sendnum":"1", "item_type":"product" }] } }] }, "seller_rate":false, "seller_uname":"shopextest100", "seller_alipay_no":"shopextest100@shopextest.cn", "seller_mobile":"13512501826", "seller_phone":"010-58789403-123", "seller_email":"", "seller_name":"我在测试", "seller_memo":"", "seller_flag":1, "trade_memo":"请在周一至周五送货,谢谢", "buyer_name":"张三", "buyer_mobile":"13915812345", "buyer_phone":"021-58761234" "buyer_state":"上海", "buyer_city":"上海", "buyer_district":"徐汇区" "buyer_address":"上海虹桥路1号" "buyer_zip":"200120" } } }
错误码 | 错误描述 | 解决方案 |
---|