Skip to main content
Skip to main content

createReservationItems - Inventory Next Module Reference

This documentation provides a reference to the createReservationItems method. This belongs to the Inventory Next Module.

createReservationItems(input, context?): Promise<ReservationItemDTO[]>

This method creates reservation items.

Example

const reservationItems =
await inventoryModuleService.createReservationItems([
{
inventory_item_id: "iitem_123",
location_id: "loc_123",
quantity: 10,
},
])

Parameters

The details of the reservation items to be created.
contextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ReservationItemDTO[]>Required
The created reservation items.

createReservationItems(input, context?): Promise<ReservationItemDTO>

This method creates a reservation item.

Example

const reservationItem =
await inventoryModuleService.createReservationItems({
inventory_item_id: "iitem_123",
location_id: "loc_123",
quantity: 10,
})

Parameters

The details of the reservation item to be created.
contextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

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