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

       The Financial Information Provider (FIP) Interoperability APIs enable communication between 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: Financial Information Provider Interoperability API
  contact:
    email: aa-api@rebit.org.in
  x-custom-tags:
    x-api-name: Financial Information Provider (FIP) Interoperability API
tags:
- 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.
- name: Monitoring
  description: APIs to check availability of AA application.
schemes:
- https
consumes:
- application/json
produces:
- application/json
security:
- x-inter_aa_api_key: []
paths:
  /iop/Account/discover:
    post:
      tags:
      - Account Discovery
      description: |-
        This API is called by an inter-AA to an FIP.
        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:
          $ref: "#/definitions/IOPAccountDiscoverRequest"
      security:
      - 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/IOPAccountDiscoverResponse"
        "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 inter-AA to an FIP.
        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:
          $ref: "#/definitions/IOPAccountLinkRequest"
      security:
      - 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/IOPAccountLinkResponse"
        "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 inter-AA to an FIP.
        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 verifying the account linking at the FIP
        required: false
        schema:
          $ref: "#/definitions/IOPAccountLinkVerifyRequest"
      security:
      - 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/IOPAccountLinkVerifyResponse"
        "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 inter-AA to an FIP.
        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
        required: false
        schema:
          $ref: "#/definitions/IOPAccountDelinkRequest"
      security:
      - 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/IOPAccountDelinkResponse"
        "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 inter-AA to an FIP.
        Business purpose: This API will be used by the AA to send the consent artefact to the FIP on creation.

        <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:
          $ref: "#/definitions/IOPConsentRequest"
      security:
      - 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/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/FI/request:
    post:
      tags:
      - Data Flow
      description: |-
        This API is called by an inter-AA to an FIP.
        Business purpose: This API is used by the AA to request for financial information from the FIP. The FIP will validate the request against the signed consent and return a sessionID which can then be used by the AA 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:
          $ref: "#/definitions/IOPFIRequest"
      security:
      - 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/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 inter-AA to an FIP.
        Business purpose: This API is used to fetch financial information 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:
          $ref: "#/definitions/IOPFiFetchRequest"
      security:
      - 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/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 inter-AA to an FIP.
        Business purpose: This API is intended to be used by AA to notify the change in consent status due to the consent management operations performed by the customer.

        <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:
          $ref: "#/definitions/IOPConsentNotificationRequest"
      security:
      - 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/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/Heartbeat:
    get:
      tags:
      - Monitoring
      description: |-
        This API is called by an inter-AA to an FIP.
        Business purpose: This API can be used by the AAs to check availability of the FIP application.

        <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:
          $ref: "#/definitions/Initiator"
      security:
      - 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/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:
  x-inter_aa_api_key:
    description: x-inter_aa_api_key is provided by the inter-AA to the FIP
    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. "
  Initiator:
    type: object
    properties:
      type:
        type: string
        example: "AA"
      id:
        type: string
        example: "aa-003"
    xml:
      attribute: true
    description: The initiator origin-AA id, where the request originated.
  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

  IopAccountDiscoverResponsePayload:
    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   

  IopAccountDiscoverPayload:
    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

  IopAccountLinkResponsePayload:
    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
  IopAccountLinkRequestPayload:
    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   

  IopAccountLinkedVerifyResponsePayload:
    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  

  IopAccountLinkVerifyPayload:
    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  

  IopAccountDelinkResposePayload:
    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  AccDeLinkResponse 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  
  IopNotificationResponsePayload:
    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
  IopAccountDelinkRequestPayload:
    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 

  IopConsentNotificationRequestPayload:
    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 FIPConsentStatusNotification 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   

  IopFiFetchResponsePayload:
    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 FIFetchResponseEncryptedData 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   
  IopFiFetchRequestPayload:
    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   
  IopFipFIPayload:
    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 FipFIResponse 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 FipFIRequest 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 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
  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 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
  IOPRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopPayload"
        

  IOPAccountDiscoverRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopAccountDiscoverPayload"      
  IOPAccountLinkRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopAccountLinkRequestPayload"      
  IOPAccountLinkVerifyRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopAccountLinkVerifyPayload"      
  IOPAccountDelinkRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopAccountDelinkRequestPayload"     
  IOPConsentNotificationRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopConsentNotificationRequestPayload"      
    
  IOPFiFetchRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopFiFetchRequestPayload"
     

  IOPFIRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - KeyMaterial
    - iopPayload
    - Initiator
    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'
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopFIPayload"    
  IOPConsentRequest:
    type: object
    required:
    - timestamp
    - txnid
    - correlationId
    - ver
    - iopPayload
    - Initiator
    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"
      Initiator:
        $ref: "#/definitions/Initiator"  
      iopPayload:
        $ref: "#/definitions/IopConsentPayload"
  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"

  IOPAccountDiscoverResponse:
    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/IopAccountDiscoverResponsePayload"
  IOPAccountLinkResponse:
    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/IopAccountLinkResponsePayload"
  IOPAccountLinkVerifyResponse:
    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/IopAccountLinkedVerifyResponsePayload"      
  IOPAccountDelinkResponse:
    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/IopAccountDelinkResposePayload"  
  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/IopNotificationResponsePayload"  
  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/IopFiFetchResponsePayload" 
      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/IopFipFIPayload"
  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/IopConsentNotificationPayload"
         
    
  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
    required:
    - iopError
    properties:
      iopError:
        $ref: "#/definitions/IopPayload"
    description: Generic Error Response. Specific Error Responses extend from this.
  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.
  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
  IOPUnauthorizedAccess:
    properties:
      errorCode:
        type: string
        xml:
          attribute: true
        enum:
        - Unauthorized
        - IopUpstreamError
    allOf:
    - $ref: "#/definitions/ErrorResponse"
    - $ref: "#/definitions/IOPErrorResponse"
    - {}
    description: Unauthorized Access
  
  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: 
        - Accounts
      properties: 
       Accounts:
          $ref: '#/definitions/Accounts'           
  AccountLinkRequest:
    type: object
    required:
      - Customer
    properties:
      Customer:
        $ref: '#/definitions/Customer'

  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
        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	 
  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 

  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  
  AccDeLinkResponse:
      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 

  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                                            
  FipFIRequest:
    type: object
    required:
      - Consent
      - FIDataRange
    properties:
      Consent:
        type: object
        description: Consent Artefact details.
        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 receiver has to check if
              the given signature matches with the signature in the original
              consent JWS.
            example: >-
              NdjwMjLortTb10dxcJezkvdOxPVvEdZvIqwqVWOHnE8pS_YDswcRPLTRmds2xO-Tvm_A2cFv1qKYpaZnv8Bl6xmZoOsG_F8_40gRZqIhz5hF9puzp8lEEhMlZ6NaX2Y2OYkwHcOBBpCIXpLXB4CMWiefUEWjO9zKDd5JJwZ4vLWeT4qgwvPfRqE60B33tzVlF5E6OA2mKK17sGRXsfrI9obEjL52RMdGo_9bv1HnHfvPlbj5ihj6d_5iTtoh7HUC_X8CrJGvkgkCjP_7of1jPb5QgJ9nx_Yfsxj3vf8zEseZIVISjF3MwBzW7Di4CpfQl4wlnpkQO9MKu78F69Z9Ig
      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: '2018-11-27T06:26:29.761Z'
            description: Date-time from which the financial information is requested
            xml:
              attribute: true
          to:
            type: string
            format: date-time
            example: '2018-12-27T06:26:29.761Z'
            description: Date-time till which the financial information is requested
            xml:
              attribute: true
  FipFIResponse:
    type: object
    required:
      - consentId
      - sessionId
    description: >-
      Session id and other details to fetch the financial information.
    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 FIP returns to the AA 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	  
  FIFetchResponseEncryptedData:
    description: >-
      A response of encrypted financial information sent to the requesting AA
      for passing to a customer or a FIU
    required:
      - FI
    type: object
    properties:
      FI:
        type: array
        description: >-
          Contains the account-specific metadata with corresponding encrypted
          data for accessing the financial information
        items:
          type: object
          required:
            - fipID
            - data
            - KeyMaterial
          properties:
            fipID:
              type: string
              description: FIP ID as defined in the Account Aggregator Ecosystem.
              example: FIP-1
            data:
              type: array
              items:
                type: object
                required:
                  - linkRefNumber
                  - maskedAccNumber
                  - encryptedFI
                properties:
                  linkRefNumber:
                    type: string
                    description: Reference number assigned by FIP as part of Account Linking Process.
                    example: XXXX-XXXX-XXXX
                  maskedAccNumber:
                    type: string
                    description: Masked account number
                    example: XXXXXXXX4020
                  
  
  FIPConsentStatusNotification:
      description: ''
      type: object
      required:
        - Notifier
        - ConsentStatusNotification
      properties:
        Notifier:
          type: object
          description: Information about the notifier entity.
          required:
            - type
            - id
          properties:
            type:
              type: string
              description: Type of the notifier entity
              example: AA
              xml:
                attribute: true
            id:
              type: string
              description: Unique ID to identify the entity
              example: AA_1
              xml:
                attribute: true
        ConsentStatusNotification:
          type: object
          description: Contains the Consent ID and Consent Status details.
          required:
            - consentId
            - consentStatus
          properties:
            consentId:
              type: string
              description: >-
                Unique ID generated by AA after consent approval is given by the customer.
              example: XXXX0-XXXX-XXXX
              xml:
                attribute: true
            consentStatus:
              type: string
              description: Specifies the status of consent artefact
              enum:
                - REVOKED
                - PAUSED
                - ACTIVE
                - EXPIRED
              example: REVOKED
              xml:
                attribute: true

     
  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
        example: ECDH
        description: >-
          Specifies the cryptographic standard algorithm used for
          encrypting/decrypting the financial information. Currently ECDH is a crypto algorithm that is supported
        xml:
          attribute: true
      curve:
        type: string
        example: Curve25519
        description: Describes a secure elliptic curve standard that is used to perform ECDH.
        enum:
          - Curve25519
          - X25519
        xml:
          attribute: true
      params:
        type: string
        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
        xml:
          attribute: true
      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: '2019-06-01T09:58:50.505Z'
            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
        example: 29512b70-ca84-46b5-9471-63765599cf15
        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.
        xml:
          attribute: true      
  FITypes:
    type: array
    minItems: 1
    items:
      type: string
      description: List of financial information types.
      example: DEPOSIT
      enum:
        - 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  
  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
  NotificationResponse:
        type: object
        properties:
            response:
              type: string
              example: "OK"
        xml:
            attribute: true
  Purpose:
    description: Purpose of the consent (Defined in 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          