quote_failed
The PMS quote failed for a reason not covered by a more specific code. Nothing was booked; retry.
When it fires
POST /v1/reservations/quote failed for a reason no more specific code covers. Nothing was booked — a quote never books.
502 when the PMS failed; 422 when it answered with something that is not a price. A stay the PMS will not take is not this error: that is a 200 with available: false and the reasons in restrictions.
Response shape
Every Repull error follows the same envelope. The code is stable and safe to switch on.
{
"error": {
"code": "quote_failed",
"message": "The quote failed.",
"fix": "See https://repull.dev/docs/errors for recovery steps.",
"docs_url": "https://repull.dev/docs/errors/quote_failed",
"request_id": "req_01J5X7Y8Z9ABCDEF12345678"
}
}How to fix
- On a 502, retry with backoff — quoting has no side effects.
- On a 422, read `message`; if the PMS cannot quote, create the booking with a `totalPrice` where `capabilities.reservations.customPrice` is true.
- If it keeps failing, email hello@repull.dev with the `request_id`.
Examples
curl
curl -X POST https://api.repull.dev/v1/reservations/quote \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"listingId": 4118, "checkIn": "2026-10-01", "checkOut": "2026-10-05", "adults": 2}'TypeScript
const res = await fetch('https://api.repull.dev/v1/reservations/quote', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.REPULL_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ listingId: 4118, checkIn: '2026-10-01', checkOut: '2026-10-05', adults: 2 }),
})
const body = await res.json()
if (body.error?.code === 'quote_failed' && res.status === 502) {
// safe to retry: a quote books nothing
}If you're an AI agent
The PMS quote failed; nothing was booked. Retry on a 502. A stay that is merely unavailable comes back as 200 with available: false, not as this error.
Related
- Error reference — the full table of error codes
- Using Repull from AI agents — patterns for handling errors in agent loops
- Creating reservations
- PMS reservation support
Hit an error that isn't covered? Email hello@repull.dev with the request id from the response headers.