"ACCESS_ERROR" - "VALIDATION_ERROR"

I have received an "ACCESS_ERROR" - "VALIDATION_ERROR". What does it mean?

An "ACCESS_ERROR" - "VALIDATION_ERROR" is returned in those cases the validation information in your request does not match the information set for your account or it's not valid for that specific request. Some examples:

Incorrect credentials (client, Apikey, etc.):

{
    "data" : {
        "hotelX" : {
            "search" : {
                "auditData" : null,
                "context" : "xxx",
                "options" : null,
                "errors" : [
                    {
                        "code" : "ACCESS_ERROR",
                        "type" : "VALIDATION_ERROR",
                        "description" : "this group does not have execution permission over src"
                    }
                ],
                "warnings" : null
            }
        }
    }
}

Incorrect access information:

{
    "data": {
        "hotelX": {
            "search": {
                "auditData": {
                    "transactions": []
                },
              "context": "xxxx",
                "options": null,
                "errors": [
                    {
                        "code": "ACCESS_ERROR",
                        "type": "VALIDATION_ERROR",
                        "description": "No valid accesses found"
                    }
                ],
                "warnings": null
            }
        }
    }
}

Dates are invalid (past dates):

{
    "data": {
        "hotelX": {
            "search": {
                "auditData": null,
              "context": "xxxx",
                "warnings": null,
                "options": null,
                "errors": [
                    {
                        "code": "WRONG_FIELD",
                        "type": "VALIDATION_ERROR",
                        "description": "check-in date must be from now on"
                    }
                ]
            }
        }
    }
}

 

Some of the reasons that may cause a validation error are:

  • Incorrect access: The access set in your request hasn't been configured for your account or it is not active. You should check My Connections in order to make sure the information is correct.
  • Access type Test/Live: make sure the "testMode" tag in your request matches the Test/Live information for that specific access.
  • Incorrect client: the "client" set in your request should be one of those configured for your account. You will find more information on Hotel-X clients here.
  • Incorrect Apikey or Context - You will find more information on Hotel-X credentials here.
  • Incorrect criteria - you should check the criteria in your request is valid (e.g. checkIn checkOut dates not from the past)

Should the error persist after checking the aforementioned information, please contact our Customer Care team.