retrieveReservationItem - Inventory Module Reference
This documentation provides a reference to the retrieveReservationItem
method. This belongs to the Inventory Module.
This method is used to retrieve a reservation item by its ID.
Example
import {
initialize as initializeInventoryModule,
} from "@medusajs/inventory"
async function retrieveReservationItem (id: string) {
const inventoryModule = await initializeInventoryModule({})
const reservationItem = await inventoryModule.retrieveReservationItem(id)
// do something with the reservation item or return it
}
Parameters
reservationId
stringRequiredThe ID of the reservation item.
context
SharedContextA context used to share resources, such as transaction manager, between the application and the module.
context
SharedContextReturns
The retrieved reservation item.
Was this section helpful?