API Errors for booking workflow

Error codes returned by the hotel booking flow: search rates, prebook, and book.

Use error.code to handle failures in your integration.

Error response format:

{
  "error": {
    "code": 4002,
    "message": "required request field is missing or wrong input",
    "description": "offerId field missing or empty"
  }
}
FieldMeaning
codeStable numeric error code — match on this
messageShort, generic error label
descriptionOptional detail for this specific failure

Tips

  • Match on error.code, not HTTP status. Status codes can vary for the same error (for example, no availability on rates search returns HTTP 200 with code 2001).
  • Prefer description for display to end users when it is present; otherwise use message.

Endpoints

StepMethodPath
Search ratesPOST/v3.0/hotels/rates
PrebookPOST/v3.0/rates/prebook
Get prebookGET/v3.0/prebooks/{prebookId}
BookPOST/v3.0/rates/book

Shared errors

These can appear on any authenticated request.

CodeHTTPMessageWhat it meansWhat to do
401401unauthorizedAPI key missing or invalidCheck your API key header
40302403user is suspendedAccount is suspendedContact LiteAPI support
4290429You have exceeded the allowed request limitToo many requestsBack off and retry later
42915xxUnexpected error happened during rate limit checkingTemporary rate-limit system issueRetry; contact support if it persists

Search rates — POST /v3.0/hotels/rates

CodeHTTPMessageWhat it meansWhat to do
2001200no availability foundNo rates for the search criteriaTry different hotels, dates, or occupancy
4000400bad requestInvalid request (for example unknown hotel IDs, invalid sort or payment types, or conflicting markup fields)Fix the request body and retry
4002400required request field is missing or wrong inputRequired field missing or invalid (occupancies, checkin, checkout, guestNationality, currency, boardType, or too many hotelIds)Correct the field and retry
40020400Feed not foundUnknown or invalid feedUse a valid feed for your account
4011408 / 500suppliers communication errorUpstream supplier timed out or failedRetry the search

Prebook — POST /v3.0/rates/prebook

CodeHTTPMessageWhat it meansWhat to do
2001400 / 409no availability foundOffer no longer available, or the price changed and cannot be honoredSearch again and prebook a fresh offer
2013500booking failedBooking could not proceed (for example voucher configuration issue)Check the voucher or try again; contact support if it persists
4000400bad requestRequest validation failed (for example add-ons)Fix the request and retry
4002400required request field is missing or wrong inputMissing/invalid offerId, voucher problem, or invalid hotelFix the field or voucher and retry
4003400request field is invalid or wrongInvalid field value (for example add-on price, payment gateway, or Stripe setup)Correct the field or complete Stripe setup in the dashboard
4016408prebook timeout exceeded, please consider increasing the timeout valuePrebook took too longIncrease timeout and retry, or search again
4020500Hotel could not be loaded for this offerSearch again with a valid hotel/offer
5000400 / 500unable to process requestTemporary or unexpected failure (offer not found, provider error, payment or save failure)Retry; if it continues, search again or contact support
50071500Error creating provider orderTravel-protection offer could not be createdRetry without the add-on, or contact support

Get prebook — GET /v3.0/prebooks/{prebookId}

CodeHTTPMessageWhat it meansWhat to do
4004400entity not foundPrebook ID does not exist (or is not yours)Use a valid prebookId from a successful prebook
5000400 / 500unable to process requestCould not load or process the prebookRetry; contact support if it persists

Book — POST /v3.0/rates/book

CodeHTTPMessageWhat it meansWhat to do
2001409no availability foundThe prebooked rate is no longer availableSearch and prebook again
2013403 / 5xxbooking failedBooking rejected or provider returned an unsuccessful responseDo not retry blindly; search again or contact support
2014400 / 500booking incompletePayment or booking confirmation did not finishCheck payment status; contact support before charging again
4000400bad requestUnsupported or invalid payment method / requestFix payment details and retry
4002400required request field is missing or wrong inputMissing prebookId, payment details, guest/card fields, or invalid prebookComplete required fields and retry
4003400request field is invalid or wrongInvalid payment method, gateway, or tokenCorrect payment fields and retry
4005400duplicate booking attempt with existing client referenceclientReference was already usedUse a unique clientReference
4006400the provided payment token is malformedPayment token is malformedCreate a new payment token
4007400the provided payment token is expiredPayment token expiredCreate a new payment token
40010400the provided payment token has an invalid signaturePayment token signature invalidCreate a new payment token
40011400the provided payment token is not valid yetPayment token not yet validWait or create a new token
40012400the provided payment token is missing a transaction idToken missing transaction IDUse a complete payment token
40013400the provided payment token is missing a payment providerToken missing payment providerUse a complete payment token
40014400the provided payment token is missing a prebook idToken missing prebook IDUse a token issued for this prebook
40021400credit line is suspendedCredit line cannot be usedContact support or use another payment method
40124xx / 5xxbooking is not confirmed. The room(s) may no longer be available or the rate expiredProvider did not confirm the bookingSearch and prebook again
40900409booking amendment already existsA rebook for this prebook was already completedDo not submit the same rebook again
5000400 / 401 / 500unable to process requestTemporary or unexpected failureRetry carefully; contact support if payment may have been taken
50062400 / 500credit line backup payment failedCredit-line backup payment failedContact support or use another payment method
50066500Error creating provider orderTravel-protection order could not be createdContact support; booking may need manual review
50067500Error purchasing provider orderTravel-protection purchase failedContact support; booking may need manual review
50071500Error creating provider orderTravel-protection offer could not be fetchedContact support; booking may need manual review

Integration Notes

  • This page covers hotel rates, prebook, and book only. Flight errors are documented separately.
  • For payment SDK flows, treat 2014 (booking incomplete) and payment-token errors (400640014) carefully to avoid duplicate charges.
  • After 2001 or 4012 on prebook/book, always run a new rates search before trying again.