Errors and Status Codes

Bookinglayer uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicates success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, validation errors, etc.). Codes in the 5xx range indicates an error with the Bookinglayer servers and you should retry. Each error response MUST include errors Object with error details.

{
    "data": {
        "message": "The given data was invalid.",
        "errors": {
            "starts_at": [
                "starts at is not a valid date"
            ]
        }
    }
}

Last updated