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[]id
stringThe ID of the inventory level.
id
stringinventory_item_id
stringThe associated inventory item's ID.
inventory_item_id
stringlocation_id
stringThe associated location's ID.
location_id
stringstocked_quantity
numberThe stocked quantity of the inventory level.
stocked_quantity
numberreserved_quantity
numberThe reserved quantity of the inventory level.
reserved_quantity
numberincoming_quantity
numberThe incoming quantity of the inventory level.
incoming_quantity
numberavailable_quantity
numberThe available quantity of the inventory level.
available_quantity
numbermetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>created_at
string | DateThe creation date of the inventory level.
created_at
string | Dateupdated_at
string | DateThe update date of the inventory level.
updated_at
string | Datedeleted_at
null | string | DateThe deletion date of the inventory level.
deleted_at
null | string | DateWas this page helpful?