Lingxing
切换旧版

查询FBA库存列表 - v2

POST/basicOpen/openapi/storage/fbaWarehouseDetail

支持查询FBA库存,对应系统【仓库】>【FBA库存明细】数据,数量维度展示

接口信息

API Path请求协议请求方式令牌桶容量
/basicOpen/openapi/storage/fbaWarehouseDetailHTTPSPOST1

请求参数

offsetinteger
分页偏移量,默认0
lengthinteger
分页长度,默认20,仅支持20、50、100、200、500、1000、2000、5000
search_fieldstring
搜索维度:
sku
product_name
seller_sku
fnsku
asin
parent_asin
spu
spu_name
search_valuestring
搜索值
is_cost_pageinteger
展示维度:
0 数量维度展示
1 成本维度展示
默认0数量维度
cidstring
分类
sidstring
店铺id(支持多个,使用,分隔)
bidstring
品牌
attributestring
属性
asin_principalstring
Listing负责人uid,对应查询ERP用户信息列表uid字段
多个使用,分隔
statusstring
在售状态:
0 停售
1 在售
senior_search_liststring
高级搜索列表,详情见附加说明
fulfillment_channel_typestring
配送方式:
FBA
FBM
is_hide_zero_stockstring
是否隐藏零库存行:
0 不隐藏零库存行
1 隐藏零库存行
is_parant_asin_mergestring
是否合并父ASIN:
0 不合并父ASIN
1 合并父ASIN
is_contain_del_lsstring
是否显示已删除Listing:
0 不显示已删除Listing
1 显示已删除Listing
query_fba_storage_quantity_listboolean
true 是、false 否;默认false,如果传入true,则出参数据中的欧洲共享仓会将出参字段-fba_storage_quantity_list的值返回

请求cURL示例

curl --location 'https://openapi.lingxing.com/basicOpen/openapi/storage/fbaWarehouseDetail?access_token=value&timestamp=value&sign=value&app_key=value' \
--header 'Content-Type: application/json' \
--data '{
    "cid": "value",
    "bid": "value",
    "sid": "value",
    "attribute": "value",
    "asin_principal": "value",
    "search_field": "value",
    "search_value": "value",
    "is_cost_page": value,
    "status": "value",
    "senior_search_list": "value",
    "offset": value,
    "length": value,
    "fulfillment_channel_type": "value",
    "is_hide_zero_stock": "value",
    "is_parant_asin_merge": "value",
    "is_contain_del_ls": "value"
}'

返回结果

Json Object

