openapi: "3.0.0"
info:
  title: "Account Information API"
  description: >
    In this document, you'll find the steps your organization needs to take to use our API services. Included in this guide are details of request and response messages used to support your organization’s integration.
    The intended audience for this document are **Technical Architects**, **Development Engineers**, **Test Engineers**, and **Operation & Maintenance Engineers** involved in development and support of your organization’s integration.
    Setting up our API Services is best completed with the assistance of your organization’s IT team, or someone with experience and knowledge of application programming interfaces. This should include experience with **JSON payloads**, **security** and **public key infrastructure (PKI)**.
    This Document describes the following request and response structure of **HSBC MI Vision - Account Information API**. For detail implementation guidelines, please refer to the respective section of Documentation page.
  version: "3.1.11"
tags:
  - name: "Account Access Consents"
  - name: "Accounts"
    description: "Manage Account Access Consents"
  - name: "Statements"
  - name: "Transactions"
  - name: "Balances"
paths:
  /account-access-consents:
    post:
      tags:
        - "Account Access Consents"
      summary: "Create Account Access Consents"
      description: This endpoint enables TPP to create account access consent. Supported product is Credit cards.
      operationId: "CreateAccountAccessConsents"
      parameters:
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization1"
        - $ref: "#/components/parameters/x-customer-user-agent"
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/OBReadConsent1"
          application/jose+jwe:
            schema:
              $ref: "#/components/schemas/OBReadConsent1"
        description: "Default"
        required: true
      responses:
        "201":
          $ref: "#/components/responses/201AccountAccessConsentsCreated"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "415":
          $ref: "#/components/responses/415Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - TPPOAuth2Security:
            - "accounts"
  /account-access-consents/{ConsentId}:
    get:
      tags:
        - "Account Access Consents"
      summary: "Get Account Access Consents"
      description: This endpoint enables TPP to get account access consent by ConsentId. Supported product is Credit cards.
      operationId: "GetAccountAccessConsentsConsentId"
      parameters:
        - $ref: "#/components/parameters/ConsentId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization1"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountAccessConsentsConsentIdRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - TPPOAuth2Security:
            - "accounts"
    delete:
      tags:
        - "Account Access Consents"
      summary: "Delete Account Access Consents"
      description: This endpoint enables TPP to delete account access consent. Supported product is Credit cards.
      operationId: "DeleteAccountAccessConsentsConsentId"
      parameters:
        - $ref: "#/components/parameters/ConsentId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization1"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "204":
          $ref: "#/components/responses/204AccountAccessConsentsConsentIdDeleted"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - TPPOAuth2Security:
            - "accounts"
  /accounts:
    get:
      tags:
        - "Accounts"
      summary: "Get Accounts"
      description: This endpoint enables to get Accounts. Supported product is Credit cards.
      operationId: "GetAccounts"
      parameters:
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}:
    get:
      tags:
        - "Accounts"
      summary: "Get Accounts by AccountId"
      description: This endpoint enables to get Accounts by AccountId. Supported product is Credit cards.
      operationId: "GetAccountsAccountId"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/balances:
    get:
      tags:
        - "Balances"
      summary: "Get Account Balances"
      description: This endpoint enables to get Balances by AccountId. Supported product is Credit cards.
      operationId: "GetAccountsAccountIdBalances"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdBalancesRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/statements:
    get:
      tags:
        - "Statements"
      summary: "Get Account Statements"
      operationId: "GetAccountsAccountIdStatements"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
        - $ref: "#/components/parameters/FromStatementDateTimeParam"
        - $ref: "#/components/parameters/ToStatementDateTimeParam"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdStatementsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/statements/{StatementId}:
    get:
      tags:
        - "Statements"
      summary: "Get Statements by StatementId"
      operationId: "GetAccountsAccountIdStatementsStatementId"
      parameters:
        - $ref: "#/components/parameters/StatementId"
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdStatementsStatementIdRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/statements/{StatementId}/transactions:
    get:
      tags:
        - "Transactions"
      summary: "Get Statement Transactions"
      operationId: "GetAccountsAccountIdStatementsStatementIdTransactions"
      parameters:
        - $ref: "#/components/parameters/StatementId"
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdStatementsStatementIdTransactionsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "404":
          $ref: "#/components/responses/404Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
  /accounts/{AccountId}/transactions:
    get:
      tags:
        - "Transactions"
      summary: "Get Account Transactions"
      description: This endpoint enables to get account Transactions by AccountId. Supported product is Credit cards.
      operationId: "GetAccountsAccountIdTransactions"
      parameters:
        - $ref: "#/components/parameters/AccountId"
        - $ref: "#/components/parameters/x-fapi-auth-date"
        - $ref: "#/components/parameters/x-fapi-customer-ip-address"
        - $ref: "#/components/parameters/x-fapi-interaction-id"
        - $ref: "#/components/parameters/Authorization2"
        - $ref: "#/components/parameters/x-customer-user-agent"
        - $ref: "#/components/parameters/FromBookingDateTimeParam"
        - $ref: "#/components/parameters/ToBookingDateTimeParam"
      responses:
        "200":
          $ref: "#/components/responses/200AccountsAccountIdTransactionsRead"
        "400":
          $ref: "#/components/responses/400Error"
        "401":
          $ref: "#/components/responses/401Error"
        "403":
          $ref: "#/components/responses/403Error"
        "405":
          $ref: "#/components/responses/405Error"
        "406":
          $ref: "#/components/responses/406Error"
        "429":
          $ref: "#/components/responses/429Error"
        "500":
          $ref: "#/components/responses/500Error"
      security:
        - BearerAuth: []
        - PSUOAuth2Security:
            - "accounts"
servers:
  - url: "https://sandbox.ob.mivision.hsbc.co.uk/mock/obie/open-banking/v3.1/aisp"
