Page cover

Validate Account Details

Endpoint

POST {{base_url}}/v1/accounts/validate

Description

This endpoint is used to validate a GBP or EUR account using the provided account details.

Request Body GBP

The request body should be a JSON object containing the following fields:

  • Account Number: "00002120"

  • SortCode: "041917"

  • currency: "GBP"

Example Request

{
    "status": false,
    "message": "Failed to validate GBP account",
    "code": 500
}

Response

The API will return a JSON object containing a success message with "status": true when the parameters are correct, and an error message with "status": false when the parameters are incorrect.

Request Body EUR

The request body should be a JSON object containing the following fields:

  • Iban: "00002120"

  • BIC: "041917"

  • currency: "EUR"

Response

The API will return a JSON object containing a success message with "status": true when the parameters are correct, and an error message with "status": false when the parameters are incorrect.

Error

Include common error responses and their meanings.

  • 400 Bad Request: Account can not be verified.

  • 500 Internal Server Error: An error occurred on the server.

Last updated