Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

400 - bad request

Code Block
<html>
    <head>
        <title>400 Bad Request</title>
    </head>
    <body>
        <center>
            <h1>400 Bad Request</h1>
        </center>
        <hr>
        <center>cloudflare</center>
    </body>
</html>

422 - Validation error

Code Block
{
    "meta": {
        "status": "ERROR"
    },
    "errors": [
        {
            "code": "REQUEST_VALIDATION_ERROR",
            "title": "Invalid Query Parameter body / headers / query",
            "detail": "\"account_types\" is not allowed"{
            },    "rule": "enum",
   {             "codefield": "REQUEST_VALIDATION_ERRORdirection",
                "titlemessage": "Invalid Query Parameterenum validation failed on direction",
                "detailargs": {
            "\"login_type\" is not allowed"        "choices": [
                        "IN",
                        "OUT"
                    ]
 },               }
            }
        ...}
    ]
}

404 - Not found

URL Not Found

...

Code Block
{
    "type": "bank-login-url",
    "status": "ERROR",
    "errors": [
        {
            "code": "INTERNAL_SERVER_ERROR",
            "title": "Internal server problem."
        }
    ]
}

Error codes

Error code

Area

Description

REQUEST_VALIDATION_ERROR

All

Wrong value or format used in the request body

DATA_NOT_FOUND

All

Requested entity has not been found.

NOT_FOUND

All

URL used in request not found

INPUT_DATA_ERROR

All

If wrong data provided in request (e.g. in query params or body)

NOT_AUTHORIZED

All

User is not authorized.

INVALID_AUTH_HEADER

All

Invalid authorization header used in request.

INVALID_ACCESS_TOKEN

All

invalid access token used in reuqest.

INTERNAL_SERVER_ERROR

All

Internal system problem.

INVALID_SCOPE

All

If endpoint used is not available in the scope requested during authentication.

TRANSACTION_REFRESH_ERROR

Bank Accounts API

Problem during transactions refresh (can appear when ad-hoc transactions refresh endpoint called)

ACCOUNT_REFRESH_ALREADY_RUNNING

Bank Accounts API

There is already transactions refresh running for requested bank account.

NOT_EDITABLE

Payments API

Entity is not editable. It can appear when calling PATCH endpoint on payment which cannot be updated anymore.

PAYMENT_REJECTED

Payments API

Payment has been rejected by bank.