Skip to content

inv: OPERA Cloud Inventory API

13 operations from Oracle’s published OHIP specifications (26.3.0.0). Each shows its HTTP method and path and the typed call on ctx.Ohip.Api. hotelId defaults to the invocation’s hotel.

Set sell limits by date

PUT /inv/v1/hotels/{hotelId}/sellLimits · hotel-scoped

Task<SellLimitResponse?> ctx.Ohip.Api.Inv.ChangeSellLimitByDateAsync(SellLimit body, string? hotelId = null, CancellationToken ct = default)

Set sell limits by date range

PUT /inv/v1/hotels/{hotelId}/sellLimitsByDateRange · hotel-scoped

Task<SellLimitByDateResponse?> ctx.Ohip.Api.Inv.ChangeSellLimitByDateRangeAsync(SellLimitByRange body, string? hotelId = null, CancellationToken ct = default)

Get block inventory statistics

GET /inv/v1/hotels/{hotelId}/blockInventoryStatistics · hotel-scoped

Task<BlockInventoryStatistic?> ctx.Ohip.Api.Inv.GetBlockInventoryStatisticsAsync(string? hotelId = null, Action<BlockInventoryStatisticsRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

getBlockInventoryStatisticsMultipleHotelIds

Section titled “getBlockInventoryStatisticsMultipleHotelIds”

Get block inventory statistics for multiple hotel Ids

GET /inv/v1/blockInventoryStatistics · chain-level

Task<BlockInventoryStatistic?> ctx.Ohip.Api.Inv.GetBlockInventoryStatisticsMultipleHotelIdsAsync(Action<BlockInventoryStatisticsRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get items inventory that are held

GET /inv/v1/hotels/{hotelId}/itemInventoryHold · hotel-scoped

Task<HoldItemsInventory?> ctx.Ohip.Api.Inv.GetHoldItemsInventoryAsync(string? hotelId = null, double?[]? itemHoldId = null, CancellationToken ct = default)

Get hotel inventory

GET /inv/v1/hotels/{hotelId}/hotelInventory · hotel-scoped

Task<HotelInventory?> ctx.Ohip.Api.Inv.GetHotelInventoryAsync(string? hotelId = null, Action<HotelInventoryRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Get a hotels Inventory Statistics

GET /inv/v1/hotels/{hotelId}/inventoryStatistics · hotel-scoped

Task<List<StatisticType>?> ctx.Ohip.Api.Inv.GetInventoryStatisticsAsync(string? hotelId = null, Date? dateRangeEnd = null, Date? dateRangeStart = null, GetParameterNameQueryParameterType[]? parameterName = null, string[]? parameterValue = null, GetReportCodeQueryParameterType? reportCode = null, CancellationToken ct = default)

Get item inventory

GET /inv/v1/hotels/{hotelId}/itemInventory · hotel-scoped

Task<ItemInventory?> ctx.Ohip.Api.Inv.GetItemInventoryAsync(string? hotelId = null, Action<ItemInventoryRequestBuilderGetQueryParameters>? query = null, CancellationToken ct = default)

Ping

GET /inv/v1/services/inventory/status · chain-level

Task<PingDetail?> ctx.Ohip.Api.Inv.PingInventoryServiceAsync(CancellationToken ct = default)

Ping

GET /inv/v1/services/invStatsService/status · chain-level

Task<PingDetail?> ctx.Ohip.Api.Inv.PinginvStatsServiceAsync(CancellationToken ct = default)

Hold item inventory

POST /inv/v1/hotels/{hotelId}/itemInventoryHold · hotel-scoped

Task<Status?> ctx.Ohip.Api.Inv.PostHoldItemInventoryAsync(HoldItemInventory body, string? hotelId = null, CancellationToken ct = default)

update items inventory that are held

PUT /inv/v1/hotels/{hotelId}/itemInventoryHold · hotel-scoped

Task<HoldItemInventory?> ctx.Ohip.Api.Inv.PutHoldItemsInventoryAsync(HoldItemInventory body, string? hotelId = null, CancellationToken ct = default)

Release item inventory held

PUT /inv/v1/releasedItemInventory · chain-level

Task<ReleasedItemInventoryHeld?> ctx.Ohip.Api.Inv.PutItemInventoryHoldAsync(ReleaseItemInventoryHold body, CancellationToken ct = default)