Barclays · Schema

Account

A Barclays bank account as returned by the Open Banking Account Information API.

BankingCredit CardsFAPIFinanceOpen BankingOpen DataPSD2PaymentsUK BankingVariable Recurring Payments

Properties

Name Type Description
accountId string Unique identifier for the account.
currency string ISO 4217 currency code.
accountType string Type of the account.
accountSubType string Sub-type of the account.
nickname string Customer-assigned nickname for the account.
account array
balances array
View JSON Schema on GitHub

JSON Schema

account-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/barclays/json-schema/account-schema.json",
  "title": "Account",
  "description": "A Barclays bank account as returned by the Open Banking Account Information API.",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "Unique identifier for the account."
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 currency code."
    },
    "accountType": {
      "type": "string",
      "enum": ["Personal", "Business", "Savings", "CreditCard"],
      "description": "Type of the account."
    },
    "accountSubType": {
      "type": "string",
      "enum": ["CurrentAccount", "Savings", "CreditCard", "Loan"],
      "description": "Sub-type of the account."
    },
    "nickname": {
      "type": "string",
      "description": "Customer-assigned nickname for the account."
    },
    "account": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "schemeName": {
            "type": "string",
            "enum": ["UK.OBIE.SortCodeAccountNumber", "UK.OBIE.IBAN"]
          },
          "identification": {
            "type": "string",
            "description": "Account number or IBAN."
          },
          "name": {
            "type": "string",
            "description": "Account holder name."
          }
        },
        "required": ["schemeName", "identification"]
      }
    },
    "balances": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/Balance"
      }
    }
  },
  "required": ["accountId", "currency", "accountType"],
  "definitions": {
    "Balance": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "string",
              "pattern": "^\\d+\\.\\d{2}$"
            },
            "currency": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            }
          },
          "required": ["amount", "currency"]
        },
        "creditDebitIndicator": {
          "type": "string",
          "enum": ["Credit", "Debit"]
        },
        "type": {
          "type": "string",
          "enum": ["ClosingAvailable", "ClosingBooked", "ForwardAvailable", "InterimAvailable", "InterimBooked"]
        },
        "dateTime": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": ["amount", "creditDebitIndicator", "type"]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/account"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.