Skip to content

Error Codes

alexwyett edited this page Oct 14, 2014 · 2 revisions

Internal API errors

  • 0 - An exception was thrown by the Symfony core
  • -1 - An exception was thrown by our code but hasn't been assigned an error code yet

Request errors

  • 10001 - No JSON was provided or the data provided was not valid JSON
  • 10002 - The JSON was provided and was valid but did not contain all the required fields
  • 10003 - The JSON was provided but contained values that were not allowed See here for more information on these errors.

Booking enquiry errors

  • 20001 - The requested dates for the booking are in the past
  • 20002 - The property is not accepting bookings for the requested year
  • 20003 - The property is already booked for the requested dates
  • 20004 - The requested dates do not adhere to the property's short break rules
  • 20005 - The API was unable to find a price for this holiday (price was < £75).
  • 20006 - The API was unable to find a price for this holiday (missing pricetype record).
  • 20007 - The API was unable to find a price for this holiday (missing datechangedayperiod record).
  • 20008 - The API was unable to find a price for this holiday (missing pricingperiod record).
  • 20009 - The API was unable to find a price for this holiday (missing week record).
  • 20010 - The property does not accept pets
  • 20011 - The party exceeds the number of people the property can accommodate
  • 20012 - The party must consist of at least 1 adult
  • 20013 - The API was unable to find a price for this holiday (Missing price band in week record).
  • 20014 - The property does not exist in the API

Booking errors

  • 20050 - The extra code does not exist
  • 20051 - The extra code cannot be applied to this booking (wrong property)

Voucher code errors

  • 20101 - The voucher code was not recognised
  • 20102 - The voucher code is not active (active flag)
  • 20103 - The voucher code is not active (dates)
  • 20104 - The voucher code is not active (usage limit reached)
  • 20105 - The voucher code is not valid for this property
  • 20106 - The extra code associated with the voucher code does not exist
  • 20107 - Supplied Promotion has not been applied to the booking
  • 20108 - Supplied Promotion has already been applied to the booking

Search errors

  • 30001 - The coordinates provided were an odd number but need to be an even number to make points
  • 30002 - The coordinates provided are too few. Must provide > 6 coordinates
  • 30003 - Invalid search ID
  • 30004 - Something went wrong in search. This should follow a message with more information
  • 30005 - Invalid filter used. This refers to the filter key, not the value.

Clone this wiki locally