{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/barclays/main/json-schema/barclays-obread-consent1-schema.json", "title": "OBReadConsent1", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/barclays-account-access-consents-api-openapi.yml#/components/schemas/OBReadConsent1", "type": "object", "additionalProperties": false, "deprecated": false, "properties": { "Data": { "type": "object", "additionalProperties": false, "properties": { "Permissions": { "type": "array", "items": { "type": "string", "description": "Specifies the Open Banking account access data types.
This is a list of the data clusters being consented by the PSU, and requested for authorisation with the ASPSP.
For a full list of enumeration values refer to `OBInternalPermissions1Code` in *OB_Internal_CodeSet* [here](https://github.com/OpenBankingUK/External_internal_CodeSets)", "enum": [ "ReadAccountsBasic", "ReadAccountsDetail", "ReadBalances", "ReadBeneficiariesBasic", "ReadBeneficiariesDetail", "ReadDirectDebits", "ReadOffers", "ReadPAN", "ReadParty", "ReadPartyPSU", "ReadProducts", "ReadScheduledPaymentsBasic", "ReadScheduledPaymentsDetail", "ReadStandingOrdersBasic", "ReadStandingOrdersDetail", "ReadStatementsBasic", "ReadStatementsDetail", "ReadTransactionsBasic", "ReadTransactionsCredits", "ReadTransactionsDebits", "ReadTransactionsDetail" ] }, "maxItems": 99999, "minItems": 1 }, "ExpirationDateTime": { "type": "string", "format": "date-time", "description": "Specified date and time the permissions will expire.\nIf this is not populated, the permissions will be open ended. All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00" }, "TransactionFromDateTime": { "type": "string", "format": "date-time", "description": "Specified start date and time for the transaction query period.\nIf this is not populated, the start date will be open ended, and data will be returned from the earliest available transaction. All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00" }, "TransactionToDateTime": { "type": "string", "format": "date-time", "description": "Specified end date and time for the transaction query period.\nIf this is not populated, the end date will be open ended, and data will be returned to the latest available transaction. All dates in the JSON payloads are represented in ISO 8601 date-time format. \nAll date-time fields in responses must include the timezone. An example is below:\n2017-04-05T10:43:07+00:00" } }, "required": [ "Permissions" ] }, "Risk": { "$ref": "#/$defs/OBRisk2" } }, "required": [ "Data", "Risk" ], "nullable": false, "$defs": { "OBRisk2": { "type": "object", "additionalProperties": false, "deprecated": false, "description": "The Risk section is sent by the initiating party to the ASPSP.
\nIt is used to specify additional details for risk scoring for Account Info.", "nullable": false } } }