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 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 value | HTTP code and response | Status |
---|---|---|
standard | 200 - Standard response | available |
no_availability | 200 - Standard response | sold_out |
unknown_internal_error | 500 - Internal error | N/A |
service_unavailable | 503 - Service unavailable error | N/A |
Price Check
Test header value | HTTP code and response | Status |
---|---|---|
available | 200 - Standard response | available |
price_changed | 200 - Standard response | price_changed |
sold_out | 200 - Standard response | sold_out |
unknown_internal_error | 500 - Internal error | NA |
service_unavailable | 503 - Service unavailable error | NA |
Deposit policy
Test header value | HTTP code and response |
---|---|
all | 200 - Standard response with all options |
night | 200 - Standard night-based deposit response |
amount | 200 - Standard amount-based deposit response |
percent | 200 - Standard percentage-based deposit response |
remainder | 200 - Standard remainder-based deposit response |
unknown_internal_error | 500 - Internal error |
service_unavailable | 503 - Service unavailable error |
For more information on HTTP error codes see common error responses.