Error codes
This annex defines the error codes that the API can return in each call and their meaning.
Request validation errors
Section titled “Request validation errors”- 420: A required value is missing from the request. Returned, for instance, when no accommodation is specified in the full accommodation catalog, or no prepackage in the package catalog.
- 421: The check-in date is later than the check-out date.
- 422: The check-in or check-out date is earlier than today. The message says which one.
- 424: The requested date range exceeds the maximum allowed, which is 30 days of accommodation.
Availability errors
Section titled “Availability errors”- 440: No package was found for the requested activities or dates.
Sale errors
Section titled “Sale errors”- 5000: The client’s identification document is required (DNI, NIF, Passport…).
- 5001: The maximum daily sales amount has been exceeded for the indicated customer. In order to make the sale, the name of the client and the complete address must be indicated.
- 5002: The maximum daily sales amount has been exceeded for the indicated customer, please contact the department indicated in the error message.
- 5003: The customer identifier provided is not valid. Check the message alongside the code for details.
- 6010: The
PartnerSaleIdyou sent has already been used in another sale. Every sale needs its own identifier; see confirm the reservation.
Internal errors
Section titled “Internal errors”- 500: Internal error while processing the request — retrieving the catalog, for example. When the
cause comes from an underlying system, the reason arrives in
ErrorMessage.