还没有商品!
购物车中还没有商品,赶紧选购吧!
文档帮助中心
文章分类列表

dsc.product.area.list.get 获取商品地区货品列表API

API对接接口 > 商品货品API > dsc.product.area.list.get 获取商品地区货品列表API

dsc.product.area.list.get (获取商品地区货品列表API)【地区模式】

获取货品列表API,获取货品相关信息。

公共参数

  • 请求地址:

  • 环境HTTP请求地址HTTPS请求地址
    正式环境https://www.xxx.com/api.phphttps://www.xxx.com/api.php
  • 公共请求参数:

  • 名称类型是否必须描述
    methodStringAPI接口名称
    app_keyStringAPI接口AppKey

请求参数

名称类型是否必须示例值更多限制描述
product_idNumber可选

货品ID
product_snNumber可选
(唯一性)货品编码
(建议同[goods_id]参数一起使用)
goods_idNumber可选
(非唯一性)商品ID
area_idNumber可选
(非唯一性)仓库地区ID
(不能单独使用,获取仓库 dsc.warehouse.info.get 的region_id值)
pageNumber可选1默认列表分页当前页
page_sizeNumber可选15默认列表分页每页显示条数
formattype必须jsonjson或xml接口类型

响应参数

名称类型示例值描述
product_idNumber
货品ID
goods_idNumber
商品ID
goods_attrString519|528属性ID名称(ID值拼接格式:519|528)
product_snString
货品编码
bar_codeString
货品条形码
product_numberNumber
货品库存
product_pricefloat
货品价格
product_promote_pricefloat
货品促销价
product_market_pricefloat
货品市场价格
product_warn_numberNumber
货品警告库存
area_idNumber
地区ID(对应仓库地区API:region_id,region_type 值为 1)

请求示例

  • PHP

    • $url="http(s)://www.xxx.com/api.php?app_key=A788F457-1A7D-4CC7-ABA0-BFE212BCCD9A&method=dsc.product.area.list.get&format=xml"
    • $Http = new Http();
    • $Http->doGet($url);

1683526960616.png

1683526968430.png

1683526977006.png

1683526984384.png

错误码解释

错误码错误描述解决方案
error返回值

0:成功获取数据

1:数据为空值


发表评论
* 内容:
 
上一篇:删除商品仓库货品信息API 下一篇:dsc.product.area.info.get (获取单条商品地区货品信息)