- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createReservationsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the createReservationsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates one or more reservations. It's used by the Create Reservations Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to create reservations in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
CreateReservationsWorkflowInput
CreateReservationsWorkflowInput
CreateReservationsWorkflowInput
CreateReservationsWorkflowInputreservations
CreateReservationItemInput[]The reservations to create.
reservations
CreateReservationItemInput[]Output#
CreateReservationsWorkflowOutput
CreateReservationsWorkflowOutput
CreateReservationsWorkflowOutput
CreateReservationsWorkflowOutputid
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?