> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.buqipi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search availability

> Resolves availability and the best public rate for a stay. The engine checks inventory, blocked dates, minimum stay, maximum stay and occupancy. When `only_available` is false, unavailable categories are returned with a reason.

`POST /booking-engine/availability`

Resolves availability and the best public rate for a stay. The engine checks inventory, blocked dates, minimum stay, maximum stay and occupancy. When `only_available` is false, unavailable categories are returned with a reason.

## Authentication

Send the scoped API key as `Authorization: Bearer bqp_pk_...`. All requests use the base URL `https://api.buqipi.com/connect/v1`.

## Body fields

| Field | Type | Required | Description |
| - | - | - | - |
| `check_in` | string (date) | yes | Arrival date. |
| `check_out` | string (date) | yes | Departure date. |
| `adults` | integer | yes | |
| `children` | array of integer | no | |
| `category_ids` | array of string | no | |
| `property_ids` | array of string | no | |
| `only_available` | boolean default: true | no | |
| `locale` | string default: "es" | no | |
| `page` | integer default: 1 | no | |
| `per_page` | integer default: 50 | no | |

## Example request

```json theme={null}
{
  "check_in": "2026-12-22",
  "check_out": "2026-12-24",
  "adults": 2,
  "category_ids": [
    "LCPB01"
  ],
  "locale": "es"
}
```

## Responses

| Status | Description |
| - | - |
| `200` | Availability results. |
| `401` | Missing, invalid, expired or revoked API key. |
| `403` | The key is valid but lacks the required scope or property/category access. |
| `422` | One or more request fields are invalid. |
| `429` | The key or IP exceeded its quota. |
| `500` | An unexpected server error. Details are not exposed to the client. |

## Example response (200)

```json theme={null}
{
  "data": [
    {
      "category_id": "LCPB01",
      "property_id": "P6A86D92A6A082",
      "name": "Habitación Individual",
      "property_name": "Hilton Palm Beach",
      "available": true,
      "reason": null,
      "available_units": 8,
      "is_last_unit": false,
      "currency": "EUR",
      "best_rate": {
        "rate_id": "LRPB02",
        "total": 192.58,
        "total_without_discount": 192.58,
        "min_stay": 1,
        "max_stay": 30
      }
    }
  ],
  "meta": {
    "api": "buqipi-connect",
    "version": "v1",
    "request_id": "89dbabbf-dc2e-455c-9ca4-a098ebc2bce4",
    "generated_at": "2026-11-07T12:00:00+01:00",
    "pagination": {
      "page": 1,
      "per_page": 50,
      "total": 1
    }
  }
}
```

## Response fields (200)

| Field | Type | Required | Description |
| - | - | - | - |
| `data` | array of object | yes | |
| `data.category_id` | string | yes | |
| `data.property_id` | string | yes | |
| `data.name` | string | no | |
| `data.property_name` | string | no | |
| `data.available` | boolean | yes | |
| `data.reason` | string | no | |
| `data.available_units` | integer | no | |
| `data.is_last_unit` | boolean | no | |
| `data.currency` | string | yes | |
| `data.best_rate` | object | no | |
| `meta` | object | yes | Response trace and pagination metadata. |
| `meta.api` | string enum: buqipi-connect | yes | |
| `meta.version` | string enum: v1 | yes | |
| `meta.request_id` | string (uuid) | yes | |
| `meta.generated_at` | string (date-time) | yes | |
| `meta.pagination` | object | no | |

## Specification

[View the full OpenAPI specification](https://api.pastes.dev/8OG3RS6RJx).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.