> ## 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 a checkout

> Returns the checkout state. A completed checkout includes the final booking.

`GET /checkouts/{id}`

Returns the checkout state. A completed checkout includes the final booking.

## Authentication

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

## Example request

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

## Responses

| Status | Description |
| - | - |
| `200` | Checkout state. |
| `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. |
| `409` | The requested state change conflicts with the current booking, payment or inventory state. |
| `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. |

## Response fields (200)

| Field | Type | Required | Description |
| - | - | - | - |
| `data` | object | yes | |
| `data.id` | string | yes | |
| `data.external_ref` | string | yes | |
| `data.status` | string enum: requires\_tokenization, requires\_confirmation, processing, requires\_action, completed, failed, expired | yes | |
| `data.amount` | number | yes | |
| `data.currency` | string | yes | |
| `data.requires_payment` | boolean | yes | |
| `data.return_url` | string (uri) | yes | |
| `data.expires_at` | string (date-time) | yes | |
| `data.tokenizer` | object | no | |
| `data.action` | object | no | |
| `data.failure_message` | string | no | |
| `data.booking` | 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.