---
title: "Verify or lock a quote before payment"
method: POST
path: "/prebook"
---

# Verify or lock a quote before payment

`POST /prebook`

## Request

- Base URL: `https://api.tellandgo.com/api/v1/agent`
- URL: `https://api.tellandgo.com/api/v1/agent/prebook`
- Auth: API key in header `X-API-Key`

Live inventory verification step. Call this after quote selection and before
creating a booking/payment. Quotes that require final verification return
locked, while quotes without a prebook phase return `not_required`.

## Headers

- `Idempotency-Key` string

## Request body

- PrebookRequest
  - `quote_id` string, required: Quote ID returned by POST /quote.

## Response `200`

Quote verified or prebook not required

- PrebookResponse
  - `success` boolean
  - `quote_id` string
  - `prebook` object
    - `required_before_payment` boolean
    - `status` 'not_required' | 'locked'
    - `expires_at` string, date-time
    - `price_changed` boolean
    - `original_book_hash` string
    - `book_hash` string
  - `pricing` object
    - `total` number
    - `currency` string

## Other responses

- `400`: Invalid request
- `401`: Authentication required or invalid
- `404`: Resource not found
- `409`: Price changed or prebook required action

---

[API](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api.md) · [All operations](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tellandgo/apis/tell-go-travel-agent-api/revisions/3d84f816eb4f?raw)
