TIMESTAMP_MISMATCH

An API request may include a timestamp to ensure timeliness and prevent the replay attack.

Reason

  • The difference between the timestamp of the API request and the current timestamp of the API service is too big to accept the request

Solution

  • Make sure, that you use the current time as the timestamp value of the API request
  • The API response containing this error code should include the timestamp field, that holds the current timestamp of the server to help diagnose the issue

Example

{
    "status": 400,
    "errors": [
        {
            "code": "TIMESTAMP_MISMATCH",
            "message": "The difference between client and server times is too big, possible attempt of replay attack",
            "more_info": "https://developer.kayako.com/api/v1/reference/errors/TIMESTAMP_MISMATCH"
        }
    ]
}