AdminReservationsResource
admin/reservations.AdminReservationsResource
Methods
create
create(payload
, customHeaders?
): ResponsePromise
<AdminReservationsRes
>
create a reservation
Parameters
customHeaders
Record<string, unknown>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReservationsRes
>
the created reservation
Description
create a reservation This feature is under development and may change in the future. To use this feature please install @medusajs/inventory
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
remove a reservation
Parameters
id
stringRequiredcustomHeaders
Record<string, unknown>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
reservation removal confirmation
Description
remove a reservation This feature is under development and may change in the future. To use this feature please install @medusajs/inventory
list
list(query?
, customHeaders?
): ResponsePromise
<AdminReservationsListRes
>
List reservations This feature is under development and may change in the future. To use this feature please install @medusajs/inventory
Parameters
customHeaders
Record<string, unknown>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReservationsListRes
>
A list of reservations matching the provided query
Description
Lists reservations
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminReservationsRes
>
Get a reservation This feature is under development and may change in the future. To use this feature please install @medusajs/inventory
Parameters
id
stringRequiredcustomHeaders
Record<string, unknown>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReservationsRes
>
The reservation with the provided id
Description
gets a reservation
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminReservationsRes
>
update a reservation
Parameters
id
stringRequiredcustomHeaders
Record<string, unknown>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminReservationsRes
>
The updated reservation
Description
update a reservation This feature is under development and may change in the future. To use this feature please install @medusajs/inventory