codeinteger必填
状态码,0:成功
示例 0
messagestring必填
消息提示
示例 success
error_detailsarray<any>必填
数据校验失败时的错误详情
request_idstring必填
请求链路id
示例 a0d54debf93140f3b58d1ed81e8e3583.178.17255922733991817
response_timestring必填
响应时间
示例 2024-09-06 11:11:13
dataarray<object>必填
响应数据
隐藏子属性
namestring必填
仓库名
示例 仓库4
storage_type_namestring必填
仓储类型
seller_group_namestring必填
共享仓店铺名
sidinteger必填
店铺id【当仓库为共享仓时,sid为0返回】
示例 3
asinstring必填
ASIN
示例 B0ABC80784
parent_asinstring必填
父ASIN
示例 B0ABC73590
asin_principal_listarray<any>必填
负责人
product_namestring必填
品名
示例 Sony 儿童耳机
small_image_urlstring必填
预览图链接
seller_skustring必填
MSKU
示例 MSKUFDA5E30
fnskustring必填
FNSKU
示例 FNC020467
skustring必填
SKU
示例 SKU9E12CC2
category_textstring必填
分类文本
示例 分类2
cidinteger必填
分类Id
示例 2
product_brand_textstring必填
品牌文本
示例 品牌3
bidinteger必填
品牌Id
示例 3
share_typeinteger必填
共享类型:
0 非共享
1 北美共享
2 欧洲共享
示例 0
totalinteger必填
总数
示例 0
total_pricenumber必填
总价
示例 0
available_totalinteger必填
可用总数
示例 0
available_total_pricestring必填
可用总数成本价
afn_fulfillable_quantityinteger必填
FBA可售
示例 0
afn_fulfillable_quantity_pricestring必填
FBA可售成本价
示例 0
afn_reserved_quantitystring必填
FBA预留
示例 0
afn_reserved_quantity_pricestring必填
FBA预留成本
示例 0
reserved_fc_transfersinteger必填
待调仓
示例 0
reserved_fc_transfers_pricestring必填
待调仓成本价
示例 0
reserved_fc_processinginteger必填
调仓中
示例 0
reserved_fc_processing_pricestring必填
调仓中成本价
示例 0
reserved_customerordersinteger必填
待发货
示例 0
reserved_customerorders_pricestring必填
待发货成本价
示例 0
quantityinteger必填
FBM可售
示例 0
quantity_pricestring必填
FBM可售成本价
示例 0
afn_unsellable_quantityinteger必填
不可售
示例 0
afn_unsellable_quantity_pricestring必填
不可售成本价
示例 0
afn_inbound_working_quantityinteger必填
计划入库
示例 0
afn_inbound_working_quantity_pricestring必填
计划入库成本价
示例 0
afn_inbound_shipped_quantityinteger必填
在途
示例 0
afn_inbound_shipped_quantity_pricestring必填
在途成本价
示例 0
afn_inbound_receiving_quantityinteger必填
入库中
示例 0
afn_inbound_receiving_quantity_pricestring必填
入库中成本价
示例 0
stock_up_numinteger必填
实际在途
示例 0
stock_up_num_pricestring必填
实际在途成本价
示例 0
afn_researching_quantityinteger必填
调查中数量
示例 0
afn_researching_quantity_pricestring必填
调查中数量成本价
示例 0
total_fulfillable_quantityinteger必填
总可用库存:
可售+待调仓+调仓中
【非ERP页面对应总库存】
示例 0
inv_age_0_to_30_daysinteger必填
0-1个月库龄
示例 0
inv_age_0_to_30_pricestring必填
0-1个月库龄成本价
示例 0
inv_age_31_to_60_daysinteger必填
1-2个月库龄
示例 0
inv_age_31_to_60_pricestring必填
1-2个月库龄成本价
示例 0
inv_age_61_to_90_daysinteger必填
2-3个月库龄
示例 0
inv_age_61_to_90_pricestring必填
2-3个月库龄成本价
示例 0
inv_age_0_to_90_daysinteger必填
0-3个月库龄
示例 0
inv_age_0_to_90_pricestring必填
0-3个月库龄成本价
示例 0
inv_age_91_to_180_daysinteger必填
3-6个月库龄
示例 0
inv_age_91_to_180_pricestring必填
3-6个月库龄成本价
示例 0
inv_age_181_to_270_daysinteger必填
6-9个月库龄
示例 0
inv_age_181_to_270_pricestring必填
6-9个月库龄成本价
示例 0
inv_age_271_to_330_daysinteger必填
9-11个月库龄
示例 0
inv_age_271_to_330_pricestring必填
9-11个月库龄成本价
示例 0
inv_age_271_to_365_daysinteger必填
9-12个月库龄
示例 0
inv_age_271_to_365_pricestring必填
9-12个月库龄成本价
示例 0
inv_age_331_to_365_daysinteger必填
11-12个月库龄
示例 0
inv_age_331_to_365_pricestring必填
11-12个月库龄成本价
示例 0
inv_age_365_plus_daysinteger必填
12个月以上库龄
示例 0
inv_age_365_plus_pricestring必填
12个月以上库龄成本价
示例 0
recommended_actionstring必填
推荐操作
sell_throughnumber必填
售出率
示例 0
estimated_excess_quantitynumber必填
预计冗余数量
示例 0
estimated_storage_cost_next_monthnumber必填
预计30天仓储费用
示例 0
fba_minimum_inventory_levelnumber必填
最低库存水平
示例 0
fba_inventory_level_health_statusstring必填
库存水平健康度
historical_days_of_supplynumber必填
历史供货天数
示例 0
historical_days_of_supply_pricestring必填
历史供货天数成本价
示例 0
low_inventory_level_fee_appliedstring必填
低库存水平费收取情况
fulfillment_channelstring必填
配送方式
示例 AMAZON_NA
cg_pricestring必填
单位采购成本
cg_transport_costsstring必填
单位头程费用
warehouse_damaged_quantityinteger必填
不可售详情:房屋残损
customer_damaged_quantityinteger必填
不可售详情:买家残损
carrier_damaged_quantityinteger必填
不可售详情:承运人残损
distributor_damaged_quantityinteger必填
不可售详情:分销商残损
defective_quantityinteger必填
不可售详情:存在瑕疵
expired_quantityinteger必填
不可售详情:已过期
fba_storage_quantity_listarray<object>
FBA可售信息列表,当仓库为共享仓库时,该字段才返回
隐藏子属性
sidinteger必填
店铺id
namestring必填
店铺名称
quantity_for_local_fulfillmentinteger必填
FBA可售数量
totalinteger必填
总数
示例 1

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "4683c92968ca47ccbff50f1ea8e4fb7a.165.17299260210002027",
    "response_time": "2024-10-26 15:00:21",
    "data": [
        {
            "name": "韧啸-US美国仓",
            "sid": 136,
            "asin": "B0D6XVLTJL",
            "parent_asin": "B0ABC73590",
            "product_name": "无线鼠标",
            "small_image_url": "https://image.distributetop.com/erp-vue/90128554873982976/20240802/027e8b7698414d899f7f0a2e77f97268.jpeg",
            "seller_sku": "20240613-1",
            "fnsku": "X004A0PW6J",
            "sku": "shubiao_1",
            "category_text": "电子设备\\鼠标",
            "cid": 3318,
            "product_brand_text": "罗技",
            "bid": 1173,
            "share_type": 0,
            "total": 2,
            "total_price": 40.00,
            "available_total": 42,
            "available_total_price": "840.00",
            "afn_fulfillable_quantity": 0,
            "afn_fulfillable_quantity_price": "0.00",
            "reserved_fc_transfers": 0,
            "reserved_fc_transfers_price": "0.00",
            "reserved_fc_processing": 0,
            "reserved_fc_processing_price": "0.00",
            "reserved_customerorders": 0,
            "reserved_customerorders_price": "0.00",
            "quantity": 0,
            "quantity_price": "0.00",
            "afn_unsellable_quantity": 0,
            "afn_unsellable_quantity_price": "0.00",
            "afn_inbound_working_quantity": 47,
            "afn_inbound_working_quantity_price": "940.00",
            "afn_inbound_shipped_quantity": 2,
            "afn_inbound_shipped_quantity_price": "40.00",
            "afn_inbound_receiving_quantity": 0,
            "afn_inbound_receiving_quantity_price": "0.00",
            "stock_up_num": 42,
            "stock_up_num_price": "840.00",
            "afn_researching_quantity": 0,
            "afn_researching_quantity_price": "0.00",
            "total_fulfillable_quantity": 0,
            "inv_age_0_to_90_days": 0,
            "inv_age_0_to_90_price": "0.00",
            "inv_age_271_to_365_days": 0,
            "inv_age_271_to_365_price": "0.00",
            "inv_age_0_to_30_days": 0,
            "inv_age_0_to_30_price": "0.00",
            "inv_age_31_to_60_days": 0,
            "inv_age_31_to_60_price": "0.00",
            "inv_age_61_to_90_days": 0,
            "inv_age_61_to_90_price": "0.00",
            "inv_age_91_to_180_days": 0,
            "inv_age_91_to_180_price": "0.00",
            "inv_age_181_to_270_days": 0,
            "inv_age_181_to_270_price": "0.00",
            "inv_age_271_to_330_days": 0,
            "inv_age_271_to_330_price": "0.00",
            "inv_age_331_to_365_days": 0,
            "inv_age_331_to_365_price": "0.00",
            "inv_age_365_plus_days": 0,
            "inv_age_365_plus_price": "0.00",
            "recommended_action": "",
            "sell_through": 0.0,
            "estimated_excess_quantity": 0.0,
            "estimated_storage_cost_next_month": 0.0,
            "fba_minimum_inventory_level": 0.0,
            "fba_inventory_level_health_status": "",
            "historical_days_of_supply": 0.00,
            "historical_days_of_supply_price": "0.00",
            "low_inventory_level_fee_applied": "",
            "fulfillment_channel": "AMAZON_NA",
            "cg_price": "",
            "cg_transport_costs": "AMAZON_NA",
            "warehouse_damaged_quantity": 0,
            "customer_damaged_quantity": 0,
            "carrier_damaged_quantity": 0,
            "distributor_damaged_quantity": 0,
            "defective_quantity": 0,
            "expired_quantity": 0,
            "fba_storage_quantity_list": [
                {
                    "sid": 39,
                    "name": "ouzhou001-MX",
                    "quantity_for_local_fulfillment": 10
                },
                {
                    "sid": 38,
                    "name": "ouzhou001-IT",
                    "quantity_for_local_fulfillment": 10
                }
            ]
        }
    ],
    "total": 1
}

