BatchAddWarehouseInventory
Use this api to add inventory in specified warehouses in batches.
POST /openapi/warehouse-inventory/v1/batch-add
Request Parameters
WarehouseInventoryRegisterDTO
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 |
itemList |
array(SuccessList) |
Successful list, please refer to SuccessList |
errorList |
array(ErrorList) |
Failed list, please refer to ErrorList |
SuccessList
Name |
Type |
Description |
masterVariationId |
string |
Master variation id |
warehouseId |
string |
Warehouse id |
warehouseInventoryId |
string |
Warehouse inventory id |
ErrorList
Name |
Type |
Description |
masterVariationId |
string |
Master variation id |
warehouseId |
string |
Warehouse id |
message |
string |
Message |
Request Example
Example
curl --location --request POST '{Ginee Host}/openapi/warehouse-inventory/v1/batch-add' \
--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": {
"itemList": [
{
"masterVariationId": "MV61EFA5CF6522050001174701",
"warehouseId": "WW61EA663F9B9717000127DAD5",
"warehouseInventoryId": "WI61EFA74B7D560D0001A43BE7"
}
],
"errorList": []
},
"extra": null,
"pricingStrategy": "PAY"
}