swagger: "2.0"
info:
  description: |-
    # Summary

       The Account Aggregator (AA) Interoperability APIs enable communication between unconnected FIUs and AAs, and unconnected FIPs and AAs. These APIs facilitate the flow of information between unconnected entities, with their mutually linked AAs acting as gateways. Eventually, customers would be able to use any FIU of their choice to fetch their financial information from any FIP of their choice.

    ---
  version: 1.0.0
  title: Account Aggregator Interoperability API
  contact:
    email: aa-api@rebit.org.in
  x-custom-tags:
    x-api-name: Account Aggregator (AA) Interoperability API
tags:
- name: User Discovery
  description: APIs for Customer Discovery
- name: Account Discovery
  description: API for Account Discovery
- name: Account Linking
  description: APIs for Account Linking
- name: Consent Flow
  description: APIs for Consent Management
- name: Data Flow
  description: These APIs are used by AA to facilitate flow of encrypted financial information from FIP to FIU
- name: Notifications
  description: APIs to submit notifications to AA from FIP/FIU.
- name: Monitoring
  description: APIs to check availability of AA application.
schemes:
- https
consumes:
- application/json
produces:
- application/json
security:
- client_api_key: []
- fip_api_key: []
- aa_api_key: []
- x-conn_aa_api_key: []
- x-inter_aa_api_key: []
- x-cust_aa_api_key: []
- x-orig_aa_api_key: []
paths:
  /User/discover:
    post:
      tags:
      - User Discovery
      description: |-
        The FIU uses this API to call any of its connected-AAs to identify existing user handles on a specific AA or across all AAs in the ecosystem.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        description: Information of the user for discovering existing handles at the AAs
        required: false
        schema:
          $ref: "#/definitions/CustDiscoveryRequest"
      security:
      - client_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/CustDiscoveryResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/BadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/UnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/NotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/Conflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/PreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/InternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/NotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/ServiceUnavailable"
  /iop/User/discover:
    post:
      tags:
      - User Discovery
      description: |-
        This API is called by a connected-AA to any other AA.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        description: Payload received from the original sender and forwarded to the intended recipient.
        required: false
        schema:
          $ref: "#/definitions/IOPCustDiscoveryRequest"
      security:
      - x-conn_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/CustDiscoveryResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/BadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/UnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/NotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/Conflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/PreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/InternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/NotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/ServiceUnavailable"
  /iop/Account/discover:
    post:
      tags:
      - Account Discovery
      description: |-
        This API is called by an origin-AA to an inter-AA.
        Business purpose: This API enables an AA to discover accounts belonging to a customer based on the customer identifiers. A list of masked account information and corresponding linkRefNumber for each discovered account is returned based on the identifier matching logic at FIP.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        description: Information of the user for discovering the account/s at the FIP
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPAccDiscoveryRequest"
          - $ref: "#/definitions/TargetFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPAccDiscoveryResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Account/link:
    post:
      tags:
      - Account Linking
      description: |-
        This API is called by an origin-AA to an inter-AA.
        Business purpose: This API will be used for initiating an account link request to link selected account/s with the AA customer address.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPAccLinkRequestRequest"
          - $ref: "#/definitions/TargetFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPAccLinkResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Account/link/verify:
    post:
      tags:
      - Account Linking
      description: |-
        This API is called by an origin-AA to an inter-AA.
        Business purpose: This API is used to submit the token/OTP(received from the customer) back to FIP so that account linkage can be completed. It is used only in case of token-based authentication for linking accounts.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        description: Information of the user for discovering the account/s at the FIP
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPAccLinkVerifyRequest"
          - $ref: "#/definitions/TargetFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPAccLinkVerifyResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Account/delink:
    post:
      tags:
      - Account Linking
      description: |-
        This API is called by an origin-AA to an inter-AA.
        Business purpose: This API will be used to delete a previously established account link to the user's profile. Once deleted, the financial information can not be retrieved for that account through Account Aggregator.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        description: Information of the user for discovering the account/s at the FIP
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPAccDelinkRequest"
          - $ref: "#/definitions/TargetFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPAccDeLinkResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Account/link/Notification:
    post:
      tags:
      - Notifications
      description: |-
        This API is called by an FIP to an inter-AA or by an inter-AA to an origin-AA.
        Business purpose: This API can be used by FIP to send account linking related notifications to AA in case of direct authentication method of account linking.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        type: string
        in: header
        required: true
        description: Detached JWS of the body
      - in: body
        name: body
        description: Information on the account linking status
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPLinkNotificationRequest"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - fip_api_key: []
      - x-inter_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPLinkNotificationResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Consent:
    post:
      tags:
      - Consent Flow
      description: |-
        This API is called by an FIU to a connected-AA or by a connected-AA to a customer-AA or by an origin-AA to an inter-AA.
        Business purpose: This API is intended for AA Client to request generation of digitally signed consent artefacts.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: "Detached JWS of the body, signed by connected AA. Mandatory when sent by the connected-AA."
        required: true
        type: string
      - in: body
        name: body
        required: true
        schema:
          allOf:
          - $ref: "#/definitions/IOPConsentRequest"
          - $ref: "#/definitions/TargetFIP"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - x-conn_aa_api_key: []
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConsentResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestConsent"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Consent/artefact:
    post:
      tags:
      - Consent Flow
      description: |-
        This API is called by an origin-AA to an inter-AA.
        Business purpose: This API will be used by the AA to send the consent artefact to the FIP on creation.
        The inter AA will call FIP's interoperability API POST /Consent to submit consent artefact to FIP.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: "Detached JWS of the body, signed by connected AA. Mandatory when sent by the connected-AA."
        required: true
        type: string
      - in: body
        name: body
        required: true
        schema:
          allOf:
          - $ref: "#/definitions/IOPConsentartefactRequest"
          - $ref: "#/definitions/TargetFIP"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - x-conn_aa_api_key: []
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConsentartefactResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestConsent"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Consent/handle:
    post:
      tags:
      - Consent Flow
      description: |-
        This API is called by an FIU to a connected-AA or by a connected-AA to a customer-AA.
        Business purpose: This API is intended to be used by FIU/AA Client to check the consent status and retrieve the consent ID from AA once the consent is approved by customer.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPConsentHandleRequest"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - x-conn_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConsentHandleResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestConsentStatus"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Consent/fetch:
    post:
      tags:
      - Consent Flow
      description: |-
        This API is called by an FIU to a connected-AA or by a connected-AA to a customer-AA.
        Business purpose: This API is intended for fetching the information associated with the specific consent.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: body
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPConsentFetchRequest"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - x-conn_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConsentfetchResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestConsentFetch"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/FI/request:
    post:
      tags:
      - Data Flow
      description: |-
        This API is called by an FIU to a connected-AA or by a connected-AA to a customer-AA or by an origin-AA to an inter-AA.
        Business purpose: This API is used by the FIU to request for financial information from the AA and by the AA to request for financial information from the FIP. The receiver will validate the request against the signed consent and return a sessionID which can then be used by the sender to fetch the required data.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature
        in: header
        description: Detached JWS of the body
        required: true
        type: string
      - in: body
        name: FIRequest
        description: Initialization parameters for requesting the financial information
        required: true
        schema:
          allOf:
          - $ref: "#/definitions/IOPFIRequest"
          - $ref: "#/definitions/TargetFIP"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - x-conn_aa_api_key: []
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPFIResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestFIRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "403":
          description: Forbidden
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPForbiddenFIRequest"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFoundFIRequest"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/FI/fetch:
    post:
      tags:
      - Data Flow
      description: |-
        This API is called by an FIU to a connected-AA or by a connected-AA to a customer-AA or by an origin-AA to an inter-AA.
        Business purpose: This API is used to fetch financial information from AA once FIU receives the data ready notification and from FIP once AA recieves the data ready notification.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature 
        type: string          
        in: header
        required: true
        description: Detached JWS of the body
      - in: body
        name: body
        required: false
        schema:
          allOf:
          - $ref: "#/definitions/IOPFIFetchRequest"
          - $ref: "#/definitions/TargetFIP"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - x-conn_aa_api_key: []
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPFIFetchResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestFIFetch"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "403":
          description: Forbidden
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPForbiddenFIFetch"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFoundFIFetch"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Consent/Notification:
    post:
      tags:
      - Notifications
      description: |-
        This API is called by an FIU to an connected-AA or by a connected-AA to a customer-AA or by an origin-AA to an inter-AA or by an inter-AA to an origin-AA or by a customer-AA to a connected-AA.
        Business purpose: This API can be used by AA Client, FIU and FIP to place a request for consent status update to AA in specific use cases.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature 
        type: string          
        in: header
        required: true
        description: Detached JWS of the body
      - in: body
        name: body
        required: true
        schema:
          allOf:
          - $ref: "#/definitions/IOPConsentNotificationRequest"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - $ref: "#/definitions/TargetFIU"
          - $ref: "#/definitions/TargetFIP"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - x-conn_aa_api_key: []
      - x-orig_aa_api_key: []
      - x-inter_aa_api_key: []
      - x-cust_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConsentNotificationResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestConsentNotification"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/FI/Notification:
    post:
      tags:
      - Notifications
      description: |-
        This API is called by an FIP to an inter-AA or by an inter-AA to an origin-AA or by a customer-AA to a connected-AA.
        Business purpose: This API can be used by AA Client, FIU and FIP to send notifications related to Financial Information (FI) fetch to AA.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature 
        type: string          
        in: header
        required: true
        description: Detached JWS of the body
      - in: body
        name: body
        required: true
        schema:
          allOf:
          - $ref: "#/definitions/IOPFINotificationRequest"
          - $ref: "#/definitions/TargetFIU"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
        - fip_api_key: []
        - x-inter_aa_api_key: []
        - x-cust_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPFINotificationResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequestFINotification"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "409":
          description: Conflict
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPConflict"
        "412":
          description: Precondition failed
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPPreconditionFailed"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
  /iop/Heartbeat:
    get:
      tags:
      - Monitoring
      description: |-
        This API is called by FIU to connected-AA, by connected-AA to customer-AA, by customer-AA to connected-AA, by origin-AA to inter-AA, by inter-AA to origin-AA and by FIP to inter-AA.
        Business purpose: This API can be used by FIPs and FIUs to check availability of AA applications and vice-versa.

        <br>Note: "Request Body Example Value" and "Responses Example Value" given below is for illustrative purposes only.
      parameters:
      - name: x-jws-signature 
        type: string          
        in: header
        required: true
        description: Detached JWS of the body
      - in: body
        name: body
        required: true
        schema:
          allOf:
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIU"
          - $ref: "#/definitions/TargetFIP"
          - $ref: "#/definitions/TargetAA"
          - $ref: "#/definitions/InitiatorFIP"
          - type: object
            description: |-
              Exactly one of `Target` or `Initiator` MUST be present.
              A request containing both, or neither, MUST be rejected with 400 Bad Request.
            x-oneOf-required:
            - Target
            - Initiator
      security:
      - client_api_key: []
      - fip_api_key: []
      - x-conn_aa_api_key: []
      - x-cust_aa_api_key: []
      - x-inter_aa_api_key: []
      - x-orig_aa_api_key: []
      responses:
        "200":
          description: OK
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPResponse"
        "400":
          description: Bad Request
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPBadRequest"
        "401":
          description: Unauthorized Access
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPUnauthorizedAccess"
        "404":
          description: Not Found
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotFound"
        "500":
          description: Internal Server Error
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPInternalServerError"
        "501":
          description: Not Implemented
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPNotImplemented"
        "503":
          description: Service Unavailable
          headers:
            x-jws-signature:
              type: string
              description: Detached JWS of the response body
          schema:
            $ref: "#/definitions/IOPServiceUnavailable"
securityDefinitions:
  client_api_key:
    description: client_api_key is provided to AA by the AA Client or the FIU
    type: apiKey
    name: client_api_key
    in: header
  fip_api_key:
    description: fip_api_key is provided to AA by the FIP
    type: apiKey
    name: fip_api_key
    in: header
  aa_api_key:
    description: aa_api_key is provided by the AA to the FIU and the FIP
    type: apiKey
    name: aa_api_key
    in: header
  x-conn_aa_api_key:
    description: x-conn_aa_api_key is provided by the connected-AA to the customer-AA
    type: apiKey
    name: x-conn_aa_api_key
    in: header
  x-cust_aa_api_key:
    description: x-cust_aa_api_key is provided by the customer-AA to the connected-AA
    type: apiKey
    name: x-cust_aa_api_key
    in: header
  x-orig_aa_api_key:
    description: x-orig_aa_api_key is provided by the origin-AA to the inter-AA
    type: apiKey
    name: x-orig_aa_api_key
    in: header
  x-inter_aa_api_key:
    description: x-inter_aa_api_key is provided by the inter-AA to the origin-AA
    type: apiKey
    name: x-inter_aa_api_key
    in: header
definitions:
  CorrelationId:
    type: string
    example: 550e8400-e29b-41d4-a716-446655440000
    xml:
      attribute: true
    description: "A unique correlation identifier used to provide end-to-end traceability\nof that flow.\n\nIt identifies all the API calls pertaining to each flow.\n\nA flow could be one of the following:\n- User discovery\n- Account discovery\n- Account linking\n- Consent creation and approval\n- All the APIs of Data pull\n\nThis correlation ID is generated during the first API call for that flow\nand is carried forward and reused by every entity for subsequent API calls\nof that flow. "
  KeyMaterial:
    type: object
    required:
      - cryptoAlg
      - Nonce
      - curve
      - DHPublicKey
    description: >-
      Contains the cryptographic parameters that are required to perform
      End-to-End encryption for sharing the financial information between the
      producer and the consumer in a secure manner. Please refer this link for
      more information: https://tools.ietf.org/html/rfc4492 
    properties:
      cryptoAlg:
        type: string
        xml:
          attribute: true
        example: ECDH
        description: >-
          Specifies the cryptographic standard algorithm used for
          encrypting/decrypting the financial information. Currently ECDH is a
          crypto algorithm that is supported
      curve:
        type: string
        xml:
          attribute: true
        example: Curve25519
        description: >-
          Describes a secure elliptic curve standard that is used to perform ECDH.
        enum:
          - Curve25519
          - X25519
      params:
        type: string
        xml:
          attribute: true
        description: >-
          Specifies the secure standard cryptographic primitives to perform end to end encryption. 
          Use Key-Value pair separated by a semicolon. The value given for cryptographic primitives in 
          example should be used for symmetric encryption(AES-256 bits, GCM-128 bits and No Padding) and key exchange protocol(ECDH).
        example: cipher=AES/GCM/NoPadding;KeyPairGenerator=ECDH
      DHPublicKey:
        type: object
        required:
          - expiry
          - KeyValue
        description: >-
         Contains the public information for performing the ECDH key exchange.
        properties:
          expiry:
            type: string
            format: date-time
            example: '2023-07-06T11:39:57.153Z'
            description: Specifies expiry date of the public key.
            xml:
              attribute: true
          Parameters:
            type: string
            description: >-
             Defines the public parameters used to calculate session (data
             encryption/decryption) key.
          KeyValue:
            type: string
            description: Contains the value of emphemeral public key
      Nonce:
        type: string
        description: >-
          Nonce is a random string generated every time during 
          the publishing of Ephemeral public key to ensure that 
          old communications cannot be reused in replay attacks.
          Nonce should have a fixed length. Unlike random numbers, 
          random strings do not require byte ordering. 
          Hence session keys can be generated in a platform 
          independent way. Ref: https://tools.ietf.org/html/rfc5116.
        example: 29512b70-ca84-46b5-9471-63765599cf15 
    xml:
      name: KeyMaterial
  FIStatusResponseItem:
      type: object
      required:
        - fipID
        - Accounts
      properties:
        fipID:
          type: string
          example: FIP-1
          description: FIP ID as defined in the Account Aggregator Ecosystem
        Accounts:
          type: array
          items:
            $ref: '#/definitions/AccountStatusItem'
  AccountStatusItem:
      type: object
      required:
        - linkRefNumber
        - FIStatus
        - description
      properties:
        linkRefNumber:
          type: string
          example: XXXX-XXXX-XXXX
          description: Reference number assigned by FIP as part of Account Linking Process.
        FIStatus:
          type: string
          example: READY
          description: Fetch Status of the Financial Information.
          xml:
            attribute: true
          enum:
            - READY
            - DENIED
            - PENDING
            - DELIVERED
            - TIMEOUT
        description:
          type: string
          example: "Status details description"
          description: Description associated with the current account fetch status.
  ConsentUse:
      type: object
      description: Section defining the parameters for consent tracking.
      required:
        - logUri
        - count
        - lastUseDateTime
      properties:
        logUri:
          type: string
          description: Logging; logUri can be any valid URI including an email address.
          xml:
            attribute: true
        count:
          type: integer
          example: 1
          description: Number of times the consent has been used.
          xml:
            attribute: true
        lastUseDateTime:
          type: string
          format: date-time
          example: 2023-07-06T11:39:57.153Z
          description: Datetime when Consent was last used.
          xml:
            attribute: true
  Purpose:
    description: Purpose of the consent defined in the AA Technical Specification
    type: object
    required:
      - code
    properties:
      code:
        type: string
        description: 'Purpose Code as defined in the AA Technical Specification '
        example: '101'
        xml:
          attribute: true
      refUri:
        type: string
        description: URL where the purpose is further defined
        example: 'https://api.rebit.org.in/aa/purpose/101.xml'
        xml:
          attribute: true
      text:
        type: string
        description: Textual Description
        example: Wealth management service
        xml:
          attribute: true
      Category:
        properties:
          type:
            type: string
            description: Category name of the Purpose code
            xml:
              attribute: true
  TargetAA:
    type: object
    properties:
      Target:
        type: object
        properties:
          type:
            type: string
            example: "AA"
          id:
            type: string
            example: "aa-003"
        description: The target entityid, to which the request is intended. Applicable when receiving a request to be forwarded.
    xml:
      attribute: true
  TargetFIU:
    type: object
    properties:
      Target:
        type: object
        properties:
          type:
            type: string
            example: "FIU"
          id:
            type: string
            example: "fiuid-001"
        description: The target entityid, to which the request is intended. Applicable when receiving a request to be forwarded.
    xml:
      attribute: true
  TargetFIP:
    type: object
    properties:
      Target:
        type: object
        properties:
          type:
            type: string
            example: "FIP"
          id:
            type: string
            example: "fipid-001"
        description: The target entityid, to which the request is intended. Applicable when receiving a request to be forwarded.
    xml:
      attribute: true
  InitiatorFIU:
    type: object
    properties:
      Initiator:
        type: object
        properties:
          type:
            type: string
            example: "FIU"
          id:
            type: string
            example: "fiuid-001"
        description: The initiator entityid, where the request originated. Applicable when forwarding a request to the target entity.
    xml:
      attribute: true
  InitiatorFIP:
    type: object
    properties:
      Initiator:
        type: object
        properties:
          type:
            type: string
            example: "FIP"
          id:
            type: string
            example: "fipid-001"
        description: The initiator entityid, where the request originated. Applicable when forwarding a request to the target entity.
    xml:
      attribute: true
  IopPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopAccDiscoveryPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the CustomerDiscoverIdentifier model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopAccLinkPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the AccountLinkRequest model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopAccLinkVerifyPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the AccLinkVerifyDetailsRequest model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopAccDelinkPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the AccDeLinkRequests model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the ConsentDetail model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentartefactPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the SignedEncryptedModel  model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentHandlePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the ConsentHandleAA model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentfetchPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the consentIdFetch model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopFIPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the FIRequestEncryptedData model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopFIFetchPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the FIFetchRequestEncryptedData model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopNotificationPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the AccountLinkStatusNotificationReq model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentNotificationPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the ConsentStatusNotificationRequest model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopFINotificationPayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the FinancialInformationStatusNotification model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopAccDiscoveryResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the DiscoveredAccounts model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  
  
  IopAccLinkResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the AccLinkVerifyDetailsResponse model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopAccLinkVerifyResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the TokenDetails model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopAccDelinkResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the AccDeLinkResponses model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopFIFetchResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the FinancialInformation model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the ConsentRequestResponse model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentHandleResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the ConsentHandleResponse model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopConsentFetchResonsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the ConsentArtefact model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopFIResponsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the FIResponseEncryptedData model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  IopFIFetchResponePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the FinancialInformation model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  AccountLinkNotiResponsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the NotificationResponse model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  ConsentNotiResponsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the NotificationResponse model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  FINotiResponsePayload:
    type: string
    xml:
      attribute: true
    description: |-
      End-to-end **signed-then-encrypted** business payload, readable only by the target entity. Gateways forward it unchanged.

      The originator first signs the payload (JWS, RFC 7515), then encrypts the signed JWS using the recipient's public encryption key published in the Central Registry (CR). The result is a JWE in **Compact Serialization** (RFC 7516). Hop-AAs (Connected-AA, Inter-AA) forward it unchanged and cannot read it.

      The value consists of five base64url-encoded parts separated by `.`:

      `BASE64URL(JWE_PROTECTED_HEADER).BASE64URL(ENCRYPTED_CEK).BASE64URL(IV).BASE64URL(CIPHERTEXT).BASE64URL(AUTH_TAG)`

      1. **Protected header**: JSON header identifying the algorithms and key, e.g. `{"alg":"RSA-OAEP-256","enc":"A256GCM","kid":"<recipient-key-id>","cty":"JOSE"}`
      2. **Encrypted key**: the content encryption key (CEK), encrypted with the recipient's public key.
      3. **Initialisation vector**: 96-bit (12-byte) nonce used for AES-GCM.
      4. **Ciphertext**: the signed JWS, encrypted with the CEK.
      5. **Authentication tag**: 128-bit AES-GCM authentication tag.

      For reference, the same parts in JWE JSON Serialization member names (RFC 7516 §7.2):
      ```json
            {
              "protected": "BASE64URL(JWE_PROTECTED_HEADER)",
              "encrypted_key": "BASE64URL(ENCRYPTED_CEK)",
              "iv": "BASE64URL(96BIT_NONCE)",
              "ciphertext": "BASE64URL(ENCRYPTED_SIGNED_JWS)",
              "tag": "BASE64URL(128BIT_AUTH_TAG)"
            }
      ```
      Only the Compact Serialization string is sent on the wire; the JSON form above is explanatory.
      The ciphertext contains the actual payload that needs to be encrypted. Please refer to the NotificationResponse model for more details.
    pattern: '^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$'
    example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2VydmVyLWtleS0wMSJ9.ENCRYPTED_CEK.NONCE_96BIT.CIPHERTEXT.AUTH_TAG_128BIT
  CustDiscoveryRequest:
    type: object
    required:
    - correlationId
    - customer
    - timestamp
    - txnid
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-08-18T09:30:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
        description: Unique transaction identifier used for providing an end to end traceability.
      correlationId:
        $ref: "#/definitions/CorrelationId"
      customer:
        $ref: "#/definitions/CustDiscoveryRequest_customer"
  CustDiscoveryResponse:
    type: object
    required:
    - customerDiscoveryResponse
    - status
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:30:03Z
        xml:
          attribute: true
        description: Creation timestamp of the message.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
        description: Unique transaction identifier used for providing an end to end traceability.
      correlationId:
        $ref: "#/definitions/CorrelationId"
      status:
        type: string
        example: User Found
        xml:
          attribute: true
        description: The status of the user discovery operation. Enumeration value "User Found" or "User Not Found".
        enum:
        - User Found
        - User Not Found
      customerDiscoveryResponse:
        type: array
        description: List of customer handles identified.
        items:
          $ref: "#/definitions/CustDiscoveryResponse_customerDiscoveryResponse"
  IOPCustDiscoveryRequest:
    type: object
    required:
    - correlationId
    - Initiator
    - clientSignature
    - clientRequest
    - timestamp
    - txnid
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-08-18T09:30:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
        description: Unique transaction identifier used for providing an end to end traceability.
      correlationId:
        $ref: "#/definitions/CorrelationId"
      Initiator:
        $ref: "#/definitions/InitiatorFIU"
      clientSignature:
        type: string
        example: eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoic2...
        xml:
          attribute: true
        description: |-
          Detached JWS of the payload, signed by the client entity.
      clientRequest:
        $ref: "#/definitions/CustDiscoveryRequest"
  IOPRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopPayload"
  IOPAccDiscoveryRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccDiscoveryPayload"
  IOPAccLinkRequestRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccLinkPayload"
  IOPAccLinkVerifyRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccLinkVerifyPayload"
  IOPAccDelinkRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccDelinkPayload"
  IOPConsentRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentPayload"
  IOPConsentartefactRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentartefactPayload"
  IOPConsentHandleRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentHandlePayload"
  IOPConsentFetchRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentfetchPayload"
  IOPFIFetchRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopFIFetchPayload"
  IOPFIRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - KeyMaterial
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      KeyMaterial:
        $ref: '#/definitions/KeyMaterial'
      iopPayload:
        $ref: "#/definitions/IopFIPayload"
  IOPLinkNotificationRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopNotificationPayload"
  IOPConsentNotificationRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentNotificationPayload"
 
  IOPFINotificationRequest:
    type: object
    description: |-
      Exactly one of `Initiator` or `Target` MUST be present.
  
      A request containing both, or neither, MUST be rejected with 400 Bad Request.
      <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Sender</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Receiver</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable field</th><th style="border: 1px solid #999; padding: 4px 8px; text-align: left; background-color: #f0f0f0;">Applicable values</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">FIP</td><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;orig-aa-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Inter-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Origin-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIP", "id":"&lt;fip-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Customer-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Target</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"FIU", "id":"&lt;fiu-id&gt;"}</code></td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px;">Connected-AA</td><td style="border: 1px solid #999; padding: 4px 8px;">FIU</td><td style="border: 1px solid #999; padding: 4px 8px;"><code>Initiator</code></td><td style="border: 1px solid #999; padding: 4px 8px;"><code>{"type":"AA", "id":"&lt;cust-aa-id&gt;"}</code></td></tr>
        </tbody>
      </table>

    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopFINotificationPayload"
  IOPResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopPayload"
  IOPAccDiscoveryResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccDiscoveryResonsePayload"
  IOPAccLinkResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccLinkResonsePayload"
  IOPAccLinkVerifyResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccLinkResonsePayload"
  IOPAccDeLinkResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopAccDelinkResonsePayload"
  IOPConsentResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentResonsePayload"
 
  IOPConsentartefactResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/ConsentNotiResponsePayload"
  IOPConsentHandleResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentHandleResonsePayload"
  IOPConsentfetchResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopConsentFetchResonsePayload"
  IOPFIFetchResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    - KeyMaterial
    - encryptedFI
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopFIFetchResponePayload"
      encryptedFI:
        type: string
        description: Contains the end to end encrypted financial information
        xml:
          attribute: true
      KeyMaterial:
        $ref: '#/definitions/KeyMaterial'
  IOPFIResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/IopFIResponsePayload"
  IOPLinkNotificationResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/AccountLinkNotiResponsePayload"
  IOPConsentNotificationResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/ConsentNotiResponsePayload"
  IOPFINotificationResponse:
    type: object
    required:
    - iopPayload
    - timestamp
    - txnid
    - correlationId
    - ver
    properties:
      ver:
        type: string
        example: 1.0.0
        xml:
          attribute: true
        description: API version.
      timestamp:
        type: string
        format: date-time
        example: 2026-10-07T07:35:00Z
        xml:
          attribute: true
        description: Request creation timestamp.
      txnid:
        type: string
        example: 4a4adbbe-29ae-11e8-a8d7-0289437bf331
        xml:
          attribute: true
      correlationId:
        $ref: "#/definitions/CorrelationId"
      iopPayload:
        $ref: "#/definitions/FINotiResponsePayload"
  ErrorResponse:
    type: object
    required:
    - errorCode
    - errorMsg
    - timestamp
    - correlationId
    - txnid
    - ver
    properties:
      ver:
        type: string
        example: 2.0.0
        xml:
          attribute: true
        description: API version.
      txnid:
        type: string
        example: 0b811819-9044-4856-b0ee-8c88035f8858
        xml:
          attribute: true
        description: Transaction id of the request. Must be same as the value sent in the request
      timestamp:
        type: string
        format: date-time
        example: 2023-06-26T11:33:34.509Z
        xml:
          attribute: true
        description: Response timestamp
      correlationId:
        $ref: "#/definitions/CorrelationId"
      errorCode:
        type: string
        xml:
          attribute: true
        description: Error code indicating the problem with the request. Set to IopUpstreamError when forwarding an error in the iopError field.
      errorMsg:
        type: string
        example: Error code specific error message
        description: Error message with additional details. Ensure no sensitive information is included in the error message.
    description: Generic Error Response. Specific Error Responses extend from this.
  IOPErrorResponse:
    type: object
    properties:
      iopError:
        $ref: "#/definitions/IopPayload"
    description: Generic Error Response. Specific Error Responses extend from this.
  BadRequest:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        description: Error code pertaining to the invalid request. Set to IopUpstreamError when forwarding an error in the iopError field.
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: Response to bad request.
  NotFound:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        description: Indicates that the resource specified in the request was not found. Set to IopUpstreamError when forwarding an error in the iopError field.
        enum:
        - NoSuchResource
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: Requested resource was not found.
  Conflict:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        description: IdempotencyError when UUID/Id is not unique. Set to IopUpstreamError when forwarding an error in the iopError field.
        enum:
        - IdempotencyError
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: IdempotencyError when UUID/Id is not unique
  PreconditionFailed:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - PreconditionFailed
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: At least one of the preconditions you specified did not hold. Set to IopUpstreamError when forwarding an error in the iopError field.
  InternalServerError:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InternalError
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: Encountered an internal error. Please try again. Set to IopUpstreamError when forwarding an error in the iopError field.
  NotImplemented:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - NotImplemented
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: Trying to access an unimplemented feature/API. Required when we provide backward compatiable API. Set to IopUpstreamError when forwarding an error in the iopError field.
  ServiceUnavailable:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - ServiceUnavailable
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: Service is unavailable. Set to IopUpstreamError when forwarding an error in the iopError field.
  UnauthorizedAccess:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - Unauthorized
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - {}
    description: Unauthorized Access
  IOPBadRequest:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        description: Error code pertaining to the invalid request. Set to IopUpstreamError when forwarding an error in the iopError field.
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: Response to bad request.
  IOPNotFound:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        description: Indicates that the resource specified in the request was not found. Set to IopUpstreamError when forwarding an error in the iopError field.
        enum:
        - NoSuchResource
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: Requested resource was not found.
  IOPConflict:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        description: IdempotencyError when UUID/Id is not unique. Set to IopUpstreamError when forwarding an error in the iopError field.
        enum:
        - IdempotencyError
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: IdempotencyError when UUID/Id is not unique
  IOPPreconditionFailed:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - PreconditionFailed
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: At least one of the preconditions you specified did not hold. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPInternalServerError:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InternalError
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: Encountered an internal error. Please try again. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPNotImplemented:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - NotImplemented
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: Trying to access an unimplemented feature/API. Required when we provide backward compatiable API. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPServiceUnavailable:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - ServiceUnavailable
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: Service is unavailable. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPBadRequestConsent:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - InvalidCustomerAddress
        - InvalidConsentPurpose
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPBadRequest"
    - {}
    description: Bad Request during Consent Request. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPBadRequestConsentStatus:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - InvalidConsentHandle
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPBadRequest"
    - {}
    description: Bad Request during Consent Request Status. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPBadRequestConsentFetch:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - InvalidConsentId
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPBadRequest"
    - {}
    description: Bad Request during Consent Fetch. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPBadRequestFIRequest:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - InvalidKey
        - InvalidDateRange
        - InvalidConsentId
        - InvalidConsentStatus
        - InvalidConsentDetail
        - InvalidConsentUse
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPBadRequest"
    - {}
    description: Bad Request during FIRequest. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPForbiddenFIRequest:
    properties:
      ver:
        type: string
        example: 2.0.0
        xml:
          attribute: true
        description: API version
      timestamp:
        type: string
        format: date-time
        example: 2023-06-26T06:13:30.967+0000
        xml:
          attribute: true
        description: Creation timestamp of the message.
      txnid:
        type: string
        example: f35761ac-4a18-11e8-96ff-0277a9fbfed
        description: Unique transaction identifier used for providing an end to end traceability.
      correlationId:
        $ref: "#/definitions/CorrelationId"
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - ConsentExpired
        - ConsentRevoked
        - ConsentPaused
        - IopUpstreamError
      errorMsg:
        type: string
        example: Error code specific error message
        description: Error message with additional details. Ensure no sensitive information is included in the error message.
      iopError:
        $ref: "#/definitions/IopPayload"
    description: Access is forbidden. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPNotFoundFIRequest:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - NoSuchVersion
        - ExpiredKeyMaterial
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPNotFound"
    - {}
    description: Not Found error during FI Request. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPBadRequestFIFetch:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - InvalidFIPId
        - InvalidKey
        - InvalidDateRange
        - InvalidSessionId
        - InvalidConsentId
        - InvalidConsentStatus
        - InvalidConsentDetail
        - InvalidConsentUse
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPBadRequest"
    - {}
    description: Bad Request during FI Fetch. Set to IopUpstreamError when forwarding an error in the iopError field.
  IOPForbiddenFIFetch:
    properties:
      ver:
        type: string
        example: 2.0.0
        xml:
          attribute: true
        description: API version.
      txnid:
        type: string
        example: 0b811819-9044-4856-b0ee-8c88035f8858
        xml:
          attribute: true
        description: Transaction id of the request. Must be same as the value sent in the request
      timestamp:
        type: string
        format: date-time
        example: 2023-06-26T11:33:34.509Z
        xml:
          attribute: true
        description: Response timestamp
      correlationId:
        $ref: "#/definitions/CorrelationId"
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - DataFetchRequestInProgress
        - ConsentExpired
        - ConsentRevoked
        - ConsentPaused
        - IopUpstreamError
      errorMsg:
        type: string
        example: Error code specific error message
      iopError:
        $ref: "#/definitions/IopPayload"
    description: Forbidden Request during FI Fetch
    
  IOPNotFoundFIFetch:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - NoSuchVersion
        - NoDataFound
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPNotFound"
    - {}
    description: Not found error during FI Fetch
  IOPBadRequestConsentNotification:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - InvalidNotifier
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPBadRequest"
    - {}
    description: Bad Request during Consent Notification
  IOPBadRequestFINotification:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - InvalidRequest
        - InvalidURI
        - InvalidSecurity
        - SignatureDoesNotMatch
        - InvalidFIStatusNotification
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/IOPBadRequest"
    - {}
    description: Bad Request during Consent Notification
  IOPUnauthorizedAccess:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - Unauthorized
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: Unauthorized Access
  CustDiscoveryRequest_customer:
    type: object
    properties:
      vua:
        type: string
        example: customer@AA
        xml:
          attribute: true
        description: Customer-VUA to be searched for. Mandatory, if phoneNumber is not provided.
      phoneNumber:
        type: string
        example: XXXXXXXXXX
        xml:
          attribute: true
        description: Mobile number of the Customer. Mandatory, if vua is not provided.
      aaId:
        type: string
        example: AA-003
        xml:
          attribute: true
        description: EntityID of the AA where the customer handle needs to be discovered.
    description: |- 
      Customer identifiers to be searched for. At least one of vua or phoneNumber is mandatory.
        
        <table border="1" style="border-collapse: collapse; border: 1px solid #999;">
        <thead><tr><th style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left; background-color: #f0f0f0;">vua</th><th style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left; background-color: #f0f0f0;">phoneNumber</th><th style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left; background-color: #f0f0f0;">aaId</th><th style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left; background-color: #f0f0f0;">Action (if found)</th><th style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left; background-color: #f0f0f0;">Action (if not found)</th></tr></thead>
        <tbody>
          <tr><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">—</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Return "User Found"</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Call /iop/User/discover to the AA in aaId</td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">—</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Return "User Found"</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Call /iop/User/discover to the AA in aaId</td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Return "User Found"</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Call /iop/User/discover to the AA in aaId</td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">—</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Empty</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Return "User Found"</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Call /iop/User/discover to the AA identified from vua. Drop if AA not identified from vua</td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">—</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Empty</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Return "User Found"</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Broadcast /iop/User/discover to all other AAs</td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Present</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Empty</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Return "User Found"</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Broadcast /iop/User/discover to all other AAs</td></tr>
          <tr><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">—</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">—</td><td style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Any</td><td colspan="2" style="border: 1px solid #999; padding: 4px 8px; vertical-align: top; text-align: left;">Reject with 400 Bad Request (<code>InvalidRequest</code>)</td></tr>
        </tbody>
      </table>
  CustDiscoveryResponse_customerDiscoveryResponse:
    type: object
    required:
    - aaId
    - customerAddress
    - maskedMobile
    - vuaAttestation
    properties:
      customerAddress:
        type: string
        example: customer@AA
        xml:
          attribute: true
        description: The customer-vua generated during the registration with the AA.
      maskedMobile:
        type: string
        example: XXXXXXXXXX
        xml:
          attribute: true
        description: Customer’s registered mobile number. Used particularly when broadcast discovery is required.
      aaId:
        type: string
        example: AA-003
        xml:
          attribute: true
        description: EntityID of the Account Aggregator where the customer's VUA was discovered.
      vuaAttestation:
        type: string
        example: eyJhbGciOiJFUzI1NiIsImtpZCI6InRzLTIwMjYtMTAifQ.eyJpc3MiOi...
        xml:
          attribute: true
        description: Signed attestation (JWS) of the customer's Virtual User Address.
  FITypes:
    type: array
    minItems: 1
    items:
      type: string
      description: List of financial information types.
      example: DEPOSIT
      enum:
        - DEPOSIT
        - TERM_DEPOSIT
        - TERM-DEPOSIT
        - RECURRING_DEPOSIT
        - SIP
        - CP
        - GOVT_SECURITIES
        - EQUITIES
        - BONDS
        - DEBENTURES
        - MUTUAL_FUNDS
        - ETF
        - IDR
        - CIS
        - AIF
        - INSURANCE_POLICIES
        - NPS
        - INVIT
        - REIT
        - GSTR1_3B
        - LIFE_INSURANCE
        - GENERAL_INSURANCE
        - OTHER

  CustomerDiscoverIdentifier:
      type: object
      required:
        - Customer
        - FITypes
      properties:
        Customer:
          type: object
          description: >-
            This block would contain the information about the customer including
            the identifiers & the customer address at the AA
          required:
            - id
            - Identifiers
          properties:
            id:
              type: string
              example: customer_identifier@AA_identifier
              description: Identifier of the Customer generated during the registration with AA.
              xml:
                attribute: true
            Identifiers:
              type: array
              description: >-
                A set of Identifiers required for discovering the accounts of a customer at the FIP. 
                It is mandatory to send atleast one STRONG category Identifier. 
                All identifiers which are used primarily for discovery must be authenticated 
                to ensure that they belong to the user to prevent malicious activity.
              items:
                type: object
                required:
                  - category
                  - type
                  - value
                properties:
                  category:
                    type: string
                    description: >-
                      Category of identifiers based on the ability to find
                      authenticity online.
                    enum:
                      - STRONG
                      - WEAK
                      - ANCILLARY
                    xml:
                      attribute: true
                  type:
                    type: string
                    description: Specifies the type of identifier.
                    example: AADHAAR
                    xml:
                      attribute: true
                    enum:
                      - MOBILE
                      - AADHAR
                      - EMAIL
                      - PAN
                      - DOB
                      - ACCNO
                      - CRN
                      - PPAN
                      - Others
                  value:
                    type: string
                    description: Contains the value/number of selected identifer
                    example: XXXXXXXXXXXXXXXX
                    xml:
                      attribute: true
        FITypes:
          $ref: '#/definitions/FITypes'
  

  DiscoveredAccounts:
      type: object
      description: A list of discovered accounts
      required:
        - Account
      properties:
       Account:
          $ref: '#/definitions/Account'          
 
  Account:
    type: object
    required:
      - FIType
      - accType
      - accRefNumber
      - maskedAccNumber
    properties:
      FIType:
        type: string
        description: Type of Financial Information
        enum:
          - DEPOSIT
          - TERM_DEPOSIT
          - TERM-DEPOSIT
          - RECURRING_DEPOSIT
          - SIP
          - CP
          - GOVT_SECURITIES
          - EQUITIES
          - BONDS
          - DEBENTURES
          - MUTUAL_FUNDS
          - ETF
          - IDR
          - CIS
          - AIF
          - INSURANCE_POLICIES
          - NPS
          - INVIT
          - REIT
          - GSTR1_3B
          - LIFE_INSURANCE
          - GENERAL_INSURANCE
          - OTHER
        xml:
          attribute: true
      accType:
        type: string
        description: The Account Type or Sub FI Type
        enum:
          - SAVINGS
          - CURRENT
          - DEFAULT
          - NRE
          - NRO
          - CENTRAL_GOVT_SECURITIES
          - STATE_GOVT_SECURITIES
          - TREASURY_BILLS
          - SOVEREIGN_GOLD_BONDS
          - FLOATING_RATE_SAVINGS_BONDS
        xml:
          attribute: true
      accRefNumber:
        type: string
        description: >-
          Unique FIP Account Reference Number which is linked with the
          masked account number.
        example: BANK11111111
        xml:
          attribute: true
      maskedAccNumber:
        type: string
        description: Masked account number
        example: XXXXXXX3468
        xml:
          attribute: true
  AccLinkDetailsVerifyResponse:
        type: object
        required:
        - AuthenticatorType
        - RefNumber
        description: Details of the token.
        properties:
              AuthenticatorType:
                type: string
                enum:
                 - DIRECT
                 - TOKEN
                description: |-
                  There are two kinds of authentications that the FIP may support
                  (1) Direct Authentication- The FIP obtains confirmation through a direct interaction with the customer.
                  (2) Token-based Authentication- In this case, a token (e.g., a short-lived one-time password) is issued to the customer, which the customer can then supply to the AA for subsequently forwarding to the FIP.
          
                example: TOKEN
               
              RefNumber:
                type: string
                
                description: Temporary reference number generated by FIP for account linking request
                example: f6b1482e-8f08-11e8-862a-02552b0d3c36
                xml:
                  attribute: true
          
  AccountLinkRequest:
    type: object
    required:
      - Customer
    properties:
      Customer:
        $ref: '#/definitions/Customer'
  TokenDetails:
        type: object
        required:
        - AuthenticatorType
        - RefNumber
        description: Details of the token.
        properties:
              AuthenticatorType:
                type: string
                enum:
                 - DIRECT
                 - TOKEN
                description: |-
                  There are two kinds of authentications that the FIP may support
                  (1) Direct Authentication- The FIP obtains confirmation through a direct interaction with the customer.
                  (2) Token-based Authentication- In this case, a token (e.g., a short-lived one-time password) is issued to the customer, which the customer can then supply to the AA for subsequently forwarding to the FIP.
          
                example: TOKEN
              RefNumber:
                type: string
                
                description: Temporary reference number generated by FIP for account linking request
                example: f6b1482e-8f08-11e8-862a-02552b0d3c36
                xml:
                  attribute: true
 
  Customer:
    type: object
    required:
      - id
      - Accounts
    description: Customer identifiers including AA virtual address.
    properties:
      id:
        type: string
        example: customer_identifier@AA_identifier
        description: Identifier of the Customer generated during the registration with AA.
        xml:
          attribute: true
      Accounts:
        description: 'A list of customer''s accounts to be linked '
        type: array
        items:
          $ref: '#/definitions/Accounts'
  Accounts:
    type: object
    required:
      - FIType
      - accType
      - accRefNumber
      - maskedAccNumber
    properties:
      FIType:
        type: string
        description: Type of Financial Information
        enum:
          - DEPOSIT
          - TERM_DEPOSIT
          - TERM-DEPOSIT
          - RECURRING_DEPOSIT
          - SIP
          - CP
          - GOVT_SECURITIES
          - EQUITIES
          - BONDS
          - DEBENTURES
          - MUTUAL_FUNDS
          - ETF
          - IDR
          - CIS
          - AIF
          - INSURANCE_POLICIES
          - NPS
          - INVIT
          - REIT
          - GSTR1_3B
          - LIFE_INSURANCE
          - GENERAL_INSURANCE
          - OTHER
        xml:
          attribute: true
      accType:
        type: string
        description: The Account Type or Sub FI Type
        enum:
          - SAVINGS
          - CURRENT
          - DEFAULT
          - NRE
          - NRO
          - CENTRAL_GOVT_SECURITIES
          - STATE_GOVT_SECURITIES
          - TREASURY_BILLS
          - SOVEREIGN_GOLD_BONDS
          - FLOATING_RATE_SAVINGS_BONDS
        xml:
          attribute: true
      accRefNumber:
        type: string
        description: >-
          Unique FIP Account Reference Number which is linked with the
          masked account number.
        example: BANK11111111
        xml:
          attribute: true
      maskedAccNumber:
        type: string
        description: Masked account number
        example: XXXXXXX3468
        xml:
          attribute: true  
  AccLinkVerifyDetailsRequest:
    description: >-
      A request of confirmation for account link with a link reference number
      for future identification
    type: object
    required:
      - refNumber
      - token
    properties:
      refNumber:
        type: string
        description: >-
          Temporary reference number generated by FIP for account linking request
        example: f6b1482e-8f08-11e8-862a-02552b0d3c36
        xml:
          attribute: true
      token:
        type: string
        description: >-
          The token that was sent to the customer by the FIP to confirm account link activity
        example: "999999"
        xml:
          attribute: true 
  AccLinkVerifyDetailsResponse:
      type: object
      description: Details for account delink.
      required:
        - AccLinkDetails
      properties:
        AccLinkDetails:
          type: array
          description: Linked account details.
          items:
            type: object
            required:
              - customerAddress
              - linkRefNumber
              - accRefNumber
              - status
            properties:
              customerAddress:
                type: string
                description: Identifier of the Customer generated during the registration with AA.
                example: customer_address@aa_identifier
                xml:
                  attribute: true
              linkRefNumber:
                type: string
                description: Reference number assigned by FIP as part of Account Linking Process.
                example: xxxxxxxxxxxxx
                xml:
                  attribute: true
              accRefNumber:
                type: string
                description: Unique FIP Account Reference Number which is linked with the masked account number.
                example: xxxxxxxxxxxxx
                xml:
                  attribute: true
              status:
                type: string
                description: Status of Account Linking
                example: LINKED
                enum:
                  - LINKED
                  - DELINKED
                xml:
                  attribute: true         
  AccDeLinkRequests:
      type: object
      description: A list of accounts to be de-linked.
      required:
        - Account
      properties: 
        Account:
          type: object
          required:
            - customerAddress
            - linkRefNumber
          properties:
            customerAddress:
              type: string
              description: Identifier of the Customer generated during the registration with AA.
              example: "customer_address@aa_identifier"
              xml:
                attribute: true
            linkRefNumber:
              type: string
              description: Reference number assigned by FIP as part of Account Linking Process.
              example: "xxxxxxxxxxxxx"
              xml:
                attribute: true  
  AccDeLinkResponses:
      type: object
      description: A response of confirmation for account delink.
      required:
        - AccLinkDetails 
      properties:
        AccLinkDetails:
          type: object
          required:
            - customerAddress
            - linkRefNumber
            - status
          properties:
            customerAddress:
              type: string
              description: Identifier of the Customer generated during the registration with AA.
              example: customer_address@aa_identifier
              xml:
                attribute: true
            linkRefNumber:
              type: string
              description: Reference number assigned by FIP as part of Account Linking Process.
              example: "xxxxxxxxxxxxx"
              xml:
                attribute: true
            status:
              type: string
              description: Status of Account Linking
              example: "DELINKED"
              xml:
                attribute: true 
  CustomerConsentHandle:
   type: object
   required: 
    - Customer
    - ConsentHandle
   properties: 
    Customer:
      type: object
      required:
        - id
      description: Contains the customer address
      properties:
        id:
          type: string
          example: customer_identifier@AA_identifier
          description: >-
            The identifier of the Customer generated on registering with an
            AA.
          xml:
            attribute: true
    ConsentHandle:
      type: string
      example: 39e108fe-9243-11e8-b9f2-0256d88baae8
      description: >-
        Unique ID generated by AA after receiving the consent request. 
        Consent Handle can be used by FIU/AA Client to check the consent 
        status and retrieve the consent ID once the consent is approved by customer.
      xml:
        attribute:  true 
  ConsentHandleAA:
   type: object
   description: >-
    Unique ID generated by AA after receiving the consent request. 
    Consent Handle can be used by FIU/AA Client to check the consent status 
    and retrieve the consent ID once the consent is approved by customer. 
   required:
    - ConsentHandle
   properties:
    ConsentHandle:
      type: string
      example: 654024c8-29c8-11e8-8868-0289437bf331
      xml:
        attribute: true 
  consentIdAA:
   type: object
   description: >-
    Unique ID generated by AA after receiving the consent request. 
    Consent Handle can be used by FIU/AA Client to check the consent status 
    and retrieve the consent ID once the consent is approved by customer. 
   required:
    - consentId
   properties:
    consentId:
      type: string
      example: 654024c8-29c8-11e8-8868-0289437bf331
      xml:
        attribute: true 
  consentIdFetch:
   type: object
   description: >-
    Unique ID generated by AA after consent approval is given by the customer.
   required:
    - consentId
   properties:
    consentId:
      type: string
      example: 654024c8-29c8-11e8-8868-0289437bf331
      xml:
        attribute: true 
  ConsentDetail:
        type: object
        description: Specify the financial information types that customer wants to access
        required:
          - consentStart
          - consentExpiry
          - consentMode
          - fetchType
          - consentTypes
          - fiTypes
          - DataConsumer
          - Customer
          - Purpose
          - FIDataRange
          - DataLife
          - Frequency
        properties:
          consentStart:
            type: string
            format: date-time
            example: '2019-12-06T11:39:57.153Z'
            description: >-
              Start date-time of the consent. This field would allow for
              Post-Dated consent.
            xml:
              attribute: true
          consentExpiry:
            type: string
            format: date-time
            example: '2019-12-06T11:39:57.153Z'
            description: Expiry date-time for the consent
            xml:
              attribute: true
          consentMode:
            type: string
            description: Consent Mode as defined in the AA Technical Specification
            enum:
              - VIEW
              - STORE
              - QUERY
              - STREAM
            xml:
              attribute: true
          fetchType:
            type: string
            description: FI Fetch type. Could be ONETIME or PERIODIC
            enum:
              - ONETIME
              - PERIODIC
            xml:
              attribute: true
          consentTypes:
            type: array
            description: Defines the category of financial information which can be fetched using consent
            minItems: 1
            items:
              type: string
              enum:
                - PROFILE
                - SUMMARY
                - TRANSACTIONS
              example: PROFILE
            xml:
              attribute: true
          fiTypes:
            $ref: '#/definitions/FITypes'
          DataConsumer:
            type: object
            required:
              - id
              - type
            description: >-
              The entity which receives data. For a consent
              between FIP & AA, DataConsumer would be AA whereas for a consent
              between FIU/AA Application & AA, DataConsumer would be FIU/AA Client.
            properties:
              id:
                type: string
                example: DC1
                description: DataConsumer ID.
                xml:
                  attribute: true
              type:
                type: string
                description: Type of DataConsumer
                enum:
                  - FIU
                  - USER
                  - AA
                example: FIU
          Customer:
            type: object
            description: Contains the customer address
            properties:
              id:
                type: string
                example: customer_identifier@AA_identifier
                description: >-
                  The identifier of the Customer can be generated during the
                  registration with AA
                xml:
                  attribute: true
              Identifiers:
                type: array
                description: The list of strong identifiers to identify a customer
                items:
                  type: object
                  required:
                    - type
                    - value
                  properties:
                    type:
                      type: string
                      description: The identifier type of given enum values.
                      enum:
                        - MOBILE
                        - EMAIL
                        - OTHERS
                      example: MOBILE
                      xml:
                        attribute: true
                    value:
                      type: string
                      description: verified value of selected identifier
                      example: 919867123456
                      xml:
                        attribute: true
                xml:
                  name: Identifiers
          Purpose:
            $ref: '#/definitions/Purpose'
          FIDataRange:
            type: object
            required:
              - from
              - to
            description: Specifies the date time range for which the financial information is requested
            properties:
              from:
                type: string
                format: date-time
                example: '2023-07-06T11:39:57.153Z'
                description: >-
                  Date-time from which the financial information is requested
                xml:
                  attribute: true
              to:
                type: string
                format: date-time
                example: '2019-12-06T11:39:57.153Z'
                description: >-
                  Date-time till which the financial information is requested
                xml:
                  attribute: true
          DataLife:
            description: Time period for which consumer is allowed to store data.
            type: object
            required:
              - unit
              - value
            properties:
              unit:
                type: string
                description: Unit of time period for which consumer can store the data.
                xml:
                  attribute: true
                enum:
                  - MONTH
                  - YEAR
                  - DAY
                  - INF
              value:
                type: number
                description: >-
                  Define the value of unit of how long can consumer store the data
                xml:
                  attribute: true
          Frequency:
            description: >-
              Defines frequency of FI data fetch within the defined time unit. E.g.HOURLY,DAILY,MONTHLY,YEARLY.
            type: object
            required:
              - unit
              - value
            properties:
              unit:
                type: string
                example: HOUR
                description: >-
                  Defines the time unit of the frequency to access the financial information.
                
                xml:
                  attribute: true
                enum:
                  - HOUR
                  - DAY
                  - MONTH
                  - YEAR
                  - INF
              value:
                type: number
                example: 1
                description: >-
                  Define the number of times FI data can be fetched within the defined time unit.
                xml:
                  attribute: true
          DataFilter:
            type: array
            description: rules that will be utilized by FIP to filter the data
            items:
              type: object
              required:
                - type
                - operator
                - value
              properties:
                type:
                  type: string
                  description: The condition to filter the data on.
                  enum:
                    - TRANSACTIONTYPE
                    - TRANSACTIONAMOUNT
                  example: TRANSACTIONAMOUNT
                  xml:
                    attribute: true
                operator:
                  type: string
                  description: Operator to filter data by.
                  enum:
                    - '='
                    - '!='
                    - '>'
                    - '<'
                    - '>='
                    - '<='
                  example: '>='
                  xml:
                    attribute: true
                value:
                  type: string
                  description: Value based on which data is to be filtered.
                  example: 20000
                  xml:
                    attribute: true
            xml:
              name: DataFilter  
  SignedConsentDetail:
        type: object
        description: >-
          This Section defines the consent and should be digitally signed using the Json Web Signature method. CAN
          NOT CHANGE after generation, for any change a new consent has to be
          generated.
        required:
          - consentStart
          - consentExpiry
          - consentMode
          - fetchType
          - consentTypes
          - fiTypes
          - DataConsumer
          - DataProvider
          - Customer
          - Purpose
          - FIDataRange
          - DataLife
          - Frequency
          - Accounts
        properties:
          consentStart:
            type: string
            format: date-time
            example: '2019-12-06T11:39:57.153Z'
            description: >-
              Start date-time of the consent. This field would allow for
              Post-Dated consent.
            xml:
              attribute: true
          consentExpiry:
            type: string
            format: date-time
            example: '2019-12-06T11:39:57.153Z'
            description: Expiry date-time for the consent
            xml:
              attribute: true
          consentMode:
            type: string
            description: Consent Mode as defined in the AA Technical Specification
            enum:
              - VIEW
              - STORE
              - QUERY
              - STREAM
            xml:
              attribute: true
          fetchType:
            type: string
            description: FI Fetch type. Could be ONETIME or PERIODIC
            enum:
              - ONETIME
              - PERIODIC
            xml:
              attribute: true
          consentTypes:
            type: array
            description: Defines the category of financial information which can be fetched using consent
            minItems: 1
            items:
              type: string
              enum:
                - PROFILE
                - SUMMARY
                - TRANSACTIONS
              example: PROFILE
          fiTypes:
            $ref: '#/definitions/FITypes'
          DataConsumer:
            type: object
            required:
              - id
              - type
            description: >-
              The entity which receives data. For a consent
              between FIP & AA, DataConsumer would be AA whereas for a consent
              between FIU/AA Application & AA, DataConsumer would be FIU/AA Client
            properties:
              id:
                type: string
                description: Data Consumer ID
                example: DC1
                xml:
                  attribute: true
              type:
                type: string
                description: Data Consumer Type
                enum:
                  - FIU
                  - USER
                  - AA
                example: FIU
          DataProvider:
            type: object
            required:
              - id
              - type
            description: >-
              The entity which provides data. For a consent
              between FIP & AA, DataProvider would be FIP whereas for a consent
              between FIU/AA Client & AA, DataProvider would be AA.
            properties:
              id:
                type: string
                description: Data Provider ID.
                example: DP1
                xml:
                  attribute: true
              type:
                type: string
                description: Data Provider Type.
                enum:
                  - FIP
                  - AA
                example: FIP
          Customer:
            type: object
            required:
              - id
            properties:
              id:
                type: string
                description: Identifier of the Customer generated during the registration with AA.
                example: customer_identifier@AA_identifier
                xml:
                  attribute: true
          Accounts:
            type: array
            description: >-
              List of accounts which the consent would fetch FI from. For a
              consent between FIU & AA, this list could have accounts from
              multiple FIP. For a consent between FIP & AA, only accounts from
              particular FIP must be present in this section.
            items:
              type: object
              required:
                - fiType
                - fipId
                - accType
                - linkRefNumber
                - maskedAccNumber
              properties:
                fiType:
                  type: string
                  description: Type of Financial Information
                  example: DEPOSIT
                  xml:
                    attribute: true
                fipId:
                  type: string
                  description: FIP ID as defined in the Account Aggregator Ecosystem.
                  example: FIP1
                  xml:
                    attribute: true
                accType:
                  type: string
                  description: The Account Type or Sub FI Type
                  example: SAVINGS
                  xml:
                    attribute: true
                linkRefNumber:
                  type: string
                  description: Reference number assigned by FIP as part of Account Linking Process.
                  example: XXXX-XXXX-XXXX
                  xml:
                    attribute: true
                maskedAccNumber:
                  type: string
                  description: Masked account number
                  example: XXXXXXXX4020
                  xml:
                    attribute: true
            xml:
              name: Accounts
          Purpose:
            $ref: '#/definitions/Purpose'
          FIDataRange:
            description: Specifies the date time range for which the financial information is requested
            type: object
            required:
              - from
              - to
            properties:
              from:
                type: string
                format: date-time
                description: Date-time from which the financial information is requested
                xml:
                  attribute: true
                example: '2017-07-13T11:33:34.509Z'
              to:
                type: string
                format: date-time
                description: Date-time till which the financial information is requested
                xml:
                  attribute: true
                example: '2023-07-06T11:33:34.509Z'
          DataLife:
            description: >-
              Datalife defines for how long the FIU/AA Client store the
              data
            type: object
            required:
              - unit
              - value
            properties:
              unit:
                type: string
                description: A unit of how long consumer can store the data.
                xml:
                  attribute: true
                enum:
                  - DAY
                  - MONTH
                  - YEAR
                  - INF
              value:
                type: number
                description: 'Value for the Datalife Unit. If INF, value must be set to 0.'
                xml:
                  attribute: true
          Frequency:
            description: >-
              Defines frequency of FI data fetch within the defined time unit. E.g.HOURLY,DAILY,MONTHLY,YEARLY.
            type: object
            required:
              - unit
              - value
            properties:
              unit:
                type: string
                example: HOUR
                description: >-
                  Defines the time unit of the frequency to access the financial information.
                enum:
                  - HOUR
                  - DAY
                  - MONTH
                  - YEAR
                xml:
                  attribute: true
              value:
                type: number
                example: 1
                description: >-
                  Define the number of times FI data can be fetched within the defined time unit.
                xml:
                  attribute: true
            xml:
              name: Frequency
          DataFilter:
            type: array
            description: Rules that will be utilized by FIP to filter the data
            items:
              type: object
              required:
                - type
                - operator
                - value
              properties:
                type:
                  type: string
                  description: The condition to filter the data on.
                  enum:
                    - TRANSACTIONTYPE
                    - TRANSACTIONAMOUNT
                  example: TRANSACTIONAMOUNT
                  xml:
                    attribute: true
                operator:
                  type: string
                  description: Operator to filter data by.
                  enum:
                    - '='
                    - '!='
                    - '>'
                    - '<'
                    - '>='
                    - '<='
                  example: '>='
                  xml:
                    attribute: true
                value:
                  type: string
                  description: Value to filter data
                  example: 20000
                  xml:
                    attribute: true
            xml:
              name: DataFilter
  
  ConsentHandleConsentStatus:
   type: object
   required: 
    - ConsentHandle 
    - ConsentStatus
   properties:
    ConsentHandle:
      type: string
      example: 39e108fe-9243-11e8-b9f2-0256d88baae8
      xml:
        attribute: true      
    ConsentStatus:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          description: Unique ID generated by AA after consent approval is given by the customer.
          example: 654024c8-29c8-11e8-8868-0289437bf331
          xml:
            attribute: true
        status:
          type: string
          description: Specifies the status of consent artefact
          enum:
            - APPROVED
            - EXPIRED
            - REJECTED
            - READY
            - FAILED
            - PENDING
          xml:
            attribute: true  

   ConsentStatusRequest:
      type: object
      required:
        - Customer
        - ConsentHandle
      properties:
        Customer:
          type: object
          description: The identifier of the Customer generated on registering with an AA.
          required:
            - id
          properties:
            id:
              type: string
              example: customer_identifier@AA_identifier
              description: Contains the customer address id
          xml:
            attribute: true
        ConsentHandle:
          type: string
          example: 39e108fe-9243-11e8-b9f2-0256d88baae8
          description: Unique ID generated by AA after receiving the consent request. Consent Handle can be used by FIU/AA Client to check the consent status and retrieve the consent ID once the consent is approved by customer.
  
   FIResponseEncryptedData:
    type: object
    required:
      - consentId
      - sessionId
    description: Encrypted FI response data
    properties:
      consentId:
        type: string
        description: >-
          Unique ID generated by AA after consent approval is given by the customer.
        example: 654024c8-29c8-11e8-8868-0289437bf331
        xml:
          attribute: true
      sessionId:
        type: string
        
        description: >-
          A session ID is a base-64 encoded UUID number that an AA returns to the
          FIU or AA Client for each financial information access request.
        example: caa2f259-2dc2-4075-87aa-6d81018b6183
        xml:
          attribute: true
  NotificationResponse:
        type: object
        properties:
            response:
              type: string
              example: "OK"
        xml:
            attribute: true
  ConsentStatusNotificationRequest:
      type: object
      required:
        - Notifier
        - ConsentHandle
        - ConsentStatusNotification
      properties:
        Notifier:
          type: object
          description: Information about the notifier
          required:
            - type
            - id
          properties:
            type:
              type: string
              example: FIP
              description: Type of the notifier entity
              xml:
                attribute: true
            id:
              type: string
              example: FIP-1
              description: Unique ID to identify the entity
              xml:
                attribute: true
        ConsentStatusNotification:
          type: object
          description: Contains the Consent ID and Consent Status details.
          required:
            - consentId
            - consentStatus
          properties:
            consentId:
              type: string
              example: XXXX0-XXXX-XXXX
              description: Unique ID generated by AA after consent approval is given by the customer.
              xml:
                attribute: true
            consentStatus:
              type: string
              example: REJECTED
              description: Specifies the status of consent artefact
              xml:
                attribute: true
              enum:
                - ACTIVE
                - REVOKED
                - PAUSED
                - REJECTED
  FIRequestEncryptedData:
    type: object
    required:
      - FIDataRange
      - Consent
    description: Encrypted FI request data
    properties:
      FIDataRange:
        type: object
        required:
          - from
          - to
        description: Specifies the date time range for which the financial information is requested
        properties:
          from:
            type: string
            format: date-time
            example: '2023-07-06T11:39:57.153Z'
            description: >-
              Date-time from which the financial information is requested
            xml:
              attribute: true
          to:
            type: string
            format: date-time
            example: '2019-12-06T11:39:57.153Z'
            description: >-
              Date-time till which the financial information is requested
            xml:
              attribute: true
      Consent:
        type: object
        required:
          - id
          - digitalSignature
        properties:
          id:
            type: string
            description: Unique ID generated by AA after consent approval is given by the customer.
            example: 654024c8-29c8-11e8-8868-0289437bf331
            xml:
              attribute: true
          digitalSignature:
            type: string  
            description: >-
              Signature part of the Consent JWS. The reciever has to check the
              given signature matches with the signature in the original consent
              JWS.
            example: >-
              NdjwMjLortTb10dxcJezkvdOxPVvEdZvIqwqVWOHnE8pS_YDswcRPLTRmds2xO-Tvm_A2cFv1qKYpaZnv8Bl6xmZoOsG_F8_40gRZqIhz5hF9puzp8lEEhMlZ6NaX2Y2OYkwHcOBBpCIXpLXB4CMWiefUEWjO9zKDd5JJwZ4vLWeT4qgwvPfRqE60B33tzVlF5E6OA2mKK17sGRXsfrI9obEjL52RMdGo_9bv1HnHfvPlbj5ihj6d_5iTtoh7HUC_X8CrJGvkgkCjP_7of1jPb5QgJ9nx_Yfsxj3vf8zEseZIVISjF3MwBzW7Di4CpfQl4wlnpkQO9MKu78F69Z9Ig
  FIResponseEncryptedData:
    type: object
    required:
      - consentId
      - sessionId
    description: Encrypted FI response data
    properties:
      consentId:
        type: string
        description: >-
          Unique ID generated by AA after consent approval is given by the customer.
        example: 654024c8-29c8-11e8-8868-0289437bf331
        xml:
          attribute: true
      sessionId:
        type: string
        
        description: >-
          A session ID is a base-64 encoded UUID number that an AA returns to the
          FIU or AA Client for each financial information access request.
        example: caa2f259-2dc2-4075-87aa-6d81018b6183
        xml:
          attribute: true
  FIFetchRequestEncryptedData:
    type: object
    required:
      - sessionId
      - fipId
      - linkRefNumber
    description: Encrypted FI response data
    properties:
      sessionId:
        type: string
        description: >-
          A session ID is a base-64 encoded UUID number that an AA returns to the
          FIU or AA Client for each financial information access request.
        example: caa2f259-2dc2-4075-87aa-6d81018b6183
        xml:
          attribute: true
      fipId:
        type: string
        description: >-
          FIP ID as defined in the Account Aggregator Ecosystem.
        example: FIP-1
        xml:
          attribute: true
      linkRefNumber:
        type: array
        description: >-
          Reference number assigned by FIP as part of Account Linking Process.
        minItems: 1
        uniqueItems: true
        items:
          type: object
          required:
            - id
          properties:
            id:
              type: string
              example: XXXX-XXXX-XXXX
              xml:
                attribute: true
  FinancialInformation:
      type: object
      required:
        - FI
      properties:
        FI:
          type: array
          description: List of financial information blocks categorized by FIP.
          items:
            type: object
            required:
              - fipID
              - data
            properties:
              fipID:
                type: string
                example: FIP-1
                description: FIP ID as defined in the Account Aggregator Ecosystem.
              data:
                type: array
                description: >-
                  Contains the account-specific metadata with corresponding 
                  encrypted data for accessing the financial information.
                items:
                  type: object
                  required:
                    - linkRefNumber
                    - maskedAccNumber
                    - encryptedFI
                  properties:
                    linkRefNumber:
                      type: string
                      example: XXXX-XXXX-XXXX
                      description: Reference number assigned by FIP as part of Account Linking Process.
                    maskedAccNumber:
                      type: string
                      example: XXXXXXXX4020
                      description: Masked account number.
                   

  AccountLinkStatusNotificationReq:
      type: object
      required:
        - Notifier
        - AccountLinkStatusNotification
      properties:
        Notifier:
          type: object
          description: Information about the notifier
          required:
            - type
            - id
          properties:
            type:
              type: string
              example: FIP
              description: Type of the notifier entity
              xml:
                attribute: true
            id:
              type: string
              example: FIP-1
              description: Unique ID to identify the entity
              xml:
                attribute: true
        AccountLinkStatusNotification:
          type: object
          required:
           - accRefNumber
           - customerAddress
           - linkRefNumber
           - linkStatus
          properties:
            accRefNumber:
              type: string
              example: "XXXX0-XXXX-XXXX"
              description: "Unique FIP Account Reference Number which is linked with the masked account number."
              xml:
               attribute: true
            customerAddress:
              type: string
              example: "customer_identifier@aa_identifier"
              description: "Identifier of the Customer generated during the registration with AA."
            linkRefNumber:
              type: string
              example: "XXXX-XXXX-XXXX"
              description: "Reference number assigned by FIP as part of Account Linking Process."
            linkStatus:
              type: string
              example: "LINKED"
              description: "Status of Account Linking."
              xml:
               attribute: true
              enum:
               - LINKED
     

  AccountLinkStatusNotificationRequest:
      type: object
      required:
        - Notifier
        - AccountLinkStatusNotification
      properties:
        Notifier:
          type: object
          description: Information about the notifier
          required:
            - type
            - id
          properties:
            type:
              type: string
              example: FIP
              description: Type of the notifier entity
              xml:
                attribute: true
            id:
              type: string
              example: FIP-1
              description: Unique ID to identify the entity
              xml:
                attribute: true
        AccountLinkStatusNotification:
          type: object
          description: Contains the financial information fetch session id and session status details.
          required:
            - sessionId
            - sessionStatus
            - FIStatusResponse
          properties:
            sessionId:
              type: string
              example: XXXX0-XXXX-XXXX
              description: A session ID is a base-64 encoded UUID number that an AA returns to the FIU or AA Client for each financial information access request.
              xml:
                attribute: true
            sessionStatus:
              type: string
              example: ACTIVE
              description: Status of the Financial Information fetch session.
              enum:
                - ACTIVE
                - COMPLETED
                - EXPIRED
                - FAILED
            FIStatusResponse:
              type: array
              items:
                $ref: '#/definitions/FIStatusResponseItem'
  ConsentArtefact:
      type: object
      description: Complete details of a generated consent artefact and its operational tracking metadata.
      required:
        - consentId
        - status
        - createTimestamp
        - signedConsent
        - ConsentUse
      properties:
        consentId:
          type: string
          example: XXXX-XXXX-XXXX-XXXX
          description: Unique ID generated by AA after consent approval is given by the customer.
          xml:
            attribute: true
        status:
          type: string
          description: Specifies the status of consent artefact.
          enum:
            - ACTIVE
            - PAUSED
            - REVOKED
            - EXPIRED
        createTimestamp:
          type: string
          format: date-time
          example: 2023-06-26T11:39:57.153Z
          description: Creation time of the consent artefact.
          xml:
            attribute: true
        signedConsent:
          type: string
          example: eyJhbGciOiJSUzI1NiIsImtpZCI6IjQyNzE5MTNlLTdiOTMtNDlkZC05OTQ5LTFjNzZmZjVmYzVjZiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19.ew0KICAgICAgICAiY29uc2VudFN0YXJ0IjogIjIwMTktMDUtMjhUMTE6Mzg6MjAuMzgwKzAwMDAiLA0KICAgICAgICAiY29uc2VudEV4cGlyeSI6ICIyMDIwLTA1LTI4VDExOjM4OjIwLjM4MSswMDAwIiwNCiAgICAgICAgImNvbnNlbnRNb2RlIjogIlZJRVciLA0KICAgICAgICAiZmV0Y2hUeXBlIjogIk9ORVRJTUUiLA0KICAgICAgICAiY29uc2VudFR5cGVzIjogWw0KICAgICAgICAgICAgIlBST0ZJTEUiLA0KICAgICAgICAgICAgIlNVTU1BUlkiLA0KICAgICAgICAgICAgIlRSQU5TQUNUSU9OUyINCiAgICAgICAgXSwNCiAgICAgICAgImZpVHlwZXMiOiBbDQogICAgICAgICAgICAiREVQT1NJVCIsDQogICAgICAgICAgICAiVEVSTS1ERVBPU0lUIg0KICAgICAgICBdLA0KICAgICAgICAiRGF0YUNvbnN1bWVyIjogew0KICAgICAgICAgICAgImlkIjogImNvb2tpZWphci1hYUBmaW52dS5pbiIsDQogICAgICAgICAgICAidHlwZSI6ICJBQSINCiAgICAgICAgfSwNCiAgICAgICAgIkRhdGFQcm92aWRlciI6IHsNCiAgICAgICAgICAgICJpZCI6ICJCQVJCMEtJTVhYWCIsDQogICAgICAgICAgICAidHlwZSI6ICJGSVAiDQogICAgICAgIH0sDQogICAgICAgICAiQ3VzdG9tZXIiOiB7DQogICAgICAgICAgICAiaWQiOiAiZGVtb0BmaW52dSINCiAgICAgICAgfSwNCiAgICAgICAgIkFjY291bnRzIjogWw0KICAgICAgICAgICAgew0KICAgICAgICAgICAgICAgICJmaVR5cGUiOiAiREVQT1NJVCIsDQogICAgICAgICAgICAgICAgImZpcElkIjogIkJBUkIwS0lNWFhYIiwNCiAgICAgICAgICAgICAgICAiYWNjVHlwZSI6ICJTQVZJTkdTIiwNCiAgICAgICAgICAgICAgICAibGlua1JlZk51bWJlciI6ICJVQkk0ODU5NjQ1NzkiLA0KICAgICAgICAgICAgICAgICJtYXNrZWRBY2NOdW1iZXIiOiAiVUJJODUyMTc4ODEyNzkiDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgew0KICAgICAgICAgICAgICAgICJmaVR5cGUiOiAiREVQT1NJVCIsDQogICAgICAgICAgICAgICAgImZpcElkIjogIkJBUkIwS0lNWFhYIiwNCiAgICAgICAgICAgICAgICAiYWNjVHlwZSI6ICJTQVZJTkdTIiwNCiAgICAgICAgICAgICAgICAibGlua1JlZk51bWJlciI6ICJVQkk0ODU5NjQ1IiwNCiAgICAgICAgICAgICAgICAibWFza2VkQWNjTnVtYmVyIjogIlVCSTg1MjE3ODgxMiINCiAgICAgICAgICAgIH0NCiAgICAgICAgXSwNCiAgICAgICAgIlB1cnBvc2UiOiB7DQogICAgICAgICAgICAiY29kZSI6ICIxMDEiLA0KICAgICAgICAgICAgInJlZlVyaSI6ICJodHRwczovL2FwaS5yZWJpdC5vcmcuaW4vYWEvcHVycG9zZS8xMDEueG1sIiwNCiAgICAgICAgICAgICJ0ZXh0IjogIldlYWx0aCBtYW5hZ2VtZW50IHNlcnZpY2UiLA0KICAgICAgICAgICAgIkNhdGVnb3J5Ijogew0KICAgICAgICAgICAgICAgICJ0eXBlIjogInB1cnBvc2VDYXRlZ29yeVR5cGUiDQogICAgICAgICAgICB9DQogICAgICAgIH0sDQogICAgICAgICJGSURhdGFSYW5nZSI6IHsNCiAgICAgICAgICAgICJmcm9tIjogIjIwMTktMDUtMjhUMTE6Mzg6MjAuMzgzKzAwMDAiLA0KICAgICAgICAgICAgInRvIjogIjIwMjAtMDUtMjhUMTE6Mzg6MjAuMzgxKzAwMDAi\nICAgICAgICB9LA0KICAgICAgICAiRGF0YUxpZmUiOiB7DQogICAgICAgICAgICAidW5pdCI6ICJNT05USCIsDQogICAgICAgICAgICAidmFsdWUiOiA0DQogICAgICAgIH0sDQogICAgICAgICJGcmVxdWVuY3kiOiB7DQogICAgICAgICAgICAidW5pdCI6ICJIT1VSIiwNCiAgICAgICAgICAgICJ2YWx1ZSI6IDQNCiAgICAgICAgfSwNCiAgICAgICAgIkRhdGFGaWx0ZXIiOiBbDQogICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgInR5cGUiOiAiVFJBTlNBQ1RJT05BTU9VTlQiLA0KICAgICAgICAgICAgICAgICJvcGVyYXRvciI6ICI+IiwNCiAgICAgICAgICAgICAgICAidmFsdWUiOiAiMjAwMDAi\nICAgICAgICAgICAgfQ0KICAgICAgICBdDQogICAgfQ.O3KPh-eTpW2w47QXYidOBe1Hk2y7djVAEcOnZyRRvxQ3cY18-9ZWiodF16jff-e7yNQgsYZpAy95Fx2Fft8LoYugkYh9_6qHiG_7LCtW8Ng4nCMgZM3Wwsj11ks1msrK5C1ksPrGlTkFhm9-FufNkPTAlW76_5Sb8G_lOsIj1lB8TrvKpOvPlhEIgsS4WBNdPfv3SBqTV2suw2LvkX3QTilqwuMgXMkrm9-RYL90fweX_yyoyaBWHOJNQaKNuQWPpoRRNHGOx3v4_QiwgrELdfeTVtKn6R_AsfaBoEthQ3wrc8tY1q0Wx5j0x18NdU2R2C26dHyZ9M11dEH99psA1A
          description: Consent artefact signed using JWS. See SignedConsentDetail model for consent format.
        ConsentUse:
          $ref: '#/definitions/ConsentUse'
  
  ConsentRequestResponse:
      type: object
      required:
        - Customer
        - ConsentHandle
      properties:
        Customer:
          type: object
          description: Contains the customer address
          required:
            - id
          properties:
            id:
              type: string
              description: The identifier of the Customer generated on registering with an AA.
              example: customer_identifier@AA_identifier
              xml:
                attribute: true
        ConsentHandle:
          type: string
          description: >-
            Unique ID generated by AA after receiving the consent request. Consent Handle can 
            be used by FIU/AA Client to check the consent status and retrieve the consent ID 
            once the consent is approved by customer.
          example: 39e108fe-9243-11e8-b9f2-0256d88baae8
  ConsentHandleResponse:
      type: object
      required:
        - ConsentHandle
        - ConsentStatus
      properties:
        ConsentHandle:
          type: string
          description: >-
            Unique ID generated by AA after receiving the consent request. Consent Handle can 
            be used by FIU/AA Client to check the consent status and retrieve the consent ID 
            once the consent is approved by customer.
          example: 39e108fe-9243-11e8-b9f2-0256d88baae8
          xml:
            attribute: true
        ConsentStatus:
          type: object
          description: Contains the consent artefact related information
          required:
            - status
          properties:
            id:
              type: string
              description: The identifier for the consent artefact.
              example: 12345-67890
            status:
              type: string
              description: Specifies the status of consent artefact.
              xml:
                attribute: true
              enum:
                - APPROVED
                - EXPIRED
                - REJECTED
                - READY
                - FAILED
                - PENDING
  FinancialInformationStatusNotification:
      type: object
      required:
        - Notifier
        - FIStatusNotification
      properties:
        Notifier:
          type: object
          description: Information about the notifier
          required:
            - type
            - id
          properties:
            type:
              type: string
              example: FIP
              description: Type of the notifier entity
              xml:
                attribute: true
            id:
              type: string
              example: FIP-1
              description: Unique ID to identify the entity
              xml:
                attribute: true
        FIStatusNotification:
          type: object
          description: Contains the financial information fetch session id and session status details.
          required:
            - sessionId
            - sessionStatus
            - FIStatusResponse
          properties:
            sessionId:
              type: string
              example: XXXX0-XXXX-XXXX
              description: A session ID is a base-64 encoded UUID number that an AA returns to the FIU or AA Client for each financial information access request.
              xml:
                attribute: true
            sessionStatus:
              type: string
              example: ACTIVE
              description: Status of the Financial Information fetch session.
              enum:
                - ACTIVE
                - COMPLETED
                - EXPIRED
                - FAILED
            FIStatusResponse:
              type: array
              description: List of financial information provider responses.
              items:
                type: object
                required:
                  - fipID
                  - Accounts
                properties:
                  fipID:
                    type: string
                    example: FIP-1
                    description: FIP ID as defined in the Account Aggregator Ecosystem
                  Accounts:
                    type: array
                    items:
                      type: object
                      required:
                        - linkRefNumber
                        - FIStatus
                        - description
                      properties:
                        linkRefNumber:
                          type: string
                          example: XXXX-XXXX-XXXX
                          description: Reference number assigned by FIP as part of Account Linking Process.
                        FIStatus:
                          type: string
                          example: READY
                          description: Fetch Status of the Financial Information.
                          xml:
                            attribute: true
                          enum:
                            - READY
                            - DENIED
                            - PENDING
                            - DELIVERED
                            - TIMEOUT
                        description:
                          type: string
                          example: Status details description
                          description: Description associated with the current account fetch status.
  SignedEncryptedModel:
    type: object
    description: Encrypted payload of the API consent specifications.
    required:
      - consentId
      - status
      - createTimestamp
      - signedConsent
      - ConsentUse
    properties:
      consentId:
            type: string
            description: Logging; logUri can be any valid URI including an email address
            example: "XXXX-XXXX-XXXX-XXXX"
            xml:
              attribute: true
      status:
        type: string
        description: Specifies the status of consent artefact
        enum:
          - ACTIVE
          - PAUSED
          - REVOKED
          - EXPIRED 
      createTimestamp:
        type: string
        format: date-time
        example: '2023-06-26T11:39:57.153Z'
        description: Creation time of the Consent Artefact
        xml:
          attribute: true           
      signedConsent:
        type: string
        description: >-
          Consent artefact signed using JWS. See SignedConsentDetail model for consent format.
        example: >-
          eyJhbGciOiJSUzI1NiIsImtpZCI6IjQyNzE5MTNlLTdiOTMtNDlkZC05OTQ5LTFjNzZmZjVmYzVjZiIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19.ew0KICAgICAgICAiY29uc2VudFN0YXJ0IjogIjIwMTktMDUtMjhUMTE6Mzg6MjAuMzgwKzAwMDAiLA0KICAgICAgICAiY29uc2VudEV4cGlyeSI6ICIyMDIwLTA1LTI4VDExOjM4OjIwLjM4MSswMDAwIiwNCiAgICAgICAgImNvbnNlbnRNb2RlIjogIlZJRVciLA0KICAgICAgICAiZmV0Y2hUeXBlIjogIk9ORVRJTUUiLA0KICAgICAgICAiY29uc2VudFR5cGVzIjogWw0KICAgICAgICAgICAgIlBST0ZJTEUiLA0KICAgICAgICAgICAgIlNVTU1BUlkiLA0KICAgICAgICAgICAgIlRSQU5TQUNUSU9OUyINCiAgICAgICAgXSwNCiAgICAgICAgImZpVHlwZXMiOiBbDQogICAgICAgICAgICAiREVQT1NJVCIsDQogICAgICAgICAgICAiVEVSTS1ERVBPU0lUIg0KICAgICAgICBdLA0KICAgICAgICAiRGF0YUNvbnN1bWVyIjogew0KICAgICAgICAgICAgImlkIjogImNvb2tpZWphci1hYUBmaW52dS5pbiIsDQogICAgICAgICAgICAidHlwZSI6ICJBQSINCiAgICAgICAgfSwNCiAgICAgICAgIkRhdGFQcm92aWRlciI6IHsNCiAgICAgICAgICAgICJpZCI6ICJCQVJCMEtJTVhYWCIsDQogICAgICAgICAgICAidHlwZSI6ICJGSVAiDQogICAgICAgIH0sDQogICAgICAgICJDdXN0b21lciI6IHsNCiAgICAgICAgICAgICJpZCI6ICJkZW1vQGZpbnZ1Ig0KICAgICAgICB9LA0KICAgICAgICAiQWNjb3VudHMiOiBbDQogICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgImZpVHlwZSI6ICJERVBPU0lUIiwNCiAgICAgICAgICAgICAgICAiZmlwSWQiOiAiQkFSQjBLSU1YWFgiLA0KICAgICAgICAgICAgICAgICJhY2NUeXBlIjogIlNBVklOR1MiLA0KICAgICAgICAgICAgICAgICJsaW5rUmVmTnVtYmVyIjogIlVCSTQ4NTk2NDU3OSIsDQogICAgICAgICAgICAgICAgIm1hc2tlZEFjY051bWJlciI6ICJVQkk4NTIxNzg4MTI3OSINCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgImZpVHlwZSI6ICJERVBPU0lUIiwNCiAgICAgICAgICAgICAgICAiZmlwSWQiOiAiQkFSQjBLSU1YWFgiLA0KICAgICAgICAgICAgICAgICJhY2NUeXBlIjogIlNBVklOR1MiLA0KICAgICAgICAgICAgICAgICJsaW5rUmVmTnVtYmVyIjogIlVCSTQ4NTk2NDUiLA0KICAgICAgICAgICAgICAgICJtYXNrZWRBY2NOdW1iZXIiOiAiVUJJODUyMTc4ODEyIg0KICAgICAgICAgICAgfQ0KICAgICAgICBdLA0KICAgICAgICAiUHVycG9zZSI6IHsNCiAgICAgICAgICAgICJjb2RlIjogIjEwMSIsDQogICAgICAgICAgICAicmVmVXJpIjogImh0dHBzOi8vYXBpLnJlYml0Lm9yZy5pbi9hYS9wdXJwb3NlLzEwMS54bWwiLA0KICAgICAgICAgICAgInRleHQiOiAiV2VhbHRoIG1hbmFnZW1lbnQgc2VydmljZSIsDQogICAgICAgICAgICAiQ2F0ZWdvcnkiOiB7DQogICAgICAgICAgICAgICAgInR5cGUiOiAicHVycG9zZUNhdGVnb3J5VHlwZSINCiAgICAgICAgICAgIH0NCiAgICAgICAgfSwNCiAgICAgICAgIkZJRGF0YVJhbmdlIjogew0KICAgICAgICAgICAgImZyb20iOiAiMjAxOS0wNS0yOFQxMTozODoyMC4zODMrMDAwMCIsDQogICAgICAgICAgICAidG8iOiAiMjAyMC0wNS0yOFQxMTozODoyMC4zODErMDAwMCINCiAgICAgICAgfSwNCiAgICAgICAgIkRhdGFMaWZlIjogew0KICAgICAgICAgICAgInVuaXQiOiAiTU9OVEgiLA0KICAgICAgICAgICAgInZhbHVlIjogNDNCg0KICAgICAgICB9LA0KICAgICAgICAiRnJlcXVlbmN5Ijogew0KICAgICAgICAgICAgInVuaXQiOiAiSE9VUiIsDQogICAgICAgICAgICAidmFsdWUiOiA0DQogICAgICAgIH0sDQogICAgICAgICJEYXRhRmlsdGVyIjogWw0KICAgICAgICAgICAgew0KICAgICAgICAgICAgICAgICJ0eXBlIjogIlRSQU5TQUNUSU9OQU1PVU5UIiwNCiAgICAgICAgICAgICAgICAib3BlcmF0b3IiOiAiPiIsDQogICAgICAgICAgICAgICAgInZhbHVlIjogIjIwMDAwIg0KICAgICAgICAgICAgfQ0KICAgICAgICBdDQogICAgfQ0K.O3KPh-eTpW2w47QXYidOBe1Hk2y7djVAEcOnZyRRvxQ3cY18-9ZWiodF16jff-e7yNQgsYZpAy95Fx2Fft8LoYugkYh9_6qHiG_7LCtW8Ng4nCMgZM3Wwsj11ks1msrK5C1ksPrGlTkFhm9-FufNkPTAlW76_5Sb8G_lOsIj1lB8TrvKpOvPlhEIgsS4WBNdPfv3SBqTV2suw2LvkX3QTilqwuMgXMkrm9-RYL90fweX_yyoyaBWHOJNQaKNuQWPpoRRNHGOx3v4_QiwgrELdfeTVtKn6R_AsfaBoEthQ3wrc8tY1q0Wx5j0x18NdU2R2C26dHyZ9M11dEH99psA1A
      ConsentUse:
        type: object
        description: Section defining the parameters for consent tracking
        required:
          - logUri
          - count
          - lastUseDateTime
        properties:
          logUri:
            type: string
            description: Logging; logUri can be any valid URI including an email address
            xml:
              attribute: true
          count:
            type: number
            description: Number of times the consent has been used
            example: 1
            xml:
              attribute: true
          lastUseDateTime:
            type: string
            format: date-time
            description: Datetime when Consent was last used.
            example: '2018-12-06T11:39:57.153Z'
            xml:
              attribute: true    
  



   


            

   