{
  "opencollection": "1.0.0",
  "info": {
    "name": "Opera Cloud Inventory Asynchronous API",
    "version": "26.2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "InventoryAsync",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Start process to get hotel inventory revenue statistics",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/revenueInventoryStatistics",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              },
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Use this API to start the process to get a hotel inventory&apos;s revenue statistics for a given date range. Maximum limit of the date range is 94 days with a single request, but the recommendation is to use a date range proportionate to the size of the hotel. Returns a header parameter Location that can be used in the getRevenueInventoryStatisticsProcessStatus operation.  Use event driven APIs (see https://docs.oracle.com/cd/F29336_01/doc.201/f27480/c_business_events.htm#OHIPU-BusinessEvents-F0"
        },
        {
          "info": {
            "name": "Get results of a revenue inventory statistics process",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/revenueInventoryStatistics/:requestId",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              },
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "This API returns inventory revenue&apos;s statistics for a hotel within dates given in the startRevenueInventoryStatisticsProcess API request. You can get the value of the summaryId from the Location header returned by the getRevenueInventoryStatisticsProcessStatus operation after the process is completed.<p><strong>OperationId:</strong>getRevenueInventoryStatistics</p>"
        },
        {
          "info": {
            "name": "Check status of Inventory Revenue Statistic process",
            "type": "http"
          },
          "http": {
            "method": "HEAD",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/revenueInventoryStatistics/:requestId",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              },
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Use this API to check whether the process to collate inventory revenue statistics is complete. You can get value of summaryId from the Location header returned by the startRevenueInventoryStatisticsProcess operation.<p><strong>OperationId:</strong>getRevenueInventoryStatisticsProcessStatus</p>"
        },
        {
          "info": {
            "name": "Start process to get hotel inventory statistics",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/inventoryStatistics",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Use this API to start the process to get a hotel's inventory statistics for a given date range. The maximum limit of the date range is 365 days with a single request, but the recommendation is to use a date range proportionate to the size of the hotel. Returns a header parameter Location that can be used in the getInventoryStatisticsProcessStatus operation.<p><strong>OperationId:</strong>startInventoryStatisticsProcess</p>"
        },
        {
          "info": {
            "name": "Get results of a inventory statistics process",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/inventoryStatistics/:requestId",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              },
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "This API returns inventory statistics for a hotel by given dates in the startInventoryStatisticsProcess API request. You can get the value of the summaryId with the getInventoryStatisticsProcessStatus API response (under header location). <p><strong>OperationId:</strong>getInventoryStatisticsAsync</p>"
        },
        {
          "info": {
            "name": "Check status of hotel inventory statistics process",
            "type": "http"
          },
          "http": {
            "method": "HEAD",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/inventoryStatistics/:requestId",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              },
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Use this API to check whether the statistics of the hotel's inventory statistics is ready yet. You can get value of summaryId with startInventoryStatisticsProcess API response (under header location). <p><strong>OperationId:</strong>getInventoryStatisticsProcessStatus</p>"
        },
        {
          "info": {
            "name": "Create sell limit by date.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/sellLimits",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "You can use this API to create sell limits in OPERA by date. <p><strong>OperationId:</strong>postSellLimitsProcess</p>"
        },
        {
          "info": {
            "name": "Get status for sell limits for a property.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/sellLimits/:requestId",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              },
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "This API returns the status log if any of sell limit data creation is failed. You can get the value of summaryId with the getSellLimitsProcessStatus API response (under header location). <p><strong>OperationId:</strong>getSellLimits</p>"
        },
        {
          "info": {
            "name": "Get the status for sell limits asynchronous process",
            "type": "http"
          },
          "http": {
            "method": "HEAD",
            "url": "{{baseUrl}}/externalSystems/:extSystemCode/hotels/:hotelId/sellLimits/:requestId",
            "headers": [
              {
                "name": "authorization",
                "value": ""
              },
              {
                "name": "externalData",
                "value": ""
              },
              {
                "name": "x-app-key",
                "value": ""
              },
              {
                "name": "x-request-id",
                "value": ""
              },
              {
                "name": "x-originating-application",
                "value": ""
              },
              {
                "name": "x-hotelid",
                "value": ""
              },
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              },
              {
                "name": "extSystemCode",
                "value": "",
                "type": "path"
              },
              {
                "name": "hotelId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Use this API to check whether the sell limit data creation is completed yet. You can get the value of the summaryId with the postSellLimitsProcess API response (under header location). <p><strong>OperationId:</strong>getSellLimitsProcessStatus</p>"
        }
      ]
    }
  ],
  "bundled": true
}