Sample Messages

This section contains sample messages illustrating how to interact with the Create booking API.

CB Response: Errors

The following is a sample error response message: in this case there are mistakes in the request of CB request.

{
    "error": {
        "code": 401,
        "description": "Unauthorized Access: Invalid API Key"
    }
}
{
    "error": {
        "code": 415,
        "description": "Unsupported data for {field}"
    }
}
{
    "error": {
        "code": 500,
        "description": "Interval server error"
    }
}
{
    "error": {
        "code": 404,
        "description": "{field} not found"
    }
}
{
    "error": {
        "code": 419,
        "description": "Reference number already cancelled"
    }
}
{
    "error": {
        "code": 419,
        "description": "First time cancellation not allowed"
    }
}

{field} will be the json key of the request sent to GalapagosGDS API.