b2c.goods.get_all_list 获取商品列表信息

author: danny,danny@shopex.cn

2014-06-19

API应用级输入参数

参数 类型 是否必须 说明
cat_id Number N 商品分类id
cid Number N 商品类型id
brand_id Number N 商品品牌id
page_no Number N 分页页码(默认:1)
page_size Number N 分页大小(默认:20)

API应用级返回结果

成功:

array (
  'rsp' => 'succ',
  'data' => 
  array (
    'item' => '{"item":[{"iid":"1","title":"测试商品","bn":"G4C84C14E1AB44","shop_cids":"3","cid":"5","brand_id":"8","props":"1:55;2:62;3:67;4:84","input_pids":"","input_str":"","description":"","default_img_url":"","num":"1189.00","weight":"360.000","score":"","price":"298.000","market_price":"398.000","unit":"","cost_price":"168.000","modified":"2011-11-21 11:55:18","list_time":"2010-10-15 17:19:05","delist_time":"1970-01-01 08:00:00","created":"2011-11-21 11:55:18","skus":"[{"sku_id":"1","iid":"1","bn":"P4C84C14E1AB67","properties":"1:1_红色;3:27_34","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"2","iid":"1","bn":"P4C84C14E1AB7E","properties":"1:15_蓝色;3:27_34","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"3","iid":"1","bn":"P4C84C14E1AB8C","properties":"1:1_红色;3:28_35","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"4","iid":"1","bn":"P4C84C14E1AB99","properties":"1:15_蓝色;3:28_35","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"5","iid":"1","bn":"P4C84C14E1ABA5","properties":"1:1_红色;3:29_36","quantity":"100.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1321847718","cost":"168.000"},{"sku_id":"6","iid":"1","bn":"P4C84C14E1ABB2","properties":"1:15_蓝色;3:29_36","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"7","iid":"1","bn":"P4C84C14E1ABBF","properties":"1:1_红色;3:30_37","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"8","iid":"1","bn":"P4C84C14E1ABCC","properties":"1:15_蓝色;3:30_37","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"9","iid":"1","bn":"P4C84C14E1ABD9","properties":"1:1_红色;3:31_38","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"10","iid":"1","bn":"P4C84C14E1ABE6","properties":"1:15_蓝色;3:31_38","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"11","iid":"1","bn":"P4C84C14E1ABF3","properties":"1:1_红色;3:32_39","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"},{"sku_id":"12","iid":"1","bn":"P4C84C14E1AC00","properties":"1:15_蓝色;3:32_39","quantity":"99.00","weight":"360.000","price":"298.000","market_price":"398.000","modified":"1287134345","cost":"168.000"}]"}]}',
  ),
  'res' => '',
)

失败:

array (
  'rsp' => 'fail',
  'res' => '必填参数不存在!',
  'data' => 
  array (
    'item' => '',
  ),
)

內容目录

上一个主题

b2c.goods.delete 删除单个商品信息

下一个主题

b2c.goods.get_brands 获取品牌信息

快速搜索

输入相关的模块,术语,类或者函数名称进行搜索