文档
测试

产品库存列表

GET
/erp-warehouse-product

接口描述

用于获取产品库存列表。

请求头

参数名
类型
描述
必填
Device-Type
string
设备类型,示例:web
必填
Authorization
string
Token,示例:fafaf139-37b8-4d1e-abc3-65d9901697c5
必填

请求参数

参数名
类型
描述
必填
page
int
分页页码,示例:1,默认:1
必填
limit
int
分页数量,示例:10,默认:10
必填
sort
string
排序字段,示例:id,可选值:{"id":"ID","product_name":"产品名称","quantity":"库存数量","weight":"库存重量","warehouse_name":"仓库名称"},默认:id
必填
order
string
排序规则,示例:asc,可选值:{"asc":"升序","desc":"降序"},默认:asc
必填
id
int
产品库存ID,示例:1
必填
product_name
string(100)
产品名称,示例:FROZEN RAW VANNAMEI SHRIMP ( HEAD-LESS SHELL-ON ),搜索方式:模糊
必填
warehouse_name
string(50)
仓库名称,示例:中央金库,搜索方式:模糊
必填
keyword
string(100)
关键字,示例:厄瓜多尔去头虾,搜索方式:模糊,搜索字段:{"product_name":"产品名称","product_no":"产品编号"}
必填

响应参数

application/json
参数名
类型
描述
必填
paging
object
分页对象
必填
total
int
数据总数,示例:5
必填
per_page
int
每页数量,示例:10
必填
current_page
int
当前一页页码,示例:1
必填
last_page
int
最后一页页码,示例:1
必填
data
array
数据列表
必填
id
int
产品库存ID,示例:1
必填
quantity
int
库存数量,示例:430
必填
weight
string
库存重量,示例:4644.00
必填
warehouse_id
int
仓库ID,示例:2
必填
product_id
int
产品ID,示例:13
必填
product_spec_id
int
产品规格ID,示例:118
必填
product
object
产品
必填
id
int
示例:13
必填
image
string
示例:https://api.crm.qljc.rydemo.top/uploads/20211206/e7fed4191707eda21a1d6a63be67fcb7.JPG
必填
name
string
示例:FROZEN RAW VANNAMEI SHRIMP(HEAD-LESS SHELI ON )GRADE 2
必填
product_no
string
示例:1638758508395
必填
unit
string
示例:
必填
price_unit
string
示例:USD
必填
cost_price
string
示例:0.00
必填
market_price
string
示例:0.00
必填
is_spec
int
示例:1
必填
category_id_path
string
示例:1
必填
category_id
int
示例:1
必填
owner_id
int
示例:8
必填
admin_id
int
示例:8
必填
create_time
string
示例:2021-12-06 10:49:26
必填
update_time
string
示例:2021-12-06 10:49:26
必填
delete_time
int
示例:0
必填
spec
array
数据列表
必填
id
int
示例:83
必填
category_spec_id
int
示例:1
必填
name
string
示例:100/200
必填
image
string
示例:
必填
category_spec_name
string
示例:规格
必填
spec_text
string
示例:规格:100/200;包装方式:6X1.8KG
必填
warehouse
object
仓库
必填
id
int
仓库ID,示例:1
必填
name
string
仓库名称,示例:XXXXX仓库
必填