QR-Code Services
Error Codes
The following error codes are defined.
- 0 : DECODE_APIERROR_NOERROR - No error.
- 1 : DECODE_APIERROR_INVALID_CODE - The code passed was invalid.
- 2 : DECODE_APIERROR_INVALID_RANGE - The range of timestamp passed was invalid.
- 3 : DECODE_APIERROR_INSUFFICIENT_CREDITS - Insufficient credits.
- 4 : DECODE_APIERROR_CODE_EXISTS - The code already exists.
- 5 : DECODE_APIERROR_ARGUMENTS_ERROR - Arguments passed was invalid.
- 6 : DECODE_APIERROR_NOT_AUTHORISED - Customer not authorized to do action.
- 7 : DECODE_APIERROR_RANGE_IS_TAKEN - Code range already taken.
- 8 : DECODE_APIERROR_UNKNOWN_CUSTOMER - Customer unknow by the API.
Additionally, if a technical error was thrown, the API will return the internal error code (in the range 999-2000.) These errors should be considered runtime exceptions (e.g. unexpected, "unhandled" errors.) The API client issuer should contact Kaywa, giving as much as possible details (date, request uri, error code, ...) about the error.


