Skip to main content
POST
/
bank-details
/
validate
Validate bank details
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    accountHolderName: '<string>',
    accountNumber: '<string>',
    sortCode: '<string>',
    routingNumber: '<string>',
    iban: '<string>',
    bicSwift: '<string>',
    country: '<string>',
    currency: '<string>'
  })
};

fetch('https://api.dolfinai.co/bank-details/validate', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "isValid": true,
  "errors": [
    {
      "field": "<string>",
      "code": "<string>",
      "message": "<string>"
    }
  ],
  "canonical": {
    "accountHolderName": "<string>",
    "accountNumber": "<string>",
    "sortCode": "<string>",
    "routingNumber": "<string>",
    "iban": "<string>",
    "bicSwift": "<string>",
    "country": "<string>",
    "currency": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
accountHolderName
null | string
accountNumber
null | string
sortCode
null | string
routingNumber
null | string
iban
null | string
bicSwift
null | string
country
null | string

ISO 3166-1 alpha-2 country code (e.g. GB, US, DE)

currency
null | string

ISO 4217 currency code (e.g. GBP, USD, EUR)

Response

200 - application/json

OK

isValid
boolean
required
errors
object[]
required
canonical
object
required