Skip to content

BatchAddProductToComboWarehouse

Use this api to add inventory in specified warehouses and combo in batches.

POST /openapi/warehouse-inventory/v1/batch-add-product

Request Parameters

Parameter Type Required Description
itemList array(warehouseShelfInventoryRegisterComboDTO) true Please refer to WarehouseShelfInventoryRegisterComboDTO for details

WarehouseShelfInventoryRegisterComboDTO

Parameter Type Required Description
warehouseId string true Warehouse id
masterVariationId string true Master variation id
pricingMethod string false Pricing method, default value is MW(moving weighted average method)
currencyCode string true Currency code

Response Parameters

Name Type Description
data String batch-add-product-to-combo-warehouse result token

Request Example

Example

curl --location --request POST '{Ginee Host}/openapi/warehouse-inventory/v1/batch-add-product-to' \
--header 'Authorization: 2aedf7919e5e6cb4:S0sSLI9RSK/Vw6t3MpDm7pCgD+Vze0/9fu4W0PaX/iE=' \
--header 'X-Advai-Country: ID' \
--header 'Content-Type: application/json' \
--data-raw '{
"itemList": [
{
"warehouseId": "WW61EA663F9B9717000127DAD5",
"pricingMethod": "MW",
"masterVariationId": "MV61EFA5CF6522050001174701",
"currencyCode": "IDR"
}
]
}'

Success

{
"code": "SUCCESS",
"message": "成功",
"data": 
    "sd12345fefwdfwwd"
}