updateReservationsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateReservationsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more reservations.
Example#
Input#
UpdateReservationsStepInput
UpdateReservationsStepInputThe data to update reservation items.
UpdateReservationsStepInput
UpdateReservationsStepInputid
stringThe ID of the reservation to update.
id
stringThe reserved quantity.
location_id
stringOptionalThe ID of the associated location.
location_id
stringOptionaldescription
null | stringOptionalThe description of the reservation item.
description
null | stringOptionalallow_backorder
booleanOptionalAllow backorder of the item. If true, it won't check inventory levels before reserving it.
allow_backorder
booleanOptionalmetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>OptionalOutput#
ReservationItemDTO[]
ReservationItemDTO[]
ReservationItemDTO[]
ReservationItemDTO[]id
stringThe ID of the reservation item.
id
stringlocation_id
stringThe associated location's ID.
location_id
stringinventory_item_id
stringThe associated inventory item's ID.
inventory_item_id
stringquantity
BigNumberInputThe quantity of the reservation item.
quantity
BigNumberInputmetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>created_at
string | DateThe creation date of the reservation item.
created_at
string | Dateupdated_at
string | DateThe update date of the reservation item.
updated_at
string | Datedeleted_at
null | string | DateThe deletion date of the reservation item.
deleted_at
null | string | Dateline_item_id
null | stringOptionalThe associated line item's ID.
line_item_id
null | stringOptionaldescription
null | stringOptionalThe description of the reservation item.
description
null | stringOptionalallow_backorder
booleanOptionalAllow backorder of the item. If true, it won't check inventory levels before reserving it.
allow_backorder
booleanOptionalcreated_by
null | stringOptionalThe created by of the reservation item.
created_by
null | stringOptionalWas this page helpful?