附加说明

senior_search_list 高级搜索列表字段说明如下:

senior_search_list 是一个 json 字符串,用于多条件组合搜索,每个元素表示一个搜索条件(字段+值列表)。 需严格符合 JSON 格式,字段名和值需用双引号包裹。

| 字段名 | 类型 | 必填| 说明 | |:----- |:-------|:--|:----------------------------------------------| | name | string |是 | 搜索条件的显示名称(如“SKU”“品名”等),与 search_field 为固定枚举映射 | | search_field | string |是 | 搜索条件的显示名称(如“SKU”“品名”等),与 search_field 为固定枚举映射 | | search_value | array |是 | 搜索值列表,支持多值(逻辑“OR”关系)。 |

使用示例:

    "senior_search_list": "[{ \"name\":         \"SKU\", 
                              \"search_field\": \"sku\", 
                              \"search_value\": [\"sku1\", \"sku2\", \"sku3\"]},
                            { \"name\":         \"品名\", 
                              \"search_field\": \"product_name\", 
                              \"search_value\": [\"衣服\", \"裤子\", \"鞋子\"]},
                            { \"name\":         \"MSKU\", 
                              \"search_field\": \"seller_sku\", 
                              \"search_value\": [\"msku1\", \"msku2\", \"msku3\"]},
                            { \"name\":         \"FNSKU\", 
                              \"search_field\": \"fnsku\", 
                              \"search_value\": [\"fnsku1\", \"fnsku2\", \"fnsku3\"]},
                            { \"name\":         \"ASIN\", 
                              \"search_field\": \"asin\", 
                              \"search_value\": [\"asin1\", \"asin2\", \"asin3\"]},
                            { \"name\":         \"父ASIN\", 
                              \"search_field\": \"parent_asin\", 
                              \"search_value\": [\"fuAsin1\", \"fuAsin2\", \"fuAsin3\"]},
                            { \"name\":         \"SPU\", 
                              \"search_field\": \"spu\", 
                              \"search_value\": [\"spu1\", \"spu2\", \"spu3\"]},
                            { \"name\":         \"款名\", 
                              \"search_field\": \"spu_name\", 
                              \"search_value\": [\"kuan1\", \"kuan2\", \"kuan3\"]}]"

name, search_field 字段说明如下: name 和 search_field 是一一对应的枚举值。

namesearch_field
SKUsku
品名product_name
MSKUseller_sku
FNSKUfnsku
ASINasin
父ASINparent_asin
SPUspu
款名spu_name