Errors

EukaPay API uses conventional HTTP response codes to indicate the success or failure of an API request.

2xx status codes indicate success.

4xx status codes indicate an error that failed due to the information provided (for example a required parameter was omitted, etc.).

5xx status codes indicate an error with EukaPay's APIs.

Error Attributes

statusCode - number
Provides the associated HTTP status code

message - string or object
Provides a description of the error.

type - string
specifies error type - api_error, idempotency_error, or invalid_request_error.

HTTP status codesDescription
200 - OKEverything worked as expected.
400 - Bad RequestUnacceptable request, most likely due to missing a required parameter.
401 - UnauthorizedInvalid API key provided.
402 - Request FailedThe parameters were valid but the request failed.
403 - ForbiddenThe API key doesn't have permissions to perform the request.
404 - Not FoundThe requested resource doesn't exist.
409 - ConflictThe request conflicts with another request
429 - Too Many RequestsToo many requests hit the API too quickly. We recommend an exponential backoff of your requests.
500, 502, 503, 504 - Server ErrorsInternal server errors. You can contact us if you experience this type of errors