get
재고조회
查询以请求日期为准的商品编号对应的商品库存情况。
Body
GoodsNoTypeinteger · int32Optional
搜索商品编号类型 0 : SKU 1 : Barcode 默认值:0(SKU)
GoodsNoListstring[]Required
商品编号单 最多50个。
ApiKeystringRequired
APIKey Test KEY:7abd72462c794016849abe4be
Responses
200
sucess
400
Valid Fail
post
POST /api/v1/inventory/get HTTP/1.1
Host: api.etomars.com
Content-Type: application/json
Accept: */*
Content-Length: 86
{
"GoodsNoType": 0,
"GoodsNoList": [
"AAAA1",
"AAAA2"
],
"ApiKey": "XXXXXXXXXXXXXXXXXXXXXXXXX"
}
{
"Data": [
{
"InventoryDate": "text",
"Barcode": "text",
"Brand": "text",
"SKU": "text",
"MainProductName": "text",
"InputCount": 1,
"OutputCount": 1,
"BadCount": 1,
"ModifyCount": 1,
"CurrentCount": 1,
"EstOutputCount": 1,
"EstStockCount": 1
}
],
"Message": "text",
"Code": 1
}
/history : 입출고 내역 조회
查询搜索期间(最长30天)商品编号的商品出入库明细。
Body
StartDateTimestringRequired
搜索开始时间 输入格式:yyy-MM-dd HH:mm:ss 仅输入yyyyMMdd、yyy-MM-dd等日期时, yyy-MM-dd 自动切换到 00:00:00
EndDateTimestringRequired
搜索结束日期和时间 输入格式:yyy-MM-dd HH:mm:ss 仅输入yyyyMMdd、yyy-MM-dd等日期时, yyy-MM-dd 自动切换到 23:59:59 "
GoodsNoTypeinteger · int32Optional
搜索商品编号类型 0 : SKU 1 : Barcode 默认值:0(SKU)
GoodsNoListstring[]Required
商品编号单 最多20个。
ApiKeystringRequired
APIKey Test KEY:7abd72462c794016849abe4be
Responses
200
sucess
400
Valid Fail
post
POST /api/v1/inventory/get/history HTTP/1.1
Host: api.etomars.com
Content-Type: application/json
Accept: */*
Content-Length: 158
{
"StartDateTime": "2023-07-09 00:00:00",
"EndDateTime": "2023-07-31 15:22:31",
"GoodsNoType": 0,
"GoodsNoList": [
"SKU1",
"SKU2"
],
"ApiKey": "XXXXXXXXXXXXXXXXXXXXXXXXX"
}
{
"Data": [
{
"SKU": "text",
"Barcode": "text",
"GoodsName": "text",
"InNOutHistory": [
{
"InNOutDateTime": "text",
"InNOutType": "text",
"InNOutQty": 1,
"Memo": "text"
}
]
}
],
"Message": "text",
"Code": 1
}
Last updated