RezLive

Errors & Validation

How RezLive returns errors, how to detect them programmatically, and how to recover from common failure modes.

Anatomy of an error response

From v4.8 onwards, every error response includes a stable error code in addition to the human-readable message:

XML
<HotelFindResponse>
  <error>
    <code>RZL-AUTH-001</code>
    <message>The API key you provided is invalid or your IP is not whitelisted.</message>
    <docs>https://docs.rezlive.com/errors/auth-001</docs>
  </error>
</HotelFindResponse>

Error code naming convention

All error codes follow a stable three-part format:

Format
RZL-<DOMAIN>-<NUMBER>

Where DOMAIN is one of:

DomainMeaningExample
AUTHAuthentication, API key, IP whitelistRZL-AUTH-001 — Invalid key
VALRequest validation (missing field, bad date)RZL-VAL-014 — Past arrival date
SESSession/token expiryRZL-SES-001 — SearchSessionId expired
RATERate-limit and quotaRZL-RATE-001 — Limit exceeded
AVAILAvailability or pricing changedRZL-AVAIL-001 — Price changed
BOOKBooking-state errorsRZL-BOOK-007 — Already cancelled
SYSRezLive system errorsRZL-SYS-001 — Internal error
SUPUpstream supplier errorsRZL-SUP-001 — Supplier timeout

How to detect errors in your client

⚠
Match on <code>, not on the message text

Codes are stable; messages can be reworded, translated, or improved without notice. String-matching the message is a brittle pattern that will silently break.

Recommended detection pattern:

  1. Parse the response body.
  2. If an <error> element is present, the request failed regardless of HTTP status.
  3. Read <code>. Switch on the prefix (RZL-AUTH, RZL-VAL, etc.) for category-level handling.
  4. Use <message> for logging and surface to support; never for programmatic decisions.
  5. Use <docs> URL when escalating to RezLive support.

Common validation errors

CodeTriggerHow to fix
RZL-VAL-001Missing or empty Authentication blockSend AgentCode and UserName in body
RZL-VAL-002Missing CountryCode (or not UPPERCASE)Send 2-letter ISO UPPERCASE
RZL-VAL-014ArrivalDate is today or in the pastArrivalDate must be > current date
RZL-VAL-015DepartureDate not after ArrivalDateDepartureDate must be > ArrivalDate
RZL-VAL-020More than 8 rooms in one BookingMax 8 rooms per booking; split into multiple
RZL-VAL-022ChildrenAges count does not match NoOfChildsOne ChildAge per child; pass 0 if 0 children
RZL-VAL-030Multi-room: pipe-separated count mismatchAll four pipe-separated tags must match TotalRooms