{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/revolut/main/json-schema/revolut-obread-consent1-schema.json", "title": "OBReadConsent1", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/revolut-accounts-api-openapi.yml#/components/schemas/OBReadConsent1", "required": [ "Data", "Risk" ], "type": "object", "properties": { "Data": { "$ref": "#/$defs/OBReadData1" }, "Risk": { "$ref": "#/$defs/OBRisk2" } }, "$defs": { "OBExternalPermissions1Code": { "type": "string", "description": "The type of data access to the account.", "enum": [ "ReadAccountsBasic", "ReadAccountsDetail", "ReadBalances", "ReadBeneficiariesBasic", "ReadBeneficiariesDetail", "ReadDirectDebits", "ReadOffers", "ReadPAN", "ReadParty", "ReadPartyPSU", "ReadProducts", "ReadScheduledPaymentsBasic", "ReadScheduledPaymentsDetail", "ReadStandingOrdersBasic", "ReadStandingOrdersDetail", "ReadStatementsBasic", "ReadStatementsDetail", "ReadTransactionsBasic", "ReadTransactionsCredits", "ReadTransactionsDebits", "ReadTransactionsDetail" ] }, "OBReadData1": { "required": [ "Permissions" ], "type": "object", "properties": { "Permissions": { "minItems": 1, "type": "array", "description": "Specifies the type of data access to the account.\nThis is a list of the data clusters being consented by the [PSU](https://developer.revolut.com/docs/guides/build-banking-apps/glossary), and requested for authorisation with the [ASPSP](https://developer.revolut.com/docs/guides/build-banking-apps/glossary).", "items": { "$ref": "#/$defs/OBExternalPermissions1Code" } }, "ExpirationDateTime": { "type": "string", "description": "Specifies the date and time the permission expires.\nIf this is not specified, the permission is open ended.\n\nAll dates in the JSON payloads are represented in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time format.\nAll date-time fields in responses must include the timezone.\n\nFor example: `2017-04-05T10:43:07+00:00`.", "format": "date-time" }, "TransactionFromDateTime": { "type": "string", "description": "Specifies the start date and time for the transaction query period.\nIf this is not specified, the start date is open ended, and data is returned from the earliest available transaction.\n\nAll dates in the JSON payloads are represented in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time format.\nAll date-time fields in responses must include the timezone.\n\nFor example: `2017-04-05T10:43:07+00:00`.", "format": "date-time" }, "TransactionToDateTime": { "type": "string", "description": "Specifies the end date and time for the transaction query period.\nIf this is not specified, the end date is open ended, and data is returned to the latest available transaction.\n\nAll dates in the JSON payloads are represented in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time format.\nAll date-time fields in responses must include the timezone.\n\nFor example: `2017-04-05T10:43:07+00:00`.", "format": "date-time" } } }, "OBRisk2": { "type": "object", "description": "The Risk section contains the risk indicators that the initiating party sends to the [ASPSP](https://developer.revolut.com/docs/guides/build-banking-apps/glossary), which can be used to specify additional details for risk scoring for account information." } } }