Barclays · Schema

Transaction

A Barclays account transaction as returned by the Transactions API.

BankingCredit CardsFAPIFinanceOpen BankingOpen DataPSD2PaymentsUK BankingVariable Recurring Payments

Properties

Name Type Description
accountId string Account identifier the transaction belongs to.
transactionId string Unique transaction identifier.
creditDebitIndicator string Whether the transaction credits or debits the account.
status string Settlement status of the transaction.
bookingDateTime string Date and time the transaction was booked.
valueDateTime string Value date and time of the transaction.
amount object
merchantDetails object
transactionInformation string Narrative description of the transaction.
View JSON Schema on GitHub

JSON Schema

transaction-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/barclays/json-schema/transaction-schema.json",
  "title": "Transaction",
  "description": "A Barclays account transaction as returned by the Transactions API.",
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "description": "Account identifier the transaction belongs to."
    },
    "transactionId": {
      "type": "string",
      "description": "Unique transaction identifier."
    },
    "creditDebitIndicator": {
      "type": "string",
      "enum": ["Credit", "Debit"],
      "description": "Whether the transaction credits or debits the account."
    },
    "status": {
      "type": "string",
      "enum": ["Booked", "Pending"],
      "description": "Settlement status of the transaction."
    },
    "bookingDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time the transaction was booked."
    },
    "valueDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "Value date and time of the transaction."
    },
    "amount": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        }
      },
      "required": ["amount", "currency"]
    },
    "merchantDetails": {
      "type": "object",
      "properties": {
        "merchantName": {
          "type": "string"
        },
        "merchantCategoryCode": {
          "type": "string"
        }
      }
    },
    "transactionInformation": {
      "type": "string",
      "description": "Narrative description of the transaction."
    }
  },
  "required": ["accountId", "transactionId", "creditDebitIndicator", "status", "amount"]
}

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/transaction"
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.