您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 招标投标 > Ecstore提供的商品相关标准接口
标准接口Ecstore提供的标准接口(部分)潘璠一、订单相关1b2c.order.search搜索订单API应用级输入参数参数类型是否必须说明start_timedateY订单开始时间(此时间是订单的最后更新时间)如:2014-02-01end_timedateY订单结束时间(此时间是订单的最后更新时间)如:2014-02-20page_nointN页号(可以为空,不为空时此参数必须是数字或数字字符串,并且大于0)如:1page_sizeintN每页大小(可以为空,不为空时此参数必须是数字或数字字符串,并且小于100)如:60API应用级返回结果成功:Array([rsp]=succ[data]=Array('trades'=Array(标准接口Array('tid'=,#订单号'status'=,#订单状态(TRADE_ACTIVE活动订单或TRADE_CLOSED关闭订单)'pay_status'=,#支付状态(PAY_NO未支付或PAY_FINISH支付完成或PAY_TO_MEDIUM支付到担保方或PAY_PART或REFUND_PART或REFUND_ALL)'ship_status'=,#发货状态(SHIP_NO未发货或SHIP_FINISH发货完成)'modified'=,#最后更新时间(date格式))),#此参数是查询到的订单数据'total_results'=100,#此参数代表数据总数'has_next'=true,#此参数代表是否有分页(true代表有分页,false代表无分页))[res]=)失败:Array([rsp]=fail[data]=xxx错误[res]=错误码)标准接口2b2c.order.detail查询订单详情API应用级输入参数参数类型长度是否必须说明及示例tidstring16Y订单号(20140218196737)API应用级返回结果成功:data为json数据Array([rsp]=succ[data]={rsp:succ,data:null,res:\u8be5\u8bf7\u6c42\u5df2\u7ecf\u5904\u7406\uff0c\u4e0d\u80fd\u5728\u5904\u7406\u4e86\uff01}{rsp:succ,data:{tid:20140218196737,title:OrderCreate,created:2014-02-1819:01:10,modified:2014-02-1819:01:18,lastmodify:2014-02-1819:01:18,status:TRADE_ACTIVE,pay_status:PAY_FINISH,ship_status:SHIP_NO,has_invoice:false,invoice_title:,invoice_fee:0.000,total_goods_fee:88.20,total_trade_fee:44.200,discount_fee:0.000,goods_discount_fee:0.000,orders_discount_fee:0.000,payed_fee:44.200,currency:CNY,currency_rate:1.0000,total_currency_fee:44.200,buyer_obtain_point_fee:0.000,point_fee:44.000,total_weight:0.000,receiver_time:\u4efb\u610f\u65e5\u671f\u4efb\u610f\u65f6\u95f4\u6bb5,shipping_tid:1,shipping_type:\u5feb\u9012,shipping_fee:0.000,is_protect:false,protect_fee:0.000,payment_tid:deposit,payment_type:\u9884\u5b58\u6b3e,is_cod:false,receiver_name:123,receiver_email:,receiver_mobile:123,receiver_state:\u4e0a\u6d77,receiver_city:\u4e0a\u6d77\u5e02,receiver_district:\u6768\u6d66\u533a,receiver_address:\u4e0a\u6d77\u5e02\u6768\u6d66\u533a123,receiver_zip:,receiver_phone:,pay_cost:0.000,buyer_memo:,orders_number:1,buyer_uname:demo,buyer_name:,buyer_address:,buyer_mobile:,buyer_phone:,buyer_email:demo@demo.2,buyer_zip:null,orders:{order:[{oid:31,orders_bn:P4C92CFA31E88A,type:goods,type_alias:\u5546\u5标准接口4c1\u533a\u5757,iid:31,title:\u5168\u68c9\u4e94\u5206\u8896\u7ed1\u7ef3\u8fde\u5e3d\u77ed\u6b3e\u9488\u7ec7\u886b,items_num:1,order_status:SHIP_NO,price:88.200,total_order_fee:88.2,sale_price:88.2,discount_fee:0,consign_time:,order_items:{item:[{sku_id:303,iid:47,bn:P4C92CFA31E88A,name:\u5168\u68c9\u4e94\u5206\u8896\u7ed1\u7ef3\u8fde\u5e3d\u77ed\u6b3e\u9488\u7ec7\u886b,sku_properties:\u989c\u8272:\u9ed1\u8272;\u5c3a\u7801:S,weight:null,score:0,price:88.200,num:1,sendnum:0,total_item_fee:88.2,sale_price:88.200,item_type:product,item_status:normal,discount_fee:0}]},weight:0}]},trade_memo:null},res:}[res]=)1.订单详情返回值(json(array))失败:Array([rsp]=fail[data]=xxx错误[res]=错误码)3b2c.order.remark修改订单备注API应用级输入参数名称类型是否必需描述示例标准接口order_bnStringY交易编号(交易ID)20111111154444memojsonY备注信息{op_content:remark,op_name:allen,op_time:123456789}API应用级返回结果成功[{'rsp':'succ','data':true,'res':{'tid':'20111111154444'}}]失败{'rsp':'fail','data':'订单备注保存失败!','res':'E_USER_ERROR'}4b2c.order.status_update修改订单状态API应用级输入参数名称类型是否必需描述示例标准接口order_bnStringY交易编号(交易ID)20111111154444statusNumberY交易状态。可选值:active(活单)dead(死单)finish(完成)activeAPI应用级返回结果成功[{'rsp':'succ','data':true,'res':{'tid':'20111111154444'}}]失败{'rsp':'fail','data':'订单状态修改失败!','res':'E_USER_ERROR'}二、商品相关1b2c.update_store.updateStore更新商品库存API应用级输入参数标准接口参数类型是否必须说明list_quantityStringY货品货号与库存数量的数组信息json_encode(array(array('bn'='products100','quantity'='5'),array('bn'='products101','quantity'='8')))API应用级返回结果成功:array('rsp'='succ','data'=true,'res'='',)失败:array('rsp'='fail','res'='需要更新的货品的库存不存在!','data'=array(),)标准接口2b2c.goods.get_cat_list根据商品分类ID获取下级分类列表API应用级输入参数参数类型是否必须说明cat_idintN分类ID(如果不填默认为0,返回顶级分类列表)API应用级返回结果成功后,返回结果Array([rsp]=succ[data]=Array([0]=Array([parent_id]=1[cat_id]=2[cat_name]=凉鞋[is_leaf]=false[type_id]=5[last_modify]=1418119689)[1]=Array标准接口([parent_id]=1[cat_id]=3[cat_name]=单鞋[is_leaf]=false[type_id]=5[last_modify]=1418119689)[2]=Array([parent_id]=1[cat_id]=4[cat_name]=靴子[is_leaf]=false[type_id]=5[last_modify]=1418119689))[res]=6291A03BFC9D5E9299D342D39A610CD7)失败返回Array([rsp]=succ[res]=B0F492CB13C2EC318FCDE016363386CF标准接口[data]=null)3b2c.goods.get_type_detial根据商品类型ID,获取商品类型详情API应用级输入参数参数类型是否必须说明type_idintN商品类型IDAPI应用级返回结果成功后,返回结果Array([rsp]=succ[data]=Array([type_id]=2[name]=女装[alias]=[price]=[tab]=标准接口[params]=[setting]=Array([use_brand]=1[use_props]=1)[props_values]=Array([1]=Array([props_id]=1[props_name]=季节[search]=nav[show]=on[props_values]=Array([1]=Array([name]=春[props_value_id]=1)[2]=Array([name]=夏[props_value_id]=2)标准接口[3]=Array([name]=冬[props_value_id]=3)))[2]=Array([props_id]=2[props_name]=质地[search]=nav[show]=on[props_values]=Array([4]=Array([name]=全棉[props_value_id]=4)[5]=Array([name]=真丝[props_value_id]=5)标准接口[6]=Array([name]=涤纶[props_value_id]
本文标题:Ecstore提供的商品相关标准接口
链接地址:https://www.777doc.com/doc-2910950 .html