{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/barclays/main/json-schema/barclays-get-account-balance-details-response-schema.json",
  "title": "get_account_balance_details_response",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/barclays-accounts-api-openapi.yml#/components/schemas/get_account_balance_details_response",
  "type": "object",
  "properties": {
    "balances": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "balanceType": {
            "type": "string"
          },
          "balanceAmount": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ]
          }
        },
        "required": [
          "balanceAmount",
          "balanceType"
        ]
      }
    },
    "account": {
      "type": "object",
      "properties": {
        "bban": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "balances"
  ]
}