> ## 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.

# Get category calendar

> Returns one entry per night. The range is inclusive of `from` and exclusive of `to`, with a maximum of 365 nights. Availability, price, minimum/maximum stay and arrival/departure restrictions come from the selected rate.

`GET /inventory/categories/{id}/calendar`

Returns one entry per night. The range is inclusive of `from` and exclusive of `to`, with a maximum of 365 nights. Availability, price, minimum/maximum stay and arrival/departure restrictions come from the selected rate.

## Authentication

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

## Parameters

| Name | In | Type | Required | Description |
| - | - | - | - | - |
| `id` | path | string | yes | Buqipi category identifier. |
| `from` | query | string (date) | yes | First night, `YYYY-MM-DD`. |
| `to` | query | string (date) | yes | Check-out date, `YYYY-MM-DD`, exclusive. |
| `rate_id` | query | string | no | Public rate to inspect. Defaults to the first public rate. |
| `guests` | query | integer default: 1 | no | Occupancy used to resolve the price. Defaults to 1. |
| `locale` | query | string default: "es" | no | Two-letter content language. Falls back to Spanish when the translation does not exist. |

## Example request

```bash theme={null}
curl -X GET "https://api.buqipi.com/connect/v1/inventory/categories/{id}/calendar" \
  -H "Authorization: Bearer $BUQIPI_API_KEY"
```

## Responses

| Status | Description |
| - | - |
| `200` | Calendar. |
| `400` | The request is syntactically valid but cannot be processed. |
| `401` | Missing, invalid, expired or revoked API key. |
| `403` | The key is valid but lacks the required scope or property/category access. |
| `404` | The resource does not exist or is outside the key's scope. |
| `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",
    "rate_id": "LRPB02",
    "rate_name": "Tarifa No Reembolsable",
    "currency": "EUR",
    "from": "2026-12-22",
    "to": "2026-12-25",
    "occupancy": 1,
    "available_rates": [
      {
        "id": "LRPB02",
        "name": "Tarifa No Reembolsable"
      }
    ],
    "days": [
      {
        "date": "2026-12-22",
        "available": true,
        "available_units": 8,
        "available_direct_units": 8,
        "price": 96.29,
        "min_stay": 1,
        "max_stay": 30,
        "closed": false,
        "direct_only": false,
        "closed_to_arrival": false,
        "closed_to_departure": false
      },
      {
        "date": "2026-12-23",
        "available": true,
        "available_units": 8,
        "available_direct_units": 8,
        "price": 96.29,
        "min_stay": 1,
        "max_stay": 30,
        "closed": false,
        "direct_only": false,
        "closed_to_arrival": false,
        "closed_to_departure": false
      }
    ]
  },
  "meta": {
    "api": "buqipi-connect",
    "version": "v1",
    "request_id": "9f4f7a6e-3d3b-4a2e-bd5c-2a7a0b4e8c11",
    "generated_at": "2026-11-07T12:00:00+01:00"
  }
}
```

## Response fields (200)

| Field | Type | Required | Description |
| - | - | - | - |
| `data` | object | yes | |
| `data.category_id` | string | yes | |
| `data.rate_id` | string | yes | |
| `data.rate_name` | string | no | |
| `data.currency` | string | yes | |
| `data.from` | string (date) | yes | |
| `data.to` | string (date) | yes | |
| `data.occupancy` | integer | no | |
| `data.available_rates` | array of object | no | |
| `data.days` | array of object | yes | |
| `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.