Chuyển tới nội dung chính

v2.sbs.get_current_inventory

GET /api/v2/sbs/get_current_inventory

Get Seller Center Current Inventory Page Data

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/sbs/get_current_inventory

Tham số chung

TênKiểuMẫuMô tả
partner_idint1Partner ID được cấp khi đăng ký thành công. Bắt buộc cho mọi yêu cầu.
timestamptimestamp1610000000Dùng để xác định thời điểm của yêu cầu. Bắt buộc cho mọi yêu cầu. Hết hạn sau 5 phút.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token truy cập API, dùng để xác định quyền của bạn. Có thể dùng nhiều lần và hết hạn sau 4 giờ.
shop_idint600000Mã định danh duy nhất của Shopee cho cửa hàng. Tham số bắt buộc cho hầu hết các API.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp, access_token, shop_id and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2

Tham số Request

TênKiểuBắt buộcMẫuMô tả
page_noint32False1Specifies the page number of data to return in the current call. Starting from 1. if data is more than one page, the page_no can be some entry to start next call. If empty, the default value is 1.
page_sizeint32False10Each result set is returned as a page of entries. Use the "page_size" filters to control the maximum number of entries to retrieve per page (i.e., per call), and the "page_no" to start next call. This integer value is used to specify the maximum number of entries to return in a single "page" of data. If empty, the default value is 10. The value should be between 1 and 100.
search_typeint32False20-All data;1-Product Name;2-SKU ID;3-Variations;4-Item ID
keywordstringFalseBind Value and Search_type
whs_idsstringFalseIDL,IDGWhs ID list, comma-separated
not_moving_tagint32False0Blank-All;0-No;1-Yes
inbound_pending_approvalint64False0Blank-All;0-No;1-Yes
products_with_inventoryint32False0Blank-All;0-No;1-Yes
category_idint64False100002Category id. Here you need to call the get_category API to retrieve the first-tier category_id.
stock_levelsstringFalse1,21-Low Stock & No Sellable stock; 2-Low Stock & To replenish; 3-Low Stock & Replenished; 4-Excess
whs_regionstringTrueCNThe warehouse region you want to query, can only query one region in a request Optional value: BR、CN、ID、MY、MX、TH、TW、PH、VN、SG If do not pass, will get error "block by gateway due to invalid cid"

Tham số Response

TênKiểuMẫuMô tả
request_idstring123456abcMã định danh cho yêu cầu API, dùng để theo dõi lỗi.
errorstringCho biết loại lỗi nếu có lỗi xảy ra. Để trống nếu không có lỗi.
messagestringIndicate error details if hit error. Empty if no error happened.
responseobjectDetail informations you are querying.
item_listobject[]Data list of item sku
warehouse_item_idstring900625438Warehouse item id; To indicate an unique item in a warehouse one warehouse item id can match with multiple shop_item_id For Global Item, warehouse_item_id=Global Item id For Local Item, shop_item_id=item_id
item_namestring跨境商品测试00002 - 1666171590item name
item_imagestringhttp://img.ws.mms.shopee.sg/08b3fc410c8eaa7e3f52b06b486a8658item image
sku_listobject[]Data list of mtsku
mtsku_idstring900625438_10010402373mtsku id
model_idstring10010402373Warehouse model SKU ID For CB global items, this is equal to the global model_id. For local items, it differs from model_id; use shop_model_id to match the model_id
fulfill_mapping_modeint3210-Null;1-Bundle SKU;2-Parent SKU
model_namestringYellow,Middlemodel name
not_moving_tagint320
whs_listobject[]Info of whs
whs_idstringCNNWarehouse ID
stock_levelint32-1-1-No need to calculate stock level;0-None;1-Low Stock & No Sellable stock; 2-Low Stock & To replenish; 3-Low Stock & Replenished; 4-Excess
ir_approval_qtyint640IR approval but no ASN generated will be included
in_transit_pending_putaway_qtyint640ASN in-transit,ASN pending putaway, Move transfer in transit and Move transfer pending putaway will be included
sellable_qtyint6447Stocks that are available for sale. This includes warehouse sellable stock, move transfer & rack transfer reserved stock that available for sale, pre-order stock.This quantity may be greater than qty displayed to buyers as it includes stock reserved for upcoming promotions.
reserved_qtyint643Stocks reserved by buyer order, RTS. And also includes rack transfer reserved stock that are not available for sale
unsellable_qtyint640Stocks in the warehouse that are not available for sale. This includes damaged stocks, isolated stock due to expired/near expiring, in warehouse staging location, missing, etc.
excess_stockint640Number of units that are above 6 days of sales coverage Days.
coverage_daysfloat0.1Days that the current sellable and pending inbound inventory are expected to last based on current selling speed.
in_whs_coverage_daysfloat0.1Days that the current sellable inventory are expected to last based on current selling speed.
selling_speedfloat0.2Average daily sold quantity
last_7_soldint640Sales qty last 7 days
last_15_soldint640Sales qty last 15 days
last_30_soldint640Sales qty last 30 days
last_60_soldint640Sales qty last 60 days
last_90_soldint640Sales qty last 90 days
shop_sku_listobject[]
shop_sku_idstringshop level sku_id shop_sku_id="item_id" _ "model_id"
shop_item_idstringshop_item_id="item_id" in Product Module For Global Item, warehouse_item_id=Global Item id For Local Item, shop_item_id=item_id
shop_model_idstringshop_model_id= item level model_id For Global Item, warehouse_item_id=Global Item id For Local Item, shop_item_id=item_id

Không có ví dụ yêu cầu.