{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/barclays/main/json-schema/barclays-get-consent-details-response-schema.json",
  "title": "get_consent_details_response",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/barclays-consents-api-openapi.yml#/components/schemas/get_consent_details_response",
  "type": "object",
  "properties": {
    "access": {
      "type": "object",
      "properties": {
        "balances": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "bban": {
                "type": "string"
              },
              "iban": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              }
            }
          }
        },
        "availableAccounts": {
          "type": "string"
        },
        "accounts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "bban": {
                "type": "string"
              },
              "iban": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              }
            }
          }
        },
        "transactions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "bban": {
                "type": "string"
              },
              "iban": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "consentStatus": {
      "type": "string"
    },
    "validUntil": {
      "type": "string",
      "format": "date-time"
    },
    "recurringIndicator": {
      "type": "boolean"
    },
    "lastActionDate": {
      "type": "string",
      "format": "date-time"
    },
    "frequencyPerDay": {
      "type": "integer"
    }
  },
  "required": [
    "access",
    "consentStatus",
    "frequencyPerDay",
    "lastActionDate",
    "recurringIndicator",
    "validUntil"
  ]
}