Shopping Test Requests

To assist you in testing your integration's handling of possible shopping error states, test requests are available for all methods of the Rapid Shopping API

Important Test Shopping Notes

  • To send a test request for the Rapid Shopping API method, include an additional HTTP header named Test in your booking request and use the appropriate value from the tables below.
  • Failing to send a Test Header or sending an invalid Test Header will cause the shopping to be processed live.
  • Using a Test Header will result in a static 'canned' message returned as a response. Therefore rates, content etc. returned may not be relevant with the properties being tested.

Shop

Test Header ValueHTTP Code abd ResponseStatus
standard200 - Standard responseavailable
no_availability200 - Standard responsesold_out
unknown_internal_error500 - Internal errorN/A
service_unavailable503 - Service unavailable errorN/A

Price Check

Test Header ValueHTTP Code and ResponseStatus
available200 - Standard responseavailable
price_changed200 - Standard responseprice_changed
sold_out200 - Standard responsesold_out
unknown_internal_error500 - Internal ErrorNA
service_unavailable503 - Service unavailable errorNA

Deposit Policy

Test Header ValueHTTP Code and Response
all200 - Standard response with all options
night200 - Standard night-based deposit response
amount200 - Standard amount-based deposit response
percent200 - Standard percentage-based deposit response
remainder200 - Standard remainder-based deposit response
unknown_internal_error500 - Internal Error
service_unavailable503 - Service unavailable error

For more information on HTTP error codes see Common Error Responses.

Did you find this page helpful?
How can we improve this content?
Thank you for helping us improve Developer Hub!