Hey! These docs are for version 1.0, which is no longer officially supported. Click here for the latest version, 3.0!

Return Codes

Error Codes returned:

If there's an application-level error, you will receive a standard response, containing the application error code, a generic message and a detailed message describing the specific reason for the error.

The specific reason will be created dynamically for every error, as follows:

Application StatusDescriptionMapped HTTP Status CodeMapped HTTP Status Description
-112Destination is bad400Bad Request
-123Message badly formatted400Bad Request
-125Bad input data - One of the elements is missing or the data is wrong.400Bad Request
-150System error - The server encountered an unexpected condition that prevented it from fulfilling the request.500Internal Server Error
-160URI not found - The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible404Not Found
-168Data integrity failed409Conflict
-174Too many items400Bad Request
-175The server timed out, waiting for the request. According to HTTP specifications: "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at a later time.408Request Time-out
-179Bad input parameter400Bad Request
-180User is blocked and can not use PCI Booking426USER_BLOCKED
-1002Missing authentication header - Bad or missing authorization data, expected APIKEY.401Unauthorized
-1003Not authorized to access this resource - Authentication failed or the user doesn't have the necessary credentials for PCI Booking service.401Unauthorized
-1004The card number does not match the card type400Bad Request
-1005Card type is missing400Bad Request

Success codes returned:

Mapped HTTP Status CodeMapped HTTP Status DescriptionDescription
200OkThe request was fulfilled
201CreatedThe request has been fulfilled, creating a new resource.

📘

You can find all relevant response content within the methods description

Sample Error Response

<?xml version="1.0" encoding="utf-8"?>

<ErrorBlock xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <code>-112</code>
  <message>http://www.w3.org/2001/XMLSchema</message>
  <moreInfo>Bad or missing custom header X-pciBooking-Destination</moreInfo>
</ErrorBlock>
{
    "code":-112,
    "message":"Destination is bad",
    "moreInfo":"Bad or missing custom header X-pciBooking-Destination"
}