This document will introduce the API related to product inventory management and show usage examples.
If you need to understand the inventory logic of Lazada products, check this document.
UpdatePriceQuantity
API Document
Use this API to update the total inventory of the corresponding warehouse for an product.
Request Example
Single-warehouse format (used by single-warehouse sellers, only updates dropshipping warehouse).
<Request>
<Product>
<Skus>
<Sku>
<ItemId>6718170187</ItemId>
<SkuId>12761620980</SkuId>
<Quantity>200</Quantity><!--Negative numbers cannot be used-->
</Sku>
</Skus>
</Product>
</Request>
Note
- Since this document is used to introduce inventory management, all other optional fields are omitted.
- Supports batch update of total inventory of dropshipping warehouse for different sku's under different products in one request.
- The updated inventory quantity must be greater than or equal to the inventory locked by the withhold + occupy + campaign (channelInventories), otherwise an error will be reported.
- A maximum of 50 SKUs can be added per request, adding more SKUs will result in a timeout error.
- Each seller can only call the inventory API 50 times per second, more than 50 may cause the request to fail due to traffic limitation.
- Quantity cannot be negative.
Multi-warehouse format (used by multi-warehouse sellers, can update dropshipping and multi-warehouse warehouses at the same time).
<Request>
<Product>
<Skus>
<Sku>
<ItemId>234234234</ItemId>
<SkuId>234</SkuId>
<MultiWarehouseInventories>
<MultiWarehouseInventory>
<WarehouseCode>Dropshipping</WarehouseCode>
<Quantity>20</Quantity>
</MultiWarehouseInventory>
<MultiWarehouseInventory>
<WarehouseCode>warehouseTest2</WarehouseCode>
<Quantity>30</Quantity>
</MultiWarehouseInventory>
</MultiWarehouseInventories>
</Sku>
</Skus>
</Product>
</Request>
Note
- Since this document is used to introduce inventory management, all other optional fields are omitted.
- Single-warehouse sellers should not use the multi-warehouse format, otherwise an error may be reported.
- The updated inventory quantity must be greater than or equal to the inventory locked by the withhold + occupy + campaign (channelInventories), otherwise an error will be reported.
- A maximum of 50 SKUs can be added per request, adding more SKUs will result in a timeout error.
- Each seller can only call the inventory API 50 times per second, more than 50 may cause the request to fail due to traffic limitation.
- Quantity cannot be negative.
UpdateProduct
API Document
Use this API to update product information and product sellable inventory in the dropshipping warehouse.
Request Example
{
"Request": {
"Product": {
"ItemId": "6718170187",
"Attributes": {},
"Skus": {
"Sku": [
{
"SkuId": "DITTO",
"quantity": "1" //Negative numbers cannot be used
}
]
}
}
}
}
Note
- Since this document is used to introduce inventory management, all other optional fields are omitted.
- The sku inventory updated by this API must belong to the same product, and does not support updating the inventory of multiple different products.
- The updated inventory quantity must be greater than or equal to the inventory locked by the campaign (channelInventories), otherwise an error will be reported.
- Quantity cannot be negative.
UpdateSellableQuantity
API Document
Use this API to update the sellable inventroy of SKUs in an overriding manner.
Request Example
Single-warehouse format (used by single-warehouse sellers, only updates dropshipping warehouse).
<Request>
<Product>
<Skus>
<Sku>
<ItemId>234234234</ItemId>
<SkuId>234</SkuId>
<SellableQuantity>20</SellableQuantity>
</Sku>
</Skus>
</Product>
</Request>
Note
- Supports batch update of total inventory of dropshipping warehouse for different sku's under different products in one request.
- The updated sellable inventory quantity must be greater than or equal to the inventory locked by the campaign (channelInventories), otherwise an error will be reported.
- A maximum of 50 SKUs can be added per request, adding more SKUs will result in a timeout error.
- Each seller can only call the inventory API 50 times per second, more than 50 may cause the request to fail due to traffic limitation.
- Quantity cannot be negative.
Multi-warehouse format (used by multi-warehouse sellers, can update dropshipping and multi-warehouse warehouses at the same time).
<Request>
<Product>
<Skus>
<Sku>
<ItemId>234234234</ItemId>
<SkuId>234</SkuId>
<MultiWarehouseInventories>
<MultiWarehouseInventory>
<WarehouseCode>warehouseTest1</WarehouseCode>
<SellableQuantity>20</SellableQuantity>
</MultiWarehouseInventory>
<MultiWarehouseInventory>
<WarehouseCode>warehouseTest2</WarehouseCode>
<SellableQuantity>30</SellableQuantity>
</MultiWarehouseInventory>
</MultiWarehouseInventories>
</Sku>
</Skus>
</Product>
</Request>
Note
- Single-warehouse sellers should not use the multi-warehouse format, otherwise an error may be reported.
- The updated sellable inventory quantity must be greater than or equal to the inventory locked by the campaign (channelInventories), otherwise an error will be reported.
- A maximum of 50 SKUs can be added per request, adding more SKUs will result in a timeout error.
- Each seller can only call the inventory API 50 times per second, more than 50 may cause the request to fail due to traffic limitation.
- Quantity cannot be negative.
AdjustSellableQuantity
API Document
Use this API to update the sellable inventory of SKUs by summing positive and negative numbers.(A positive number is an increase in inventory and a negative number is a decrease in inventory)
Request Example
Single-warehouse format (used by single-warehouse sellers, only updates dropshipping warehouse).
<Request>
<Product>
<Skus>
<Sku>
<ItemId>234234234</ItemId>
<SkuId>234</SkuId>
<SellableQuantity>-20</SellableQuantity>
</Sku>
</Skus>
</Product>
</Request>
Note
- The SellableQuantity field can be set to a negative number.
- If the original inventory is 1 and the SellableQuantity field is passed in at 20, then the sellable inventory for this SKU will be updated to 21 (20 + 1).
- If the original inventory is 20 and the SellableQuantity field is passed in at -1, then the sellable inventory for this SKU will be updated to 19 (20 + (-1)).
- The updated final saleable inventory must be greater than or equal to 0, otherwise an error will be reported.
- Supports batch update of total inventory of dropshipping warehouse for different sku's under different products in one request.
- The updated sellable inventory quantity must be greater than or equal to the inventory locked by the campaign (channelInventories), otherwise an error will be reported.
- A maximum of 50 SKUs can be added per request, adding more SKUs will result in a timeout error.
- Each seller can only call the inventory API 50 times per second, more than 50 may cause the request to fail due to traffic limitation.
Multi-warehouse format (used by multi-warehouse sellers, can update dropshipping and multi-warehouse warehouses at the same time).
<Request>
<Product>
<Skus>
<Sku>
<ItemId>234234234</ItemId>
<SkuId>234</SkuId>
<MultiWarehouseInventories>
<MultiWarehouseInventory>
<WarehouseCode>warehouseTest1</WarehouseCode>
<SellableQuantity>20</SellableQuantity>
</MultiWarehouseInventory>
<MultiWarehouseInventory>
<WarehouseCode>warehouseTest2</WarehouseCode>
<SellableQuantity>-30</SellableQuantity>
</MultiWarehouseInventory>
</MultiWarehouseInventories>
</Sku>
</Skus>
</Product>
</Request>
Note
- The SellableQuantity field can be set to a negative number.
- If the original inventory is 1 and the SellableQuantity field is passed in at 20, then the sellable inventory for this SKU will be updated to 21 (20 + 1).
- If the original inventory is 20 and the SellableQuantity field is passed in at -1, then the sellable inventory for this SKU will be updated to 19 (20 + (-1)).
- The updated final saleable inventory must be greater than or equal to 0, otherwise an error will be reported.
- Single-warehouse sellers should not use the multi-warehouse format, otherwise an error may be reported.
- The updated sellable inventory quantity must be greater than or equal to the inventory locked by the campaign (channelInventories), otherwise an error will be reported.
- A maximum of 50 SKUs can be added per request, adding more SKUs will result in a timeout error.
- Each seller can only call the inventory API 50 times per second, more than 50 may cause the request to fail due to traffic limitation.
- Quantity cannot be negative.