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

# List bookings

> Lists completed bookings created by this API key. Use external_ref to reconcile payment-provider retries.

`GET /bookings`

Lists completed bookings created by this API key. Use external\_ref to reconcile payment-provider retries.

## 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 |
| - | - | - | - | - |
| `q` | query | string | no | Search by booking reference, external reference or guest name. |
| `external_ref` | query | string | no | |
| `status` | query | string enum: confirmed, pending\_payment, cancelled | no | |
| `category_id` | query | string | no | |
| `check_in_from` | query | string (date) | no | |
| `check_in_to` | query | string (date) | no | |
| `check_out_from` | query | string (date) | no | |
| `check_out_to` | query | string (date) | no | |
| `created_from` | query | string (date) | no | |
| `created_to` | query | string (date) | no | |
| `page` | query | integer default: 1 | no | Page number, starting at 1. |
| `per_page` | query | integer default: 20 | no | Page size. Maximum 100. |

## Example request

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

## Responses

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

## Response fields (200)

| Field | Type | Required | Description |
| - | - | - | - |
| `data` | array of object | yes | |
| `data.id` | string | yes | |
| `data.external_ref` | string | no | |
| `data.booking_reference` | string | yes | |
| `data.status` | string enum: confirmed, pending\_payment, cancelled | yes | |
| `data.created_at` | string (date-time) | no | |
| `data.check_in` | string (date) | yes | |
| `data.check_out` | string (date) | yes | |
| `data.nights` | integer | no | |
| `data.currency` | string | yes | |
| `data.total` | number | yes | |
| `data.paid` | number | yes | |
| `data.pending` | number | yes | |
| `data.property_id` | string | no | |
| `data.category_ids` | array of string | no | |
| `data.guest` | object | no | |
| `data.notes` | string | no | |
| `data.rooms` | array of object | no | |
| `data.payments` | array of object | no | |
| `data.guest_portal_url` | string (uri) | 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.