components:
  parameters:
    FromBookingDateTimeParam:
      in: "query"
      name: "fromBookingDateTime"
      description: "The UTC ISO 8601 Date Time to filter transactions FROM\nNB Time component is optional - set to 00:00:00 for just Date.\nIf the Date Time contains a timezone, the ASPSP must ignore the timezone component."
      schema:
        type: "string"
        format: "date-time"
      example: "2023-01-04T13:21:07+00:00"
    ToBookingDateTimeParam:
      in: "query"
      name: "toBookingDateTime"
      description: "The UTC ISO 8601 Date Time to filter transactions TO\nNB Time component is optional - set to 00:00:00 for just Date.\nIf the Date Time contains a timezone, the ASPSP must ignore the timezone component."
      schema:
        type: "string"
        format: "date-time"
      example: "2023-02-04T13:21:07+00:00"
    FromStatementDateTimeParam:
      in: "query"
      name: "fromStatementDateTime"
      description: "The UTC ISO 8601 Date Time to filter statements FROM\nNB Time component is optional - set to 00:00:00 for just Date.\nIf the Date Time contains a timezone, the ASPSP must ignore the timezone component."
      schema:
        type: "string"
        format: "date-time"
      example: "2023-01-04T13:21:07+00:00"
    ToStatementDateTimeParam:
      in: "query"
      name: "toStatementDateTime"
      description: "The UTC ISO 8601 Date Time to filter statements TO\nNB Time component is optional - set to 00:00:00 for just Date.\nIf the Date Time contains a timezone, the ASPSP must ignore the timezone component."
      schema:
        type: "string"
        format: "date-time"
      example: "2023-02-04T13:21:07+00:00"
    ConsentId:
      name: "ConsentId"
      in: "path"
      description: "ConsentId"
      required: true
      schema:
        type: "string"
      example: "7404e99b-1a4d-4b08-b441-c327661527f0"
    AccountId:
      name: "AccountId"
      in: "path"
      description: "AccountId"
      required: true
      schema:
        type: "string"
      example: "ThR-RpLMV5lZzDu8vrfEFg"
    StatementId:
      name: "StatementId"
      in: "path"
      description: "StatementId"
      required: true
      schema:
        type: "string"
      example: "Du8vrfEFgThR-RpLMV5lZz"
    Authorization1:
      in: "header"
      name: "Authorization"
      required: true
      description: "An authorisation token which was obtained from an authorisation server using Client Credentials Grant (https://www.rfc-editor.org/rfc/rfc6749#section-4.4). The obtained token must be sent using 'Bearer' scheme (https://tools.ietf.org/html/rfc6750#section-2) for this request"
      example: "Bearer LbGDbcFVVfE-ngpjj8KaH5wrEfg"
      schema:
        type: "string"
    Authorization2:
      in: "header"
      name: "Authorization"
      required: true
      description: "An authorisation token which was obtained from an authorisation server using Authorisation Code Grant (https://www.rfc-editor.org/rfc/rfc6749#section-4.1). The obtained token must be sent using 'Bearer' scheme (https://tools.ietf.org/html/rfc6750#section-2) for this request"
      example: "Bearer GtbuGXK9ByYYHX-Fg9cT_8b31S8"
      schema:
        type: "string"
    x-customer-user-agent:
      in: "header"
      name: "x-customer-user-agent"
      description: "Indicates the user-agent that the PSU is using."
      required: false
      schema:
        type: "string"
      example: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
    x-fapi-customer-ip-address:
      in: "header"
      name: "x-fapi-customer-ip-address"
      required: false
      description: "The PSU's IP address if the PSU is currently logged in with the TPP."
      schema:
        type: "string"
        pattern: ^((((25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\s?)|(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\s?),?\s?)+$
      example: "12.201.45.125"
    x-fapi-auth-date:
      in: "header"
      name: "x-fapi-auth-date"
      required: false
      description: "The time when the PSU last logged in with the TPP. \nAll dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: \nSun, 10 Sep 2017 19:43:31 UTC"
      schema:
        type: "string"
        pattern: "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
      example: "Tue, 18 Apr 2023 14:42:25 UTC"
    x-fapi-interaction-id:
      in: "header"
      name: "x-fapi-interaction-id"
      required: false
      description: "An RFC4122 UID used as a correlation id."
      schema:
        type: "string"
      example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
  responses:
    201AccountAccessConsentsCreated:
      description: "Created"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
    200AccountAccessConsentsConsentIdRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadConsentResponse1"
    204AccountAccessConsentsConsentIdDeleted:
      description: "No Content"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
    200AccountsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
    200AccountsAccountIdRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadAccount6"
    200AccountsAccountIdBalancesRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "20177a90-5e29-43ba-bea0-cc6c344a9d32"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadBalance1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadBalance1"
    200AccountsAccountIdStatementsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadStatement2"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadStatement2"
    200AccountsAccountIdStatementsStatementIdRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadStatement2"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadStatement2"
    200AccountsAccountIdStatementsStatementIdTransactionsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadTransaction6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadTransaction6"
    200AccountsAccountIdTransactionsRead:
      description: "OK"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBReadTransaction6"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBReadTransaction6"
    400Error:
      description: "Bad request"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
    401Error:
      description: "Unauthorized"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
            example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"

    403Error:
      description: "Forbidden"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
    404Error:
      description: "Not found"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
    405Error:
      description: "Method Not Allowed"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "cc0fe5bf-0522-4cd4-8d08-417cf8f81841"
    406Error:
      description: "Not Acceptable"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
    415Error:
      description: "Unsupported Media Type"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
          example: "7507f324-b4e6-43f4-8497-153930017bd9"
    429Error:
      description: "Too Many Requests"
      headers:
        Retry-After:
          description: "Number in seconds to wait"
          schema:
            type: "integer"
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          schema:
            type: "string"
          example: "1452697e-68ff-499e-a1f2-980da8e2cea1"
    500Error:
      description: "Internal Server Error"
      headers:
        x-fapi-interaction-id:
          description: "An RFC4122 UID used as a correlation id."
          required: true
          schema:
            type: "string"
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
        application/jose+jwe:
          schema:
            $ref: "#/components/schemas/OBErrorResponse1"
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization scheme used to authenticate & authorize access to a protected resource on a web server. It is used in conjunction with the OAuth 2.0 protocol for securing API endpoints.
    TPPOAuth2Security:
      type: oauth2
      description: TPP client credential authorisation flow with the ASPSP. Token URL to be used by TPP to obtain a token. Check the well-known configuration endpoint, the 'token_endpoint' property.
      flows:
        clientCredentials:
          tokenUrl: "/obie/open-banking/v1.1/oauth2/token"
          scopes:
            accounts: "Ability to read Accounts information"
    PSUOAuth2Security:
      type: oauth2
      description: OAuth flow, it is required when the PSU needs to perform SCA with
        the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU. Authorization URL to be used by TPP to redirect the PSU in order to start consent authorization journey. Check the well-known configuration endpoint, the 'authorization_endpoint' property. Token URL to be used by TPP to obtain a token. Check the well-known configuration endpoint, the 'token_endpoint' property.
      flows:
        authorizationCode:
          authorizationUrl: "/obie/open-banking/v1.1/oauth2/authorize"
          tokenUrl: "/obie/open-banking/v1.1/oauth2/token"
          scopes:
            accounts: "Ability to read Accounts information"
  schemas:
    AccountId:
      description: "A unique and immutable identifier used to identify the account resource. This identifier has no meaning to the account owner."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "WQEF7_6iy3HEWspIs8CDOw"
    ActiveOrHistoricCurrencyCode_0:
      description: "Identification of the currency in which the account is held. \nUsage: Currency should only be used in case one and the same account number covers several currencies\nand the initiating party needs to identify which currency needs to be used for settlement on the account."
      type: "string"
      pattern: "^[A-Z]{3,3}$"
      example: "x5555"
    ActiveOrHistoricCurrencyCode_1:
      description: "A code allocated to a currency by a Maintenance Agency under an international identification scheme, as described in the latest edition of the international standard ISO 4217 \"Codes for the representation of currencies and funds\"."
      type: "string"
      pattern: "^[A-Z]{3,3}$"
      example: "USD"
    AddressLine:
      description: "Information that locates and identifies a specific address for a transaction entry, that is presented in free format text."
      type: "string"
      minLength: 1
      maxLength: 70
      example: "17 Dean's Yard, Westminster, London"
    BookingDateTime:
      description: "Date and time when a transaction entry is posted to an account on the account servicer's books.\nUsage: Booking date is the expected booking date, unless the status is booked, in which case it is the actual booking date.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"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:22:20+00:00"
    BuildingNumber:
      description: "Number that identifies the position of a building on a street."
      type: "string"
      minLength: 1
      maxLength: 16
      example: "24A"
    CreationDateTime:
      description: "Date and time at which the resource was created.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"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:22:20+00:00"
    DateTime:
      description: "Date and time associated with the date time type.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"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:22:20+00:00"
    Description_0:
      description: "Specifies the description of the account type."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "Test Description"
    Description_1:
      description: "Description that may be available for the statement fee."
      type: "string"
      minLength: 1
      maxLength: 128
      example: "Test Description"
    Description_2:
      description: "Description that may be available for the statement interest."
      type: "string"
      minLength: 1
      maxLength: 128
      example: "Test Description"
    EndDateTime:
      description: "Date and time at which the statement period ends.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"
      type: "string"
      format: "date-time"
      example: "2023-03-04T13:21:59+00:00"
    ISODateTime:
      description: "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"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:21:59+00:00"
    Identification_0:
      description: "Identification assigned by an institution to identify an account. This identification is known by the account owner."
      type: "string"
      minLength: 1
      maxLength: 256
      example: "Sample Identyfication0"
    Identification_1:
      description: "Unique and unambiguous identification of the servicing institution."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "example for Identification_1"
    Identification_2:
      description: "Unique and unambiguous identification of a financial institution or a branch of a financial institution."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "Identification_2"
    Links:
      type: "object"
      description: "Links relevant to the payload"
      properties:
        Self:
          description: "A link to the same resource used for the current request."
          type: "string"
          format: "uri"
        First:
          type: "string"
          format: "uri"
        Prev:
          type: "string"
          format: "uri"
        Next:
          type: "string"
          format: "uri"
        Last:
          type: "string"
          format: "uri"
      additionalProperties: false
      required:
        - "Self"
    MaturityDate:
      description: "Maturity date of the account.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"
      type: "string"
      format: "date-time"
      example: "2023-01-04T13:21:59+00:00"
    Meta:
      title: "MetaData"
      type: "object"
      description: "Meta Data relevant to the payload"
      properties:
        TotalPages:
          type: "integer"
        FirstAvailableDateTime:
          $ref: "#/components/schemas/ISODateTime"
        LastAvailableDateTime:
          $ref: "#/components/schemas/ISODateTime"
      additionalProperties: false
    Name_0:
      description: "The account name is the name or names of the account owner(s) represented at an account level, as displayed by the ASPSP's online channels.\nNote, the account name is not the product name or the nickname of the account."
      type: "string"
      minLength: 1
      maxLength: 350
      example: "ABC"
    Name_1:
      description: "Name by which an agent is known and which is usually used to identify that agent."
      type: "string"
      minLength: 1
      maxLength: 140
      example: "ABC"
    Nickname:
      description: "The nickname of the account, assigned by the account owner in order to provide an additional means of identification of the account."
      type: "string"
      minLength: 1
      maxLength: 70
      example: "CAB ALL CARE"
    OBAccount6:
      type: "object"
      description: "Unambiguous identification of the account to which credit and debit entries are made. The following fields are optional only for accounts that are switched:\n\n  * Data.Currency  \n  * Data.AccountType  \n  * Data.AccountSubType\n\nFor all other accounts, the fields must be populated by the ASPSP."
      required:
        - "AccountId"
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        Status:
          $ref: "#/components/schemas/OBAccountStatus1Code"
        StatusUpdateDateTime:
          $ref: "#/components/schemas/StatusUpdateDateTime"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_0"
        AccountType:
          $ref: "#/components/schemas/OBExternalAccountType1Code"
        AccountSubType:
          $ref: "#/components/schemas/OBExternalAccountSubType1Code"
        Description:
          $ref: "#/components/schemas/Description_0"
        Nickname:
          $ref: "#/components/schemas/Nickname"
        OpeningDate:
          $ref: "#/components/schemas/OpeningDate"
        MaturityDate:
          $ref: "#/components/schemas/MaturityDate"
        SwitchStatus:
          $ref: "#/components/schemas/OBExternalSwitchStatusCode"
        Account:
          type: "array"
          items:
            type: "object"
            description: "Provides the details to identify an account."
            required:
              - "SchemeName"
              - "Identification"
            properties:
              SchemeName:
                $ref: "#/components/schemas/OBExternalAccountIdentification4Code"
              Identification:
                $ref: "#/components/schemas/Identification_0"
              Name:
                $ref: "#/components/schemas/Name_0"
        Servicer:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification5_0"
      additionalProperties: false
    OBAccountStatus1Code:
      description: "Specifies the status of account resource in code form."
      type: "string"
      enum:
        - "Deleted"
        - "Disabled"
        - "Enabled"
        - "Pending"
        - "ProForma"
      example: "Enabled"
    OBActiveCurrencyAndAmount_SimpleType:
      description: "A number of monetary units specified in an active currency where the unit of currency is explicit and compliant with ISO 4217."
      type: "string"
      pattern: "^\\d{1,13}$|^\\d{1,13}\\.\\d{1,5}$"
      example: "1000"
    OBActiveOrHistoricCurrencyAndAmount_10:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Transaction charges to be paid by the charge bearer."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_5:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Amount of money associated with the statement benefit type."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_6:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Amount of money associated with the statement fee type."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_7:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Amount of money associated with the statement interest amount type."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_8:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Amount of money associated with the amount type."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBActiveOrHistoricCurrencyAndAmount_9:
      type: "object"
      required:
        - "Amount"
        - "Currency"
      description: "Amount of money in the cash transaction entry."
      properties:
        Amount:
          $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
        Currency:
          $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBAddressTypeCode:
      description: "Identifies the nature of the postal address."
      type: "string"
      enum:
        - "Business"
        - "Correspondence"
        - "DeliveryTo"
        - "MailTo"
        - "POBox"
        - "Postal"
        - "Residential"
        - "Statement"
      example: "Business"
    OBBalanceType1Code:
      description: "Balance type, in a coded form."
      type: "string"
      enum:
        - "ClosingAvailable"
        - "ClosingBooked"
        - "ClosingCleared"
        - "Expected"
        - "ForwardAvailable"
        - "Information"
        - "InterimAvailable"
        - "InterimBooked"
        - "InterimCleared"
        - "OpeningAvailable"
        - "OpeningBooked"
        - "OpeningCleared"
        - "PreviouslyClosedBooked"
    OBBankTransactionCodeStructure1:
      type: "object"
      required:
        - "Code"
        - "SubCode"
      description: "Set of elements used to fully identify the type of underlying transaction resulting in an entry."
      properties:
        Code:
          description: "Specifies the family within a domain."
          type: "string"
        SubCode:
          description: "Specifies the sub-product family within a specific family."
          type: "string"
    OBBranchAndFinancialInstitutionIdentification5_0:
      type: "object"
      required:
        - "SchemeName"
        - "Identification"
      description: "Party that manages the account on behalf of the account owner, that is manages the registration and booking of entries on the account, calculates balances on the account and provides information about the account."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBExternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_1"
    OBBranchAndFinancialInstitutionIdentification6_1:
      type: "object"
      description: "Financial institution servicing an account for the creditor."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBExternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_2"
        Name:
          $ref: "#/components/schemas/Name_1"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress6"
    OBBranchAndFinancialInstitutionIdentification6_2:
      type: "object"
      description: "Financial institution servicing an account for the debtor."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBExternalFinancialInstitutionIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_2"
        Name:
          $ref: "#/components/schemas/Name_1"
        PostalAddress:
          $ref: "#/components/schemas/OBPostalAddress6"
    OBCashAccount6_0:
      type: "object"
      description: "Unambiguous identification of the account of the creditor, in the case of a debit transaction."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBExternalAccountIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_0"
        Name:
          $ref: "#/components/schemas/Name_0"
        SecondaryIdentification:
          $ref: "#/components/schemas/SecondaryIdentification"
    OBCashAccount6_1:
      type: "object"
      description: "Unambiguous identification of the account of the debtor, in the case of a crebit transaction."
      properties:
        SchemeName:
          $ref: "#/components/schemas/OBExternalAccountIdentification4Code"
        Identification:
          $ref: "#/components/schemas/Identification_0"
        Name:
          $ref: "#/components/schemas/Name_0"
        SecondaryIdentification:
          $ref: "#/components/schemas/SecondaryIdentification"
    OBCreditDebitCode_0:
      description: "Indicates whether the amount is a credit or a debit. \nUsage: A zero amount is considered to be a credit amount."
      type: "string"
      enum:
        - "Credit"
        - "Debit"
      example: "Credit"
    OBCreditDebitCode_1:
      description: "Indicates whether the transaction is a credit or a debit entry."
      type: "string"
      enum:
        - "Credit"
        - "Debit"
      example: "Debit"
    OBCreditDebitCode_2:
      description: "Indicates whether the balance is a credit or a debit balance. \nUsage: A zero balance is considered to be a credit balance."
      type: "string"
      enum:
        - "Credit"
        - "Debit"
      example: "Credit"
    OBCurrencyExchange5:
      type: "object"
      required:
        - "SourceCurrency"
        - "ExchangeRate"
      description: "Set of elements used to provide details on the currency exchange."
      properties:
        SourceCurrency:
          description: "Currency from which an amount is to be converted in a currency conversion."
          type: "string"
          pattern: "^[A-Z]{3,3}$"
          example: "EUR"
        TargetCurrency:
          description: "Currency into which an amount is to be converted in a currency conversion."
          type: "string"
          pattern: "^[A-Z]{3,3}$"
          example: "USD"
        UnitCurrency:
          description: "Currency in which the rate of exchange is expressed in a currency exchange. In the example 1GBP = xxxCUR, the unit currency is GBP."
          type: "string"
          pattern: "^[A-Z]{3,3}$"
          example: "USD"
        ExchangeRate:
          description: "Factor used to convert an amount from one currency into another. This reflects the price at which one currency was bought with another currency.\nUsage: ExchangeRate expresses the ratio between UnitCurrency and QuotedCurrency (ExchangeRate = UnitCurrency/QuotedCurrency)."
          type: "number"
          example: "1"
        ContractIdentification:
          description: "Unique identification to unambiguously identify the foreign exchange contract."
          type: "string"
          minLength: 1
          maxLength: 35
          example: "7774890001212"
        QuotationDate:
          description: "Date and time at which an exchange rate is quoted.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"
          type: "string"
          format: "date-time"
        InstructedAmount:
          type: "object"
          required:
            - "Amount"
            - "Currency"
          description: "Amount of money to be moved between the debtor and creditor, before deduction of charges, expressed in the currency as ordered by the initiating party."
          properties:
            Amount:
              $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
            Currency:
              $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
    OBEntryStatus1Code:
      description: "Status of a transaction entry on the books of the account servicer."
      type: "string"
      enum:
        - "Booked"
        - "Pending"
        - "Rejected"
      example: "Booked"
    OBTransactionMutability1Code:
      description: "Specifies the Mutability of the Transaction record."
      type: "string"
      enum:
        - "Mutable"
        - "Immutable"
      example: "Mutable"
    OBError1:
      type: "object"
      properties:
        ErrorCode:
          description: "Low level textual error code, e.g., UK.OBIE.Field.Missing"
          type: "string"
          enum:
            - "UK.OBIE.Field.Expected"
            - "UK.OBIE.Field.Invalid"
            - "UK.OBIE.Field.InvalidDate"
            - "UK.OBIE.Field.Missing"
            - "UK.OBIE.Field.Unexpected"
            - "UK.OBIE.Header.Invalid"
            - "UK.OBIE.Header.Missing"
            - "UK.OBIE.Reauthenticate"
            - "UK.OBIE.Resource.ConsentMismatch"
            - "UK.OBIE.Resource.InvalidConsentStatus"
            - "UK.OBIE.Resource.InvalidFormat"
            - "UK.OBIE.Resource.NotFound"
            - "UK.OBIE.Rules.AfterCutOffDateTime"
            - "UK.OBIE.Rules.DuplicateReference"
            - "UK.OBIE.Signature.Invalid"
            - "UK.OBIE.Signature.InvalidClaim"
            - "UK.OBIE.Signature.Malformed"
            - "UK.OBIE.Signature.Missing"
            - "UK.OBIE.Signature.MissingClaim"
            - "UK.OBIE.Signature.Unexpected"
            - "UK.OBIE.UnexpectedError"
            - "UK.OBIE.Unsupported.AccountIdentifier"
            - "UK.OBIE.Unsupported.AccountSecondaryIdentifier"
            - "UK.OBIE.Unsupported.Currency"
            - "UK.OBIE.Unsupported.Frequency"
            - "UK.OBIE.Unsupported.LocalInstrument"
            - "UK.OBIE.Unsupported.Scheme"
        Message:
          description: "A description of the error that occurred. e.g., 'A mandatory field isn't supplied' or 'RequestedExecutionDateTime must be in future'\nOBIE doesn't standardise this field"
          type: "string"
          minLength: 1
          maxLength: 500
          example: "This action is not allowed on the account type in the request"
        Path:
          description: "Recommended but optional reference to the JSON Path of the field with error, e.g., Data.Initiation.InstructedAmount.Currency"
          type: "string"
          minLength: 1
          maxLength: 500
        Url:
          description: "URL to help remediate the problem, or provide more information, or to API Reference, or help etc"
          type: "string"
      required:
        - "ErrorCode"
        - "Message"
      additionalProperties: false
      minProperties: 1
    OBErrorResponse1:
      description: "An array of detail error codes, and messages, and URLs to documentation to help remediation."
      type: "object"
      properties:
        Code:
          description: "High level textual error code, to help categorize the errors."
          type: "string"
          minLength: 1
          maxLength: 40
          example: "ABC"
        Id:
          description: "A unique reference for the error instance, for audit purposes, in case of unknown/unclassified errors."
          type: "string"
          minLength: 1
          maxLength: 40
          example: "1ec1bb5f-0dbd-46b9-a9eb-fa49a4e38315"
        Message:
          description: "Brief Error message, e.g., 'There is something wrong with the request parameters provided'"
          type: "string"
          minLength: 1
          maxLength: 500
          example: "test error message"
        Errors:
          items:
            $ref: "#/components/schemas/OBError1"
          type: "array"
          minItems: 1
      required:
        - "Code"
        - "Message"
        - "Errors"
      additionalProperties: false
    OBExternalAccountIdentification4Code:
      description: "Name of the identification scheme, in a coded form as published in an external list."
      type: "string"
      enum:
        - "UK.OBIE.BBAN"
        - "UK.OBIE.IBAN"
        - "UK.OBIE.PAN"
        - "UK.OBIE.Paym"
        - "UK.OBIE.SortCodeAccountNumber"
      example: "UK.OBIE.BBAN"
    OBExternalAccountSubType1Code:
      description: "Specifies the sub type of account (product family group)."
      type: "string"
      enum:
        - "ChargeCard"
        - "CreditCard"
        - "CurrentAccount"
        - "EMoney"
        - "Loan"
        - "Mortgage"
        - "PrePaidCard"
        - "Savings"
      example: "ChargeCard"
    OBExternalAccountType1Code:
      description: "Specifies the type of account (personal or business)."
      type: "string"
      enum:
        - "Business"
        - "Personal"
      example: "Personal"
    OBExternalFinancialInstitutionIdentification4Code:
      description: "Name of the identification scheme, in a coded form as published in an external list."
      type: "string"
      example: "UK.OBIE.BICFI"
      enum:
        - "UK.OBIE.BICFI"
    OBExternalSwitchStatusCode:
      description: "Specifies the switch status for the account, in a coded form."
      type: "string"
      example: "UK.CASS.NotSwitched"
      enum:
        - "UK.CASS.NotSwitched"
        - "UK.CASS.SwitchCompleted"
    OBExternalStatementAmountType1Code:
      description: "Amount type, in a coded form."
      type: "string"
      example: "UK.OBIE.ArrearsClosingBalance"
      enum:
        - "UK.OBIE.ArrearsClosingBalance"
        - "UK.OBIE.AvailableBalance"
        - "UK.OBIE.AverageBalanceWhenInCredit"
        - "UK.OBIE.AverageBalanceWhenInDebit"
        - "UK.OBIE.AverageDailyBalance"
        - "UK.OBIE.BalanceTransferClosingBalance"
        - "UK.OBIE.CashClosingBalance"
        - "UK.OBIE.ClosingBalance"
        - "UK.OBIE.CreditLimit"
        - "UK.OBIE.CurrentPayment"
        - "UK.OBIE.DirectDebitPaymentDue"
        - "UK.OBIE.FSCSInsurance"
        - "UK.OBIE.MinimumPaymentDue"
        - "UK.OBIE.PendingTransactionsBalance"
        - "UK.OBIE.PreviousClosingBalance"
        - "UK.OBIE.PreviousPayment"
        - "UK.OBIE.PurchaseClosingBalance"
        - "UK.OBIE.StartingBalance"
        - "UK.OBIE.TotalAdjustments"
        - "UK.OBIE.TotalCashAdvances"
        - "UK.OBIE.TotalCharges"
        - "UK.OBIE.TotalCredits"
        - "UK.OBIE.TotalDebits"
        - "UK.OBIE.TotalPurchases"
    OBExternalStatementBenefitType1Code:
      description: "Benefit type, in a coded form."
      type: "string"
      example: "UK.OBIE.Insurance"
      enum:
        - "UK.OBIE.Cashback"
        - "UK.OBIE.Insurance"
        - "UK.OBIE.TravelDiscount"
        - "UK.OBIE.TravelInsurance"
    OBExternalStatementDateTimeType1Code:
      description: "Date time type, in a coded form."
      type: "string"
      example: "UK.OBIE.LastPayment"
      enum:
        - "UK.OBIE.BalanceTransferPromoEnd"
        - "UK.OBIE.DirectDebitDue"
        - "UK.OBIE.LastPayment"
        - "UK.OBIE.LastStatement"
        - "UK.OBIE.NextStatement"
        - "UK.OBIE.PaymentDue"
        - "UK.OBIE.PurchasePromoEnd"
        - "UK.OBIE.StatementAvailable"
    OBExternalStatementFeeFrequency1Code:
      description: "How frequently the fee is applied to the Account."
      type: "string"
      example: "UK.OBIE.Weekly"
      enum:
        - "UK.OBIE.ChargingPeriod"
        - "UK.OBIE.PerTransactionAmount"
        - "UK.OBIE.PerTransactionPercentage"
        - "UK.OBIE.Quarterly"
        - "UK.OBIE.StatementMonthly"
        - "UK.OBIE.Weekly"
    OBExternalStatementFeeRateType1Code:
      description: "Description that may be available for the statement fee rate type."
      type: "string"
      example: "UK.OBIE.AER"
      enum:
        - "UK.OBIE.AER"
        - "UK.OBIE.EAR"
        - "UK.OBIE.FixedRate"
    OBExternalStatementFeeType1Code:
      description: "Fee type, in a coded form."
      type: "string"
      example: "UK.OBIE.Gambling"
      enum:
        - "UK.OBIE.Annual"
        - "UK.OBIE.BalanceTransfer"
        - "UK.OBIE.CashAdvance"
        - "UK.OBIE.CashTransaction"
        - "UK.OBIE.ForeignCashTransaction"
        - "UK.OBIE.ForeignTransaction"
        - "UK.OBIE.Gambling"
        - "UK.OBIE.LatePayment"
        - "UK.OBIE.MoneyTransfer"
        - "UK.OBIE.Monthly"
        - "UK.OBIE.Overlimit"
        - "UK.OBIE.PostalOrder"
        - "UK.OBIE.PrizeEntry"
        - "UK.OBIE.StatementCopy"
        - "UK.OBIE.Total"
    OBExternalStatementInterestFrequency1Code:
      description: "Specifies the statement fee type requested"
      type: "string"
      example: "UK.OBIE.HalfYearly"
      enum:
        - "UK.OBIE.Daily"
        - "UK.OBIE.HalfYearly"
        - "UK.OBIE.Monthly"
        - "UK.OBIE.PerStatementDate"
        - "UK.OBIE.Quarterly"
        - "UK.OBIE.Weekly"
        - "UK.OBIE.Yearly"
    OBExternalStatementInterestRateType1Code:
      description: "Description that may be available for the statement Interest rate type."
      type: "string"
      example: "UK.OBIE.Net"
      enum:
        - "UK.OBIE.BOEBaseRate"
        - "UK.OBIE.FixedRate"
        - "UK.OBIE.Gross"
        - "UK.OBIE.LoanProviderBaseRate"
        - "UK.OBIE.Net"
    OBExternalStatementInterestType1Code:
      description: "Interest amount type, in a coded form."
      type: "string"
      example: "UK.OBIE.Cash"
      enum:
        - "UK.OBIE.BalanceTransfer"
        - "UK.OBIE.Cash"
        - "UK.OBIE.EstimatedNext"
        - "UK.OBIE.Purchase"
        - "UK.OBIE.Total"
    OBExternalStatementRateType1Code:
      description: "Statement rate type, in a coded form."
      type: "string"
      example: "UK.OBIE.AnnualCash"
      enum:
        - "UK.OBIE.AnnualBalanceTransfer"
        - "UK.OBIE.AnnualBalanceTransferAfterPromo"
        - "UK.OBIE.AnnualBalanceTransferPromo"
        - "UK.OBIE.AnnualCash"
        - "UK.OBIE.AnnualPurchase"
        - "UK.OBIE.AnnualPurchaseAfterPromo"
        - "UK.OBIE.AnnualPurchasePromo"
        - "UK.OBIE.MonthlyBalanceTransfer"
        - "UK.OBIE.MonthlyCash"
        - "UK.OBIE.MonthlyPurchase"
    OBExternalStatementType1Code:
      description: "Statement type, in a coded form."
      type: "string"
      example: "Interim"
      enum:
        - "AccountClosure"
        - "AccountOpening"
        - "Annual"
        - "Interim"
        - "RegularPeriodic"
    OBExternalStatementValueType1Code:
      description: "Statement value type, in a coded form."
      type: "string"
      example: "UK.OBIE.Debits"
      enum:
        - "UK.OBIE.AirMilesPoints"
        - "UK.OBIE.AirMilesPointsBalance"
        - "UK.OBIE.Credits"
        - "UK.OBIE.Debits"
        - "UK.OBIE.HotelPoints"
        - "UK.OBIE.HotelPointsBalance"
        - "UK.OBIE.RetailShoppingPoints"
        - "UK.OBIE.RetailShoppingPointsBalance"
    OBMerchantDetails1:
      type: "object"
      description: "Details of the merchant involved in the transaction."
      properties:
        MerchantName:
          description: "Name by which the merchant is known."
          type: "string"
          minLength: 1
          maxLength: 350
          example: "TDG00231"
        MerchantCategoryCode:
          description: "Category code conform to ISO 18245, related to the type of services or goods the merchant provides for the transaction."
          type: "string"
          minLength: 3
          maxLength: 4
          example: "18245"
    OBPostalAddress6:
      type: "object"
      description: "Information that locates and identifies a specific address, as defined by postal services."
      properties:
        AddressType:
          $ref: "#/components/schemas/OBAddressTypeCode"
        Department:
          description: "Identification of a division of a large organisation or building."
          type: "string"
          minLength: 1
          maxLength: 70
          example: "test value"
        SubDepartment:
          description: "Identification of a sub-division of a large organisation or building."
          type: "string"
          minLength: 1
          maxLength: 70
        StreetName:
          $ref: "#/components/schemas/StreetName"
        BuildingNumber:
          $ref: "#/components/schemas/BuildingNumber"
        PostCode:
          $ref: "#/components/schemas/PostCode"
        TownName:
          $ref: "#/components/schemas/TownName"
        CountrySubDivision:
          description: "Identifies a subdivision of a country such as state, region, county."
          type: "string"
          minLength: 1
          maxLength: 35
          example: "test value"
        Country:
          description: "Nation with its own government."
          type: "string"
          pattern: "^[A-Z]{2,2}$"
          example: "test value"
        AddressLine:
          type: "array"
          items:
            description: "Information that locates and identifies a specific address, as defined by postal services, presented in free format text."
            type: "string"
            minLength: 1
            maxLength: 70
          minItems: 0
          maxItems: 7
    OBRate1_0:
      description: "Rate charged for Statement Fee (where it is charged in terms of a rate rather than an amount)"
      type: "number"
      example: "12"
    OBRate1_1:
      description: "field representing a percentage (e.g. 0.05 represents 5% and 0.9525 represents 95.25%). Note the number of decimal places may vary."
      type: "number"
      example: "12"
    OBReadAccount6:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          properties:
            Account:
              type: "array"
              items:
                $ref: "#/components/schemas/OBAccount6"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadBalance1:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          type: "object"
          required:
            - "Balance"
          properties:
            Balance:
              type: "array"
              items:
                type: "object"
                description: "Set of elements used to define the balance details."
                required:
                  - "AccountId"
                  - "CreditDebitIndicator"
                  - "Type"
                  - "DateTime"
                  - "Amount"
                properties:
                  AccountId:
                    $ref: "#/components/schemas/AccountId"
                  CreditDebitIndicator:
                    $ref: "#/components/schemas/OBCreditDebitCode_2"
                  Type:
                    $ref: "#/components/schemas/OBBalanceType1Code"
                  DateTime:
                    description: "Indicates the date (and time) of the balance.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"
                    type: "string"
                    format: "date-time"
                    example: "test value"
                  Amount:
                    type: "object"
                    required:
                      - "Amount"
                      - "Currency"
                    description: "Amount of money of the cash balance."
                    properties:
                      Amount:
                        $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
                      Currency:
                        $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
                      SubType:
                        description: "The amount in the domestic or base accounting currency. Default is Base Currency (BCUR) if not specified"
                        type: "string"
                        enum:
                          - "BaseCurrency"
                          - "LocalCurrency"
                        example: "BaseCurrency"
                  CreditLine:
                    type: "array"
                    items:
                      type: "object"
                      description: "Set of elements used to provide details on the credit line."
                      required:
                        - "Included"
                      properties:
                        Included:
                          description: "Indicates whether or not the credit line is included in the balance of the account.\nUsage: If not present, credit line is not included in the balance amount of the account."
                          type: "boolean"
                          example: "True"
                        Type:
                          description: "Limit type, in a coded form."
                          type: "string"
                          example: "Credit"
                          enum:
                            - "Available"
                            - "Credit"
                            - "Emergency"
                            - "Pre-Agreed"
                            - "Temporary"
                        Amount:
                          type: "object"
                          required:
                            - "Amount"
                            - "Currency"
                          description: "Amount of money of the credit line."
                          properties:
                            Amount:
                              $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
                            Currency:
                              $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
              minItems: 1
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadConsent1:
      type: "object"
      required:
        - "Data"
        - "Risk"
      properties:
        Data:
          type: "object"
          required:
            - "Permissions"
          properties:
            Permissions:
              type: "array"
              items:
                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."
                type: "string"
                enum:
                  - "ReadAccountsBasic"
                  - "ReadAccountsDetail"
                  - "ReadBalances"
                  - "ReadOffers"
                  - "ReadPAN"
                  - "ReadParty"
                  - "ReadProducts"
                  - "ReadStatementsBasic"
                  - "ReadStatementsDetail"
                  - "ReadTransactionsBasic"
                  - "ReadTransactionsCredits"
                  - "ReadTransactionsDebits"
                  - "ReadTransactionsDetail"
              minItems: 1
            ExpirationDateTime:
              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"
              type: "string"
              format: "date-time"
              example: "2022-11-15 09:14:41"
            TransactionFromDateTime:
              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"
              type: "string"
              format: "2022-11-15 09:14:45"
              example: "test value"
            TransactionToDateTime:
              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"
              type: "string"
              format: "date-time"
              example: "2022-11-15 09:14:49"
        Risk:
          $ref: "#/components/schemas/OBRisk2"
      additionalProperties: false
    OBReadConsentResponse1:
      type: "object"
      required:
        - "Data"
        - "Risk"
      properties:
        Data:
          type: "object"
          required:
            - "ConsentId"
            - "CreationDateTime"
            - "Status"
            - "StatusUpdateDateTime"
            - "Permissions"
          properties:
            ConsentId:
              description: "Unique identification as assigned to identify the account access consent resource."
              type: "string"
              minLength: 1
              maxLength: 128
              example: "699588e-b5c9-48d5-b0fc-00d52b229f7d"
            CreationDateTime:
              $ref: "#/components/schemas/CreationDateTime"
            Status:
              description: "Specifies the status of consent resource in code form."
              type: "string"
              example: "Authorised"
              enum:
                - "Authorised"
                - "AwaitingAuthorisation"
                - "Rejected"
                - "Revoked"
            StatusUpdateDateTime:
              $ref: "#/components/schemas/StatusUpdateDateTime"
            Permissions:
              type: "array"
              items:
                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."
                type: "string"
                enum:
                  - "ReadAccountsBasic"
                  - "ReadAccountsDetail"
                  - "ReadBalances"
                  - "ReadOffers"
                  - "ReadPAN"
                  - "ReadParty"
                  - "ReadProducts"
                  - "ReadStatementsBasic"
                  - "ReadStatementsDetail"
                  - "ReadTransactionsBasic"
                  - "ReadTransactionsCredits"
                  - "ReadTransactionsDebits"
                  - "ReadTransactionsDetail"
              minItems: 1
            ExpirationDateTime:
              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"
              type: "string"
              format: "date-time"
              example: "2022-11-15 09:14:45"
            TransactionFromDateTime:
              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"
              type: "string"
              format: "date-time"
              example: "2022-11-15 09:14:45"
            TransactionToDateTime:
              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"
              type: "string"
              format: "date-time"
              example: "2022-11-15 09:14:45"
        Risk:
          $ref: "#/components/schemas/OBRisk2"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadDataStatement2:
      type: "object"
      properties:
        Statement:
          type: "array"
          items:
            $ref: "#/components/schemas/OBStatement2"
      additionalProperties: false
    OBReadDataTransaction6:
      type: "object"
      properties:
        Transaction:
          type: "array"
          items:
            $ref: "#/components/schemas/OBTransaction6"
      additionalProperties: false
    OBReadStatement2:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          $ref: "#/components/schemas/OBReadDataStatement2"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBReadTransaction6:
      type: "object"
      required:
        - "Data"
      properties:
        Data:
          $ref: "#/components/schemas/OBReadDataTransaction6"
        Links:
          $ref: "#/components/schemas/Links"
        Meta:
          $ref: "#/components/schemas/Meta"
      additionalProperties: false
    OBRisk2:
      description: "The Risk section is sent by the initiating party to the ASPSP. It is used to specify additional details for risk scoring for Account Info."
      type: "object"
      properties: { }
      additionalProperties: false
    OBStatement2:
      type: "object"
      description: "Provides further details on a statement resource."
      required:
        - "AccountId"
        - "StatementId"
        - "StatementReference"
        - "Type"
        - "StartDateTime"
        - "EndDateTime"
        - "CreationDateTime"
        - "StatementDescription"
        - "StatementFee"
        - "StatementInterest"
        - "StatementAmount"
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        StatementId:
          $ref: "#/components/schemas/StatementId"
        StatementReference:
          $ref: "#/components/schemas/StatementReference"
        Type:
          $ref: "#/components/schemas/OBExternalStatementType1Code"
        StartDateTime:
          $ref: "#/components/schemas/StartDateTime"
        EndDateTime:
          $ref: "#/components/schemas/EndDateTime"
        CreationDateTime:
          $ref: "#/components/schemas/CreationDateTime"
        StatementDescription:
          type: "array"
          items:
            description: "Other descriptions that may be available for the statement resource."
            type: "string"
            minLength: 1
            maxLength: 500
        StatementBenefit:
          type: "array"
          items:
            type: "object"
            description: "Set of elements used to provide details of a benefit or reward amount for the statement resource."
            required:
              - "Type"
              - "Amount"
            properties:
              Type:
                $ref: "#/components/schemas/OBExternalStatementBenefitType1Code"
              Amount:
                $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_5"
        StatementFee:
          type: "array"
          items:
            type: "object"
            description: "Set of elements used to provide details of a fee for the statement resource."
            required:
              - "Description"
              - "CreditDebitIndicator"
              - "Type"
              - "Rate"
              - "RateType"
              - "Frequency"
              - "Amount"
            properties:
              Description:
                $ref: "#/components/schemas/Description_1"
              CreditDebitIndicator:
                $ref: "#/components/schemas/OBCreditDebitCode_0"
              Type:
                $ref: "#/components/schemas/OBExternalStatementFeeType1Code"
              Rate:
                $ref: "#/components/schemas/OBRate1_0"
              RateType:
                $ref: "#/components/schemas/OBExternalStatementFeeRateType1Code"
              Frequency:
                $ref: "#/components/schemas/OBExternalStatementFeeFrequency1Code"
              Amount:
                $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_6"
        StatementInterest:
          type: "array"
          items:
            type: "object"
            description: "Set of elements used to provide details of a generic interest amount related to the statement resource."
            required:
              - "Description"
              - "CreditDebitIndicator"
              - "Type"
              - "Rate"
              - "RateType"
              - "Frequency"
              - "Amount"
            properties:
              Description:
                $ref: "#/components/schemas/Description_2"
              CreditDebitIndicator:
                $ref: "#/components/schemas/OBCreditDebitCode_0"
              Type:
                $ref: "#/components/schemas/OBExternalStatementInterestType1Code"
              Rate:
                $ref: "#/components/schemas/OBRate1_1"
              RateType:
                $ref: "#/components/schemas/OBExternalStatementInterestRateType1Code"
              Frequency:
                $ref: "#/components/schemas/OBExternalStatementInterestFrequency1Code"
              Amount:
                $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_7"
        StatementAmount:
          type: "array"
          items:
            type: "object"
            description: "Set of elements used to provide details of a generic amount for the statement resource."
            required:
              - "CreditDebitIndicator"
              - "Type"
              - "Amount"
            properties:
              CreditDebitIndicator:
                $ref: "#/components/schemas/OBCreditDebitCode_0"
              Type:
                $ref: "#/components/schemas/OBExternalStatementAmountType1Code"
              Amount:
                $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_8"
        StatementDateTime:
          type: "array"
          items:
            type: "object"
            description: "Set of elements used to provide details of a generic date time for the statement resource."
            required:
              - "DateTime"
              - "Type"
            properties:
              DateTime:
                $ref: "#/components/schemas/DateTime"
              Type:
                $ref: "#/components/schemas/OBExternalStatementDateTimeType1Code"
        StatementRate:
          type: "array"
          items:
            type: "object"
            description: "Set of elements used to provide details of a generic rate related to the statement resource."
            required:
              - "Rate"
              - "Type"
            properties:
              Rate:
                $ref: "#/components/schemas/Rate"
              Type:
                $ref: "#/components/schemas/OBExternalStatementRateType1Code"
        StatementValue:
          type: "array"
          items:
            type: "object"
            description: "Set of elements used to provide details of a generic number value related to the statement resource."
            required:
              - "Value"
              - "Type"
            properties:
              Value:
                $ref: "#/components/schemas/Value"
              Type:
                $ref: "#/components/schemas/OBExternalStatementValueType1Code"
      additionalProperties: false
    OBSupplementaryData1:
      type: "object"
      properties: { }
      additionalProperties: true
      description: "Additional information that can not be captured in the structured fields and/or any other specific block."
    OBTransaction6:
      type: "object"
      description: "Provides further details on an entry in the report."
      required:
        - "AccountId"
        - "CreditDebitIndicator"
        - "Status"
        - "BookingDateTime"
        - "Amount"
      properties:
        AccountId:
          $ref: "#/components/schemas/AccountId"
        TransactionId:
          $ref: "#/components/schemas/TransactionId"
        TransactionReference:
          $ref: "#/components/schemas/TransactionReference"
        StatementReference:
          type: "array"
          items:
            $ref: "#/components/schemas/StatementReference"
        CreditDebitIndicator:
          $ref: "#/components/schemas/OBCreditDebitCode_1"
        Status:
          $ref: "#/components/schemas/OBEntryStatus1Code"
        TransactionMutability:
          $ref: "#/components/schemas/OBTransactionMutability1Code"
        BookingDateTime:
          $ref: "#/components/schemas/BookingDateTime"
        ValueDateTime:
          $ref: "#/components/schemas/ValueDateTime"
        TransactionInformation:
          $ref: "#/components/schemas/TransactionInformation"
        AddressLine:
          $ref: "#/components/schemas/AddressLine"
        Amount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_9"
        ChargeAmount:
          $ref: "#/components/schemas/OBActiveOrHistoricCurrencyAndAmount_10"
        CurrencyExchange:
          $ref: "#/components/schemas/OBCurrencyExchange5"
        BankTransactionCode:
          $ref: "#/components/schemas/OBBankTransactionCodeStructure1"
        ProprietaryBankTransactionCode:
          $ref: "#/components/schemas/ProprietaryBankTransactionCodeStructure1"
        Balance:
          $ref: "#/components/schemas/OBTransactionCashBalance"
        MerchantDetails:
          $ref: "#/components/schemas/OBMerchantDetails1"
        CreditorAgent:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification6_1"
        CreditorAccount:
          $ref: "#/components/schemas/OBCashAccount6_0"
        DebtorAgent:
          $ref: "#/components/schemas/OBBranchAndFinancialInstitutionIdentification6_2"
        DebtorAccount:
          $ref: "#/components/schemas/OBCashAccount6_1"
        CardInstrument:
          $ref: "#/components/schemas/OBTransactionCardInstrument1"
        SupplementaryData:
          $ref: "#/components/schemas/OBSupplementaryData1"
      additionalProperties: false
    OBTransactionCardInstrument1:
      type: "object"
      required:
        - "CardSchemeName"
      description: "Set of elements to describe the card instrument used in the transaction."
      properties:
        CardSchemeName:
          description: "Name of the card scheme."
          type: "string"
          enum:
            - "AmericanExpress"
            - "Diners"
            - "Discover"
            - "MasterCard"
            - "VISA"
        AuthorisationType:
          description: "The card authorisation type."
          type: "string"
          enum:
            - "ConsumerDevice"
            - "Contactless"
            - "None"
            - "PIN"
        Name:
          description: "Name of the cardholder using the card instrument."
          type: "string"
          minLength: 1
          maxLength: 70
        Identification:
          description: "Identification assigned by an institution to identify the card instrument used in the transaction. This identification is known by the account owner, and may be masked."
          type: "string"
          minLength: 1
          maxLength: 34
      additionalProperties: false
    OBTransactionCashBalance:
      type: "object"
      required:
        - "CreditDebitIndicator"
        - "Type"
        - "Amount"
      description: "Set of elements used to define the balance as a numerical representation of the net increases and decreases in an account after a transaction entry is applied to the account."
      properties:
        CreditDebitIndicator:
          $ref: "#/components/schemas/OBCreditDebitCode_2"
        Type:
          $ref: "#/components/schemas/OBBalanceType1Code"
        Amount:
          type: "object"
          required:
            - "Amount"
            - "Currency"
          description: "Amount of money of the cash balance after a transaction entry is applied to the account.."
          properties:
            Amount:
              $ref: "#/components/schemas/OBActiveCurrencyAndAmount_SimpleType"
            Currency:
              $ref: "#/components/schemas/ActiveOrHistoricCurrencyCode_1"
      additionalProperties: false
    OpeningDate:
      description: "Date on which the account and related basic services are effectively operational for the account owner.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"
      type: "string"
      format: "date"
      example: "2023-01-04"
    PostCode:
      description: "Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail."
      type: "string"
      minLength: 1
      maxLength: 16
      example: "80-034"
    ProprietaryBankTransactionCodeStructure1:
      type: "object"
      required:
        - "Code"
      description: "Set of elements to fully identify a proprietary bank transaction code."
      properties:
        Code:
          description: "Proprietary bank transaction code to identify the underlying transaction."
          type: "string"
          minLength: 1
          maxLength: 35
          example: "SGDI"
        Issuer:
          description: "Identification of the issuer of the proprietary bank transaction code."
          type: "string"
          minLength: 1
          maxLength: 35
          example: "NBP"
      additionalProperties: false
    Rate:
      description: "Rate associated with the statement rate type."
      type: "string"
      pattern: "^(-?\\d{1,3}){1}(\\.\\d{1,4}){0,1}$"
      example: "0"
    SecondaryIdentification:
      description: "This is secondary identification of the account, as assigned by the account servicing institution. \nThis can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination)."
      type: "string"
      minLength: 1
      maxLength: 34
      example: "4941202460847847"
    StartDateTime:
      description: "Date and time at which the statement period starts.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"
      type: "string"
      format: "date-time"
      example: "2023-01-04T00:00:00+00:00"
    StatementId:
      description: "Unique identifier for the statement resource within an servicing institution. This identifier is both unique and immutable."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "HEWspIs8CDOwWQEF7_6iy3"
    StatementReference:
      description: "Unique reference for the statement. This reference may be optionally populated if available."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "b55de0cd-0bd4-4903-8811-84e1e980f1c0"
    StatusUpdateDateTime:
      description: "Date and time at which the resource status was updated.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"
      type: "string"
      format: "date-time"
      example: "2023-01-04T00:00:00+00:00"
    StreetName:
      description: "Name of a street or thoroughfare."
      type: "string"
      minLength: 1
      maxLength: 70
      example: "example StreetName"
    TownName:
      description: "Name of a built-up area, with defined boundaries, and a local government."
      type: "string"
      minLength: 1
      maxLength: 35
      example: "London"
    TransactionId:
      description: "Unique identifier for the transaction within an servicing institution. This identifier is both unique and immutable."
      type: "string"
      minLength: 1
      maxLength: 210
      example: "0432023004141005879040000-0326P10000000000000010000000000000010000000000OBP"
    TransactionInformation:
      description: "Further details of the transaction. \nThis is the transaction narrative, which is unstructured text."
      type: "string"
      minLength: 1
      maxLength: 500
      example: "example TransactionInformation"
    TransactionReference:
      description: "Unique reference for the transaction. This reference is optionally populated, and may as an example be the FPID in the Faster Payments context."
      type: "string"
      minLength: 1
      maxLength: 210
      example: "example TransactionReference"
    Value:
      description: "Value associated with the statement value type."
      type: "string"
      minLength: 1
      maxLength: 40
      example: "10"
    ValueDateTime:
      description: "Date and time at which assets become available to the account owner in case of a credit entry, or cease to be available to the account owner in case of a debit transaction entry.\nUsage: If transaction entry status is pending and value date is present, then the value date refers to an expected/requested value date.\nFor transaction entries subject to availability/float and for which availability information is provided, the value date must not be used. In this case the availability component identifies the number of availability days.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"
      type: "string"
      format: "date-time"