Códigos de error

Errors

Learn about common mistakes and how to solve them.

HTTP Status Codes

Kushki might return different HTTP status codes depending on the requests made. Below are the most common HTTP status codes, their associated standard message, as well as a more detailed description of the response.

CodeMessageDetail
200OKThe process was successful. Everything worked as expected, according to the HTTP method
400Bad RequestThe server cannot interpret the request (incorrect syntax, too large size, missing parameters)
401Authorization RequiredCredentials must be authenticated, or authentication has failed
403ForbiddenDo not have the necessary permissions to perform this action
404Not FoundResource or page not found
409ConflictThe request cannot be processed because of a conflict with the resource (e.g., multiple simultaneous updates)
410GoneThe requested resource has been deleted from the server, and will no longer be available
412Precondition failedIndicates that access to the target resource has been denied
429Too Many RequestsToo many requests have been sent in a short period of time
430Request Header Fields Too LargeThis status code indicates that the server is unwilling to process the request because its header fields are too large.
500Internal Server ErrorAn unexpected server-side error occurred
502Bad GatewayThe server (acting as a proxy or gateway) received an invalid response from another server
503Service Temporarily UnavailableThe server is unavailable (usually because it is under maintenance, or because it is overloaded)
504Gateway TimeoutThe server (acting as a proxy or gateway) has not received a response from the other server in time

Error codes for Creating Payment Request Service

In case of error while generating a payment request a response like the following will be returned:

{
"error": true,
"code": "MR-110",
"message": "Transaction Amount is less than allowed minimum"
}

The following table describes the errors that can be generated during the generation of a payment request.

CodeTypeMessage
MR-100DeviceDevice for API-Key doesn’t exist
MR-110Input fieldTransaction Amount is less than allowed minimum
MR-120Input fieldTransaction Amount is more than allowed
MR-130Input fieldDTE type not recognized
MR-140Input fieldNo exempt amount found for DTE Type 99
MR-141Input fieldExempt amount not equal to transaction amount
MR-150Input fieldExempt Amount is not less than transaction amount
MR-151Input fieldExempt Amount is invalid
MR-000AuthorizationNot Authorized
MR-160Payment RequestPayment Request doesn’t exist
MR-161DeviceDevice by SN not found
MR-170ServiceError with Database
MR-180Queue of RequestsPayment Request Queue for the device is full. Note: The maximum number of requests in queue is up to 5.
I-04Customized FieldsExtraData String has invalid characters
INT-MIDDLEWARE-429Limit of RequestsAPI Quota Exceeded! Quota: {0} per {1}, Try Again in {2} seconds
KEY-002AuthenticationAPI Key is missing in the request header
KEY-003AuthenticationInvalid API Key
RP-000IdempotencyInvalid Idempotency Key
RP-001Input fieldIdempotency Key length must be between 1 and 36 characters
RP-003Input fieldThe characters entered are invalid
RP-004Input fieldInvalid characters in source version
RP-007Custom FieldsReserved custom field name
RP-010Custom FieldsMaximum custom fields exceeded
RP-026Custom FieldsDuplicate custom field names
I-02Custom FieldsCustom field length invalid
I-03Custom FieldsCustom field length invalid
MR-191IdempotencyThe identifier provided is already in use.
MR-203 *Payment requestPayment request is in process
RP-005 *Input fieldNo exempt amount for specific DTE types
RP-006 *Input fieldExempt amount does not match total