---
title: "Re-price a previously-seen offer (±2% tolerance)"
method: POST
path: "/validate"
tags: ["decision"]
---

# Re-price a previously-seen offer (±2% tolerance)

`POST /validate`

## Request

- Base URL: `https://api.b2a.bluepillow.com/v1`
- URL: `https://api.b2a.bluepillow.com/v1/validate`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string, uuid, required
- `B2A-Version` string, date

## Request body

- ValidateRequest
  - `property_id` string, required
  - `dates` StayDates, required
    - `check_in` string, date, required
    - `check_out` string, date, required
  - `guests` Guests, required
    - `adults` integer, required
    - `children_ages` integer[]
    - `rooms` integer
  - `offer_to_compare` OfferToCompare, required
    - `ota` string, nullable
    - `total_eur` number, required

## Response `200`

Validation verdict for the offer

- ValidateResult
  - `still_valid` boolean, required
  - `price_delta_eur` number, nullable
  - `delta_percent` number, nullable
  - `refreshed_offer` Price
    - `amount` number, required
    - `amount_per_night` number, nullable
    - `currency` string, required
    - `breakfast_included` boolean
    - `refundable` boolean
    - `is_discounted` boolean
    - `discount_percentage` number, nullable
    - `ota` string, nullable
  - `reason` string, nullable: One of price_changed | sold_out | dates_unavailable

## Other responses

- `400`: Invalid request
- `401`: Auth missing or invalid
- `429`: Rate limited

---

[API](https://skmtc.dev/bluepillow/apis/b2a-api.md) · [All operations](https://skmtc.dev/bluepillow/apis/b2a-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bluepillow/apis/b2a-api/revisions/1dfd82be92b6?raw)
