# Booking links — Apartur Hoteles y Departamentos en Argentina

> Build a link that opens live availability and prices on https://apartur.com.ar/ for a hotel, dates and guests. The user only has to open it: the site validates the search and shows the results page. No API call is needed.

## URL template

```
https://apartur.com.ar/?wpr_direct=results&hotel_id={hotel_id}&checkin={YYYY-MM-DD}&checkout={YYYY-MM-DD}&adults={adults}
```

Add optional parameters with `&`. Write the link on a single line, without spaces.

## Parameters

| Parameter | Required | Format | Notes |
|---|---|---|---|
| `wpr_direct` | yes | `results` | Fixed value. |
| `hotel_id` | yes | string | One of the IDs in [Hotels](#hotels). |
| `checkin` | yes | `YYYY-MM-DD` | Must be after today. |
| `checkout` | yes | `YYYY-MM-DD` | Must be after `checkin`. |
| `adults` | yes | integer | At least 1. |
| `children[{child_age_id}]` | no | integer | Number of children in that age range. One parameter per range. See [Child age ranges](#child-age-ranges). |
| `currency` | no | ISO 4217 code | One of [Currencies](#currencies). Prices are shown in it. |
| `promo_code` | no | string | Only when the user gives you a promo code. |
| `redirect_on_fail` | no | URL | Page to send the user to if the link is invalid. Must be on apartur.com.ar. |

## Hotels

| Hotel | hotel_id | Results page |
|---|---|---|
| Apartur Bariloche Catedral | `14184` | https://apartur.com.ar/reservas-apartur-bariloche/ |
| Apartur Buenos Aires | `7171` | https://apartur.com.ar/reservas-apartur-buenos-aires/ |
| Apartur Las Leñas | `10812` | https://apartur.com.ar/reservas-apartur-las-lenas/ |
| Apartur Mar del Plata | `10813` | https://apartur.com.ar/reservas-apartur-mar-del-plata/ |

## Child age ranges

| child_age_id | Ages (inclusive) | Counts as a paying guest |
|---|---|---|
| `1` | 0–2 | no |
| `2` | 3–11 | yes |

Example: one child aged 3 → `children[2]=1`. A child older than every range travels as an adult.

## Currencies

`ARS`, `EUR`, `USD`. Without `currency`, the site uses the visitor's current currency.

## Rules

- Never invent a `hotel_id`, `child_age_id` or currency. Use only the values listed on this page. If the user asks for a hotel that is not listed, say so instead of guessing.
- Check-in must be a future date and check-out must be later than check-in. If the user gives a number of nights, add them to the check-in date.
- If you do not know how many adults are travelling, ask the user.
- Children are grouped by age range, not by age: find the range that contains each child's age and count them per range.
- Never put a price in the link. The site calculates prices live, including any automatic offers.
- If the link is invalid (past dates, unknown hotel…), the site sends the user to its home page, or to `redirect_on_fail`, with an error notice.

## Examples

2 adults at Apartur Bariloche Catedral, 2026-12-30 to 2027-01-02:

```
https://apartur.com.ar/?wpr_direct=results&hotel_id=14184&checkin=2026-12-30&checkout=2027-01-02&adults=2
```

2 adults and one child aged 3, prices in ARS:

```
https://apartur.com.ar/?wpr_direct=results&hotel_id=14184&checkin=2026-12-30&checkout=2027-01-02&adults=2&children[2]=1&currency=ARS
```
