Skip to main content
Skip to main content

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

reservationIdstringRequired
The ID of the reservation item.
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ReservationItemDTO>Required
The retrieved reservation item.
Was this section helpful?