- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createReservationsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createReservationsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more reservations.
Example#
Input#
CreateReservationsStepInput
CreateReservationsStepInputThe data to create reservation items.
CreateReservationsStepInput
CreateReservationsStepInputinventory_item_id
stringThe ID of the associated inventory item.
inventory_item_id
stringlocation_id
stringThe ID of the associated location.
location_id
stringquantity
BigNumberInputThe reserved quantity.
quantity
BigNumberInputline_item_id
null | stringOptionalThe ID of the associated line item.
line_item_id
null | stringOptionalallow_backorder
booleanOptionalAllow backorder of the item. If true, it won't check inventory levels before reserving it.
allow_backorder
booleanOptionaldescription
null | stringOptionalThe description of the reservation.
description
null | stringOptionalcreated_by
null | stringOptionalThe user or system that created the reservation. Can be any form of identification string.
created_by
null | stringOptionalexternal_id
null | stringOptionalAn ID associated with an external third-party system that the reservation item is connected to.
external_id
null | stringOptionalmetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>OptionalOutput#
ReservationItemDTO[]
ReservationItemDTO[]
ReservationItemDTO[]
ReservationItemDTO[]ReservationItemDTO
ReservationItemDTOThe reservation item details.
ReservationItemDTO
ReservationItemDTOWas this page helpful?