文档
测试

子商品库存日志列表

GET
api/admin/inventory_histories

接口描述

库存日志列表

请求参数

参数名
类型
描述
必填
inventory_item_id
int
必填
location_id
int
仓库ID
必填
created_at_max
string
示例:2022-03-21T15:06:31Z
可选
created_at_min
string
示例:2022-03-21T15:06:31Z
可选
event_type
string
示例:1
可选
page
int
示例:1
可选
per_page
int
示例:50
可选
income
bool
入库(true)出库(false)
可选

响应参数

参数名
类型
描述
必填
count
int
示例:888
必填
inventory_histories
array
数据列表
必填
id
int
必填
event_type
string
示例:Order created
必填
other
string
示例:00008088
必填
adjusted_by
string
示例:Tom
必填
adjustment
int
变更的库存,大于0入库,小于0出库
必填
after_stock
int
示例:800
必填
before_stock
int
示例:+100
必填
created_at
string
示例:2022-03-21T15:06:31Z
必填