- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
adjustInventoryLevelsStep - Medusa Core Workflows Reference
This documentation provides a reference to the adjustInventoryLevelsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step adjusts the stocked quantity of one or more inventory levels. You can
pass a positive value in adjustment
to add to the stocked quantity, or a negative value to
subtract from the stocked quantity.
Example#
Input#
AdjustInventoryLevelsStepInput
AdjustInventoryLevelsStepInputThe data to adjust the inventory levels.
AdjustInventoryLevelsStepInput
AdjustInventoryLevelsStepInputinventory_item_id
stringThe ID of the associated inventory level.
inventory_item_id
stringlocation_id
stringThe ID of the associated location.
location_id
stringadjustment
BigNumberInputThe quantity to adjust the inventory level by.
If positive, the quantity will be added to the stocked quantity.
If negative, the quantity will be subtracted from the stocked quantity.
adjustment
BigNumberInputOutput#
InventoryLevelDTO[]
InventoryLevelDTO[]
InventoryLevelDTO[]
InventoryLevelDTO[]InventoryLevelDTO
InventoryLevelDTOThe inventory level details.
InventoryLevelDTO
InventoryLevelDTOWas this page helpful?