reservation_dates_taken
Confirming this cancelled reservation would double-book: another booking now holds some of its nights (`conflicts`). Nothing was changed.
When it fires
You tried to confirm a reservation that was cancelled in Repull, and another booking now holds some of its nights. When the reservation was cancelled its nights reopened on your channels, and they were booked again.
Confirming it would double-book those nights, so nothing was changed. There is no override. conflicts lists the booking(s) holding the nights. See Confirm a reservation.
Response shape
Every Repull error follows the same envelope. The code is stable and safe to switch on.
{
"error": {
"code": "reservation_dates_taken",
"message": "Some of these nights are booked again: HMX4CMA2X9 (airbnb, 2027-01-12 to 2027-01-15). Confirming would double-book them, so nothing was changed.",
"fix": "Another booking now holds some of these nights (`conflicts`). Confirming would double-book them, so nothing was changed. Move or cancel the other booking first, or leave this one cancelled.",
"docs_url": "https://repull.dev/docs/errors/reservation_dates_taken",
"request_id": "req_01J5X7Y8Z9ABCDEF12345678",
"conflicts": [
{ "id": "737901", "confirmationCode": "HMX4CMA2X9", "channel": "airbnb", "checkIn": "2027-01-12", "checkOut": "2027-01-15" }
]
}
}How to fix
- Do not retry as-is: it is refused until the nights are free.
- Look at `conflicts`: each is a booking now holding some of the nights.
- Decide which stay keeps the nights. To keep the newer one, leave this reservation cancelled. To keep this one, move or cancel the other booking first, then confirm again.
Examples
curl
curl -X POST https://api.repull.dev/v1/reservations/215708/confirm \
-H "Authorization: Bearer sk_live_YOUR_KEY"
# → 409 reservation_dates_taken, "conflicts": [{ "id": "737901", "channel": "airbnb", … }]TypeScript
const { error } = await res.json()
if (error?.code === 'reservation_dates_taken') {
// Nights sold meanwhile; nothing was changed
return { conflicts: error.conflicts }
}If you're an AI agent
The reservation cannot be confirmed again because another booking now holds some of its nights (listed in `conflicts`). Nothing was changed and there is no override. Ask the user which stay should keep the nights; only after the other booking is moved or cancelled can this one be confirmed.
Related
- Error reference — the full table of error codes
- Using Repull from AI agents — patterns for handling errors in agent loops
- Cancel a reservation
- reservation_not_confirmable
Hit an error that isn't covered? Email hello@repull.dev with the request id from the response headers.