Loading...
Was this page helpful?
This documentation provides a reference to the restoreReservationItemsByLineItem
method. This belongs to the Inventory Next Module.
This method is used to restore the reservation items associated with a line item or multiple line items that were deleted.
1import {2 initialize as initializeInventoryModule,3} from "@medusajs/inventory"4 5async function restoreReservationItemsByLineItem (6 lineItemIds: string[]7) {8 const inventoryModule = await initializeInventoryModule({})9 10 await inventoryModule.restoreReservationItemsByLineItem(11 lineItemIds12 )13}
lineItemId
string | string[]Promise
Promise<void>