{
  "openapi": "3.0.1",
  "info": {
    "title": "Open Banking (TPP)",
    "description": "\r\nThis is Open Banking API sandbox for **Third Party Payment Services Providers (TPPs)**.\r\n\r\nSatisfy <a href=\"https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html\" target=\"_blank\">PSD2</a> Compliance Requirements.\r\n",
    "contact": {
      "name": "IT Projects & Development Department",
      "url": "https://psd2.bkt.com.al",
      "email": "ApplicationSupport@bkt.com.al"
    },
    "version": "v1",
    "x-logo": {
      "url": "https://www.bkt.com.al/assets/uploads/logo.svg",
      "altText": "https://www.bkt.com.al/assets/uploads/logo.svg"
    }
  },
  "servers": [
    {
      "url": "/open-banking"
    }
  ],
  "paths": {
    "/api/v1/accounts": {
      "get": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Read account list",
        "description": "Read the identifiers of the available payment account together with \r\nbooking balance information, depending on the consent granted.\r\n            \r\nIt is assumed that a consent of the PSU to this access is already given and stored on the ASPSP system.\r\nThe addressed list of accounts depends then on the PSU ID and the stored consent addressed by consentId,\r\nrespectively the OAuth2 access token.\r\n\r\nReturns all identifiers of the accounts, to which an account access has been granted to through\r\nthe /consents endpoint by the PSU.\r\nIn addition, relevant information about the accounts and hyperlinks to corresponding account\r\ninformation resources are provided if a related consent has been already granted.\r\n\r\nRemark: Note that the /consents endpoint optionally offers to grant an access on all available\r\npayment accounts of a PSU. \r\nIn this case, this endpoint will deliver the information about all available payment accounts\r\nof the PSU at this ASPSP.",
        "parameters": [
          {
            "name": "WithBalance",
            "in": "query",
            "description": "If contained, this function reads the list of accessible payment accounts including the booking balance,\r\nif granted by the PSU in the related consent and available by the ASPSP.\r\nThis parameter might be ignored by the ASPSP.",
            "schema": {
              "type": "boolean",
              "example": false
            },
            "example": false
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Consent-ID",
            "in": "header",
            "description": "This then contains the consentId of the related AIS consent, which was performed prior to this payment initiation.",
            "schema": {
              "type": "string",
              "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
            },
            "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.Accounts.AISRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding HTTP request IP Address field between PSU and TPP.\r\nIt shall be contained if and only if this request was actively initiated by the PSU.",
            "schema": {
              "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "TThe forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "OK. In case, no account is accessible, the ASPSP shall return an empty array.\r\nAs this is also considered a positive response, the Response code must still be 200.",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountsListResponse"
                },
                "examples": {
                  "Example 1. With Balance and Transactions grant": {
                    "value": {"accounts":[{"resourceId":"7b0b23c6-1c5f-47c6-9231-d01a49159a73","iban":"AT611904300234573201","bban":null,"currency":"EUR","name":"Main Account","product":"Main Product","cashAccountType":"","bic":"NCBAALTXXXX","ownerName":"John Doe","balances":[{"balanceType":"forwardAvailable","balanceAmount":{"currency":"EUR","amount":"5877.78"},"creditLimitIncluded":false}],"_links":{"balances":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"},"transactions":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"}}}]}
                  },
                  "Example 2. With Balance grant": {
                    "value": {"accounts":[{"resourceId":"78a707a2-c57f-444c-a9b9-c3291ddd6472","iban":"AT611904300234573201","bban":null,"currency":"EUR","name":"Main Account","product":"Main Product","cashAccountType":"","bic":"NCBAALTXXXX","ownerName":"John Doe","balances":[{"balanceType":"forwardAvailable","balanceAmount":{"currency":"EUR","amount":"5877.78"},"creditLimitIncluded":false}],"_links":{"balances":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"}}}]}
                  },
                  "Example 3. With Transactions grant": {
                    "value": {"accounts":[{"resourceId":"5b0e7c3b-a23a-4f16-964f-636fe8f4d59c","iban":"AT611904300234573201","bban":null,"currency":"EUR","name":"Main Account","product":"Main Product","cashAccountType":"","bic":"NCBAALTXXXX","ownerName":"John Doe","_links":{"transactions":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"}}}]}
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetListOfAccountsBadResponseExamplesDto"
                },
                "example": {"responseCode":400,"responseMessage":"One or more validation errors occurred.","responseType":"InvalidRequest","result":{"customerNumber":["CustomerNumber is required.","CustomerNumber should be not empty."]}}
              }
            }
          },
          "500": {
            "description": "Server Error",
            "headers": {
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetListOfAccountsErrorResponseExampleDto"
                },
                "example": {"responseCode":500,"responseMessage":"One or more errors occurred. (We have identified an unexpected error on our side.)","responseType":"InternalServerError","result":null}
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/accounts/{account-id}": {
      "get": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Read account details.",
        "description": "Reads details about an account, with balances where required.\r\nIt is assumed that a consent of the PSU to this access is already given and stored on the ASPSP system.\r\n            \r\n<b>NOTE:</b> The account-id can represent a multicurrency account. In this case the currency code is set to \"XXX\".\r\n            \r\nGive detailed information about the addressed account.\r\n\r\nGive detailed information about the addressed account together with balance information",
        "parameters": [
          {
            "name": "account-id",
            "in": "path",
            "description": "This identification is denoting the addressed account.\r\nThe account-id is retrieved by using a \"Read Account List\" call.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WithBalance",
            "in": "query",
            "description": "If contained, this function reads the list of accessible payment accounts including the booking balance,\r\nif granted by the PSU in the related consent and available by the ASPSP.\r\nThis parameter might be ignored by the ASPSP.",
            "schema": {
              "type": "boolean",
              "example": false
            },
            "example": false
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Consent-ID",
            "in": "header",
            "description": "This then contains the consentId of the related AIS consent, which was performed prior to this payment initiation.",
            "schema": {
              "type": "string",
              "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
            },
            "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.Accounts.AISRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding HTTP request IP Address field between PSU and TPP.\r\nIt shall be contained if and only if this request was actively initiated by the PSU.",
            "schema": {
              "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "TThe forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAccountByIdResponse"
                },
                "examples": {
                  "Example 1. With Balance and Transactions grant": {
                    "value": {"account":{"resourceId":"cc7f42af-4094-4494-9e96-9a281f784a48","iban":"AT611904300234573201","bban":null,"currency":"EUR","name":null,"ownerName":"John Doe","ownerNames":null,"product":"Main Product","cashAccountType":"","status":"enabled","bic":"NCBAALTXXXX","_links":{"balances":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"},"transactions":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"}}}}
                  },
                  "Example 2. With Balance grant": {
                    "value": {"account":{"resourceId":"bd6258b1-1b9a-4ebe-81ea-e0d44c8c6164","iban":"AT611904300234573201","bban":null,"currency":"EUR","name":null,"ownerName":"John Doe","ownerNames":null,"product":"Main Product","cashAccountType":"","status":"enabled","bic":"NCBAALTXXXX","_links":{"balances":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"}}}}
                  },
                  "Example 3. With Transactions grant": {
                    "value": {"account":{"resourceId":"364210f0-a6e5-411d-9593-58aaa00bea19","iban":"AT611904300234573201","bban":null,"currency":"EUR","name":null,"ownerName":"John Doe","ownerNames":null,"product":"Main Product","cashAccountType":"","status":"enabled","bic":"NCBAALTXXXX","_links":{"transactions":{"href":"/psd2/v1/accounts/3dc3d5b3-7023-4848-9853-f5400a64e80e/balances"}}}}
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountOverview400ResponseExamples"
                },
                "example": {"responseCode":400,"responseMessage":"One or more validation errors occurred.","responseType":"InvalidRequest","result":{"customerNumber":["CustomerNumber is required."]}}
              }
            }
          },
          "500": {
            "description": "Server Error",
            "headers": {
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountOverviewErrorResponseExample"
                },
                "example": {"responseCode":500,"responseMessage":"One or more errors occurred. (We have identified an unexpected error on our side.)","responseType":"InternalServerError","result":null}
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/accounts/{account-id}/transactions": {
      "get": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Read transaction list of an account.",
        "description": "Read transaction reports or transaction lists of a given account addressed by \"account-id\",\r\ndepending on the steering parameter \"bookingStatus\" together with balances.\r\n            \r\nFor a given account, additional parameters are e.g. the attributes \"dateFrom\" and \"dateTo\".\r\nThe ASPSP might add balance information, if transaction lists without balances are not supported.",
        "parameters": [
          {
            "name": "account-id",
            "in": "path",
            "description": "This identification is denoting the addressed account.\r\nThe account-id is retrieved by using a \"Read Account List\" call.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WithBalance",
            "in": "query",
            "description": "If contained, this function reads the list of accessible payment accounts including the booking balance,\r\nif granted by the PSU in the related consent and available by the ASPSP.\r\nThis parameter might be ignored by the ASPSP.",
            "schema": {
              "type": "boolean",
              "example": false
            },
            "example": false
          },
          {
            "name": "dateFrom",
            "in": "query",
            "description": "Conditional: Starting date (inclusive the date dateFrom) of the transaction list,\r\nmandated if no delta access is required and if bookingStatus does not equal \"information\".\r\n<br />\r\nFor booked transactions, the relevant date is the booking date.\r\n<br />\r\nFor pending transactions, the relevant date is the entry date,\r\nwhich may not be transparent neither in this API nor other channels of the ASPSP.",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2024-03-20"
            },
            "example": "2024-03-20"
          },
          {
            "name": "dateTo",
            "in": "query",
            "description": "End date (inclusive the data dateTo) of the transaction list, default is \"now\" if not given.\r\n<br />\r\nMight be ignored if a delta function is used.\r\n<br />\r\nFor booked transactions, the relevant date is the booking date.\r\n<br />\r\nFor pending transactions, the relevant date is the entry date, which may not be transparent neither in this API nor other channels of the ASPSP.",
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2024-03-25"
            },
            "example": "2024-03-25"
          },
          {
            "name": "entryReferenceFrom",
            "in": "query",
            "description": "This data attribute is indicating that the AISP is in favour to get all transactions after the transaction with identification entryReferenceFrom\r\nalternatively to the above defined period.\r\nThis is a implementation of a delta access.\r\nIf this data element is contained, the entries \"dateFrom\" and \"dateTo\" might be ignored by the ASPSP if a delta report is supported.\r\n\r\nOptional if supported by API provider",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingStatus ",
            "in": "query",
            "description": "Permitted codes are\r\n* booked\r\n* pending\r\n* both\r\n* information\r\n* all\r\n\r\n\"booked\" shall be supported by the ASPSP. \r\nTo support the \"pending\" and \"both\" feature is optional for the ASPSP,\r\nError code if not supported in the online banking frontend.\r\nIf supported, \"both\" means to request transaction reports of transaction of bookingStatus either \"pending\" or \"booked\".\r\nTo support the \"information\" feature is optional for the ASPSP.\r\nCurrently the booking status “information” only covers standing orders.\r\nError code if not supported.\r\nTo support the \"all\" feature is optional for the ASPSP, Error code if not supported.\r\nIf supported, \"all\" means to request transaction reports of transaction of any bookingStatus (\"pending\", \"booked\" or \"information\").",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/BookingStatus"
            }
          },
          {
            "name": "deltaList",
            "in": "query",
            "description": "This data attribute is indicating that the AISP is in favour to get all transactions\r\nafter the last report access for this PSU on the addressed account.\r\nThis is another implementation of a delta access-report.\r\nThis delta indicator might be rejected by the ASPSP if this function is not supported.\r\nOptional if supported by API provider",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Consent-ID",
            "in": "header",
            "description": "This then contains the consentId of the related AIS consent, which was performed prior to this payment initiation.",
            "schema": {
              "type": "string",
              "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
            },
            "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.Accounts.AISRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding HTTP request IP Address field between PSU and TPP.\r\nIt shall be contained if and only if this request was actively initiated by the PSU.",
            "schema": {
              "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "TThe forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetListOfTransactionsResponse"
                },
                "examples": {
                  "Example 1.": {
                    "value": {"account":{"iban":"AL4820511014241481CLPECFEUR0","bban":"401241481CLPECFEUR06","currency":"EUR"},"transactions":{"booked":[{"bookingDate":"2017-10-25","transactionId":"f2b8b56a-1ffc-4609-a553-87f8691d2b11","creditorName":"John Smith","creditorAccount":{"iban":"AL5920511014241481CLPECLALLA","bban":"401241481CLPECLALLAZ","currency":"ALL"},"transactionAmount":{"currency":"EUR","amount":"250"},"valueDate":"2017-10-26"},{"bookingDate":"2017-10-25","transactionId":"60131be4-f707-4adb-9d2d-5860a7a4977c","creditorAccount":{"iban":"AL1020511014241481CLPECFUSDN","bban":"401241481CLPECFUSDNT","currency":"USD"},"debtorName":"Sebastian Moore","transactionAmount":{"currency":"EUR","amount":"25"},"valueDate":"2017-10-26"}],"pending":null}}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/consents": {
      "post": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Create consent.",
        "description": "This method create a consent resource, defining access rights to dedicated accounts of a given PSU-ID.\r\nThese accounts are addressed explicitly in the method as parameters as a core function.\r\n            \r\n**Side Effects** When this consent request is a request where the \"recurringIndicator\" equals \"true\",\r\nand if it exists already a former consent for recurring access on account information for the addressed PSU,\r\nthen the former consent automatically expires as soon as the new consent request is authorised by the PSU.\r\n\r\nOptional Extension: As an option, an ASPSP might optionally accept a specific access right on the access on all PSD2 related services for all available accounts.\r\n\r\nAs another option an ASPSP might optionally also accept a command, where only access rights are inserted without mentioning the addressed account.\r\nThe relation to accounts is then handled afterwards between PSU and ASPSP. This option is not supported for the Embedded SCA Approach.\r\nAs a last option, an ASPSP might in addition accept a command with access rights\r\n\r\n* to see the list of available payment accounts or\r\n* to see the list of available payment accounts with balances.",
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.AccountInformationService.CreateConsents.CreateConsentRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-ID",
            "in": "header",
            "description": "Client ID of the PSU in the ASPSP client interface.\r\n\r\nMight be mandated in the ASPSP's documentation.\r\n\r\nIt might be contained even if an OAuth2 based authentication was performed in a pre-step or an OAuth2 based SCA was performed in an preceding AIS service in the same session.\r\nIn this case the ASPSP might check whether PSU-ID and token match, according to ASPSP documentation.",
            "schema": {
              "type": "string",
              "example": "PSU-1234"
            },
            "example": "PSU-1234"
          },
          {
            "name": "PSU-ID-Type",
            "in": "header",
            "description": "Type of the PSU-ID, needed in scenarios where PSUs have several PSU-IDs as access possibility.\r\n\r\nIn this case, the mean and use are then defined in the ASPSP’s documentation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation. Only used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID-Type",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation. Only used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Redirect-Preferred",
            "in": "header",
            "description": "If it equals \"true\", the TPP prefers a redirect over an embedded SCA approach.\r\nIf it equals \"false\", the TPP prefers not to be redirected for SCA.\r\nThe ASPSP will then choose between the Embedded or the Decoupled SCA approach,\r\ndepending on the parameter TPP-Decoupled-Preferred and the choice of the SCA procedure by the TPP/PSU.\r\nIf the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Decoupled-Preferred",
            "in": "header",
            "description": "If it equals \"true\", the TPP prefers a decoupled SCA approach.\r\nIf it equals \"false\", the TPP prefers not to use the decoupled approach for SCA.\r\nThe ASPSP will then choose between the embedded or the redirect SCA approach, depending on the choice of the SCA procedure by the TPP/PSU.\r\nIf the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the parameter TPP-Redirect-Preferred and the SCA method chosen by the TPP/PSU.\r\nThe parameter might be ignored by the ASPSP. If both parameters TPP-Redirect-Preferred and TPP-Decoupled-Preferred are present and true,\r\nthe request is still not rejected, but it is up to the ASPSP, which approach will actually be used.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Redirect-URI",
            "in": "header",
            "description": "URI of the TPP, where the transaction flow shall be redirected to after a Redirect.\r\n\r\nMandated for the Redirect SCA Approach, specifically when TPP-Redirect-Preferred equals \"true\".\r\nIt is recommended to always use this header field.\r\n\r\n**Remark for Future:** This field might be changed to mandatory in the next version of the specification.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Explicit-Authorisation-Preferred",
            "in": "header",
            "description": "If it equals \"true\", the TPP prefers to start the authorisation process separately,\r\ne.g.because of the usage of a signing basket.This preference might be ignored by the ASPSP, if a signing basket is not supported as functionality.\r\n\r\nIf it equals \"false\" or if the parameter is not used, there is no preference of the TPP.\r\nThis especially indicates that the TPP assumes a direct authorisation of the transaction in the next step, without using a signing basket.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Brand-Logging-Information",
            "in": "header",
            "description": "This header might be used by TPPs to inform the ASPSP about the brand used by the TPP towards the PSU.\r\nThis information is meant for logging entries to enhance communication between ASPSP and PSU or ASPSP and TPP. This header might be ignored by the ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Notification-URI",
            "in": "header",
            "description": "URI for the Endpoint of the TPP-API to which the status of the payment initiation should be sent. This header field may by ignored by the ASPSP.\r\n\r\nFor security reasons, it shall be ensured that the TPP-Notification-URI as introduced above is secured by the TPP eIDAS QWAC used for identification of the TPP.\r\nThe following applies:\r\n\r\nURIs which are provided by TPPs in TPP-Notification-URI shall comply with the domain secured by the eIDAS QWAC certificate of the TPP in the field CN or\r\nSubjectAltName of the certificate.\r\nPlease note that in case of example-TPP.com as certificate entry TPP- Notification-URI like\r\nwww.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction- id/notifications\r\nor notifications.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction- id/notifications would be compliant.\r\n\r\nWildcard definitions shall be taken into account for compliance checks by the ASPSP.\r\nASPSPs may respond with ASPSP-Notification-Support set to false, if the provided URIs do not comply.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Notification-Content-Preferred",
            "in": "header",
            "description": "The string has the form\r\n\r\nstatus=X1, ..., Xn\r\n\r\nwhere Xi is one of the constants SCA, PROCESS, LAST and where constants are not repeated. The usage of the constants supports the of following semantics:\r\n\r\nSCA: A notification on every change of the scaStatus attribute for all related authorisation processes is preferred by the TPP.\r\n\r\nPROCESS: A notification on all changes of consentStatus or transactionStatus attributes is preferred by the TPP.\r\n\r\nLAST: Only a notification on the last consentStatus or transactionStatus as available in the XS2A interface is preferred by the TPP.\r\n\r\nThis header field may be ignored, if the ASPSP does not support resource notification services for the related TPP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "requestBody": {
          "description": "JSON request body for a consents request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConsentRequestBody"
              },
              "examples": {
                "Example 1.": {
                  "summary": "Example 1",
                  "description": "Consent Request on Dedicated Accounts",
                  "value": {"access":{"balances":[{"iban":"AL9820542146036508CLIDCFAUDP"},{"iban":"AL4420542146036508CLIDCLALL5"},{"iban":"AL7120542146036508CLIDCLALL4","currency":"ALL"}],"transactions":[{"iban":"AL9820542146036508CLIDCFAUDP"},{"bban":"414036508CLIDCLALL48"}]},"recurringIndicator":true,"validUntil":"2024-12-12","frequencyPerDay":4}
                },
                "Example 2.": {
                  "summary": "Example 2",
                  "description": "Consent on account list of available accounts.",
                  "value": {"access":{"availableAccounts":"allAccounts"},"recurringIndicator":false,"validUntil":"2024-12-12","frequencyPerDay":4}
                },
                "Example 3.": {
                  "summary": "Example 3",
                  "description": "Consent request on account list or without indication of accounts.",
                  "value": {"access":{"balances":[],"transactions":[]},"recurringIndicator":false,"validUntil":"2024-12-12","frequencyPerDay":4}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateConsentResponse"
                },
                "examples": {
                  "Example": {
                    "summary": "Example",
                    "description": "Response in case of the OAuth2 approach with an implicit generated authorisation resource.",
                    "value": {"consentStatus":"received","consentId":"82c76e40-8854-491f-b35b-e3bc34b48733","_links":{"scaOAuth":{"href":"https://psd2-sandbox.bkt.com.al/identity-server/.well-known/openid-configuration"},"self":{"href":"/api/v1/accounts/consent/82c76e40-8854-491f-b35b-e3bc34b48733"},"status":{"href":"/api/v1/accounts/consent/82c76e40-8854-491f-b35b-e3bc34b48733/status"}}}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/consents/{consentId}": {
      "get": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Get consent.",
        "description": "Returns the content of an account information consent object.\r\nThis is returning the data for the TPP especially in cases, where the consent was directly managed between ASPSP and PSU e.g. in a redirect SCA Approach.",
        "parameters": [
          {
            "name": "consentId",
            "in": "path",
            "description": "ID of the corresponding consent object as returned by an account information consent request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
            },
            "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.AccountInformationService.GetConsent.GetConsentRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "Created",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetConsentResponse"
                },
                "examples": {
                  "Example 1.": {
                    "summary": "Example 1",
                    "description": "Consent request on account list or without indication of accounts.",
                    "value": {"access":{"balances":[{"iban":"AL9820542146036508CLIDCFAUDP"},{"iban":"AL4420542146036508CLIDCLALL5"},{"iban":"AL7120542146036508CLIDCLALL4","currency":"ALL"}],"transactions":[{"iban":"AL9820542146036508CLIDCFAUDP"},{"bban":"414036508CLIDCLALL48"}]},"recurringIndicator":true,"validUntil":"2024-12-12","frequencyPerDay":4,"lastActionDate":"0001-01-01","consentStatus":"received"}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Delete consent.",
        "description": "The TPP can delete an account information consent object if needed.",
        "parameters": [
          {
            "name": "consentId",
            "in": "path",
            "description": "ID of the corresponding consent object as returned by an account information consent request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
            },
            "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.AccountInformationService.DeleteConsent.DeleteConsentRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "204": {
            "description": "Created",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/consents/{consentId}/status": {
      "get": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Consent status.",
        "description": "Read the status of an account information consent resource.",
        "parameters": [
          {
            "name": "consentId",
            "in": "path",
            "description": "ID of the corresponding consent object as returned by an account information consent request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
            },
            "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.AccountInformationService.GetConsentStatus.GetConsentStatusRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "Created",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetConsentStatusResponse"
                },
                "examples": {
                  "Example 1.": {
                    "summary": "Example 1",
                    "description": "Response for a consent status request.",
                    "value": {"consentStatus":"received"}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/consents/{consentId}/authorisations": {
      "post": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Consent authorisation.",
        "description": "Create an authorisation sub-resource and start the authorisation process of a consent.\r\nThe message might in addition transmit authentication and authorisation related data.\r\n\r\nThis method is iterated n times for a n times SCA authorisation in a corporate context,\r\neach creating an own authorisation sub-endpoint for the corresponding PSU authorising the consent.\r\n\r\nThe ASPSP might make the usage of this access method unnecessary,\r\nsince the related authorisation resource will be automatically created by the ASPSP after the submission of the consent data with the first POST consents call.\r\n\r\nThe start authorisation process is a process which is needed for creating a new authorisation or cancellation sub-resource.\r\n\r\nThis applies in the following scenarios:\r\n\r\n* The ASPSP has indicated with an 'startAuthorisation' hyperlink in the preceding Payment initiation response\r\nthat an explicit start of the authorisation process is needed by the TPP.\r\nThe 'startAuthorisation' hyperlink can transport more information about data which needs to be uploaded by using the extended forms:\r\n    * 'startAuthorisationWithPsuIdentification',\r\n    * 'startAuthorisationWithPsuAuthentication'\r\n    * 'startAuthorisationWithEncryptedPsuAuthentication'\r\n    * 'startAuthorisationWithAuthentciationMethodSelection'\r\n* The related payment initiation cannot yet be executed since a multilevel SCA is mandated.\r\n* The ASPSP has indicated with an 'startAuthorisation' hyperlink in the preceding payment cancellation response\r\nthat an explicit start of the authorisation process is needed by the TPP.\r\nThe 'startAuthorisation' hyperlink can transport more information about data which needs to be uploaded by using the extended forms as indicated above.\r\n* The related payment cancellation request cannot be applied yet since a multilevel SCA is mandate for executing the cancellation.\r\n* The signing basket needs to be authorised yet.",
        "parameters": [
          {
            "name": "consentId",
            "in": "path",
            "description": "ID of the corresponding consent object as returned by an account information consent request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
            },
            "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.AccountInformationService.ConsentAuthorisation.ConsentAuthorisationRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-ID",
            "in": "header",
            "description": "Client ID of the PSU in the ASPSP client interface.\r\n\r\nMight be mandated in the ASPSP's documentation.\r\n\r\nIt might be contained even if an OAuth2 based authentication was performed in a pre-step or an OAuth2 based SCA was performed in an preceding AIS service in the same session.\r\nIn this case the ASPSP might check whether PSU-ID and token match, according to ASPSP documentation.",
            "schema": {
              "type": "string",
              "example": "PSU-1234"
            },
            "example": "PSU-1234"
          },
          {
            "name": "PSU-ID-Type",
            "in": "header",
            "description": "Type of the PSU-ID, needed in scenarios where PSUs have several PSU-IDs as access possibility.\r\n\r\nIn this case, the mean and use are then defined in the ASPSP’s documentation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation. Only used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID-Type",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation. Only used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Redirect-Preferred",
            "in": "header",
            "description": "If it equals \"true\", the TPP prefers a redirect over an embedded SCA approach.\r\nIf it equals \"false\", the TPP prefers not to be redirected for SCA.\r\nThe ASPSP will then choose between the Embedded or the Decoupled SCA approach,\r\ndepending on the parameter TPP-Decoupled-Preferred and the choice of the SCA procedure by the TPP/PSU.\r\nIf the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Redirect-URI",
            "in": "header",
            "description": "URI of the TPP, where the transaction flow shall be redirected to after a Redirect.\r\n\r\nMandated for the Redirect SCA Approach, specifically when TPP-Redirect-Preferred equals \"true\".\r\nIt is recommended to always use this header field.\r\n\r\n**Remark for Future:** This field might be changed to mandatory in the next version of the specification.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Nok-Redirect-URI",
            "in": "header",
            "description": "If this URI is contained, the TPP is asking to redirect the transaction flow to this address\r\ninstead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method.\r\nThis might be ignored by the ASPSP.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Notification-URI",
            "in": "header",
            "description": "URI for the Endpoint of the TPP-API to which the status of the payment initiation should be sent. This header field may by ignored by the ASPSP.\r\n\r\nFor security reasons, it shall be ensured that the TPP-Notification-URI as introduced above is secured by the TPP eIDAS QWAC used for identification of the TPP.\r\nThe following applies:\r\n\r\nURIs which are provided by TPPs in TPP-Notification-URI shall comply with the domain secured by the eIDAS QWAC certificate of the TPP in the field CN or SubjectAltName of the certificate.\r\nPlease note that in case of example-TPP.com as certificate entry TPP- Notification-URI like www.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction- id/notifications or notifications.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction- id/notifications would be compliant.\r\nWildcard definitions shall be taken into account for compliance checks by the ASPSP. ASPSPs may respond with ASPSP-Notification-Support set to false, if the provided URIs do not comply.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Notification-Content-Preferred",
            "in": "header",
            "description": "The string has the form status=X1, ..., Xn where Xi is one of the constants SCA, PROCESS, LAST and where constants are not repeated.\r\n\r\nThe usage of the constants supports the of following semantics:\r\n    SCA: A notification on every change of the scaStatus attribute for all related authorisation processes is preferred by the TPP.\r\n    PROCESS: A notification on all changes of consentStatus or transactionStatus attributes is preferred by the TPP.\r\n    LAST: Only a notification on the last consentStatus or transactionStatus as available in the XS2A interface is preferred by the TPP.\r\n   \r\nThis header field may be ignored, if the ASPSP does not support resource notification services for the related TPP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsentAuthorisationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/consents/{consentId}/authorisations/{authorisationId}": {
      "post": {
        "tags": [
          "AccountInformationService"
        ],
        "summary": "Read the SCA status of the consent authorisation.",
        "description": "This method returns the SCA status of a consent initiation's authorisation sub-resource.",
        "parameters": [
          {
            "name": "consentId",
            "in": "path",
            "description": "ID of the corresponding consent object as returned by an account information consent request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
            },
            "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
          },
          {
            "name": "authorisationId",
            "in": "path",
            "description": "ID of the corresponding consent object as returned by an account information consent request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
            },
            "example": "3b304df3-b762-487a-936a-ff8685c9c8b6"
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.AccountInformationService.GetConsentAuthorisationById.GetConsentAuthorisationByIdRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1234"
            },
            "example": "1234"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "Created",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetConsentAuthorisationByIdResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/funds-confirmations": {
      "post": {
        "tags": [
          "FundsConfirmationsService"
        ],
        "summary": "Confirmation of Funds Request.",
        "description": "Creates a confirmation of funds request at the ASPSP.\r\nChecks whether a specific amount is available at point of time of the request on an account linked to a given tuple card issuer(TPP)/card number,\r\nor addressed by IBAN and TPP respectively.",
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Consent-ID",
            "in": "header",
            "description": "This data element may be contained, if the payment initiation transaction is part of a session, i.e. combined AIS/PIS service.\r\nThis then contains the consentId of the related AIS consent, which was performed prior to this payment initiation.",
            "schema": {
              "type": "string",
              "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
            },
            "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "This field might be used in case where a consent was agreed between ASPSP and PSU through an OAuth2 based protocol, facilitated by the TPP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the \"Signature\" element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "The certificate used for signing the request, in base64 encoding. Must be contained if a signature is contained..",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          }
        ],
        "requestBody": {
          "description": "JSON Request body for the \"Confirmation of funds service\".",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckFundsConfirmationsRequestBody"
              },
              "examples": {
                "Example": {
                  "summary": "Example",
                  "description": "Request body for a confirmation of funds.",
                  "value": {"cardNumber":null,"account":{"bban":"401241481CLPECFUSDNT","pan":null,"maskedPan":null,"msisdn":null,"other":null,"currency":"USD","cashAccountType":null},"payee":null,"instructedAmount":{"currency":"USD","amount":"3"}}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              },
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckFundsConfirmationsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              },
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPayment400ResponseExamplesDto"
                },
                "example": {"responseCode":400,"responseMessage":"One or more validation errors occurred.","responseType":"InvalidRequest","result":{"amount":["Amount is required.","Amount should be not empty."],"currency":["Currency it is required.","Currency should be not empty.","Currency should be 3 characters.","Currency is not valid. Currency showld be format ISO 4217:2015."],"accountNumber":["AccountNumber is required.","AccountNumber should be not empty."],"accountBranch":["AccountBranch is required.","AccountBranch should be not empty."],"institutionCode":["InstitutionCode is required.","InstitutionCode should be not empty."],"productDescription":["ProductDescription is required.","InstitutionCode should be not empty."],"billNumber":["BillNumber is required.","BillNumber should be not empty."],"customerNumber":["CustomerNumber is required.","CustomerNumber should be not empty."],"mobileNumber":["MobileNumber is required.","MobileNumber should be not empty."]}}
              }
            }
          },
          "500": {
            "description": "Server Error",
            "headers": {
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              },
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPaymentErroresponseExamplesDto"
                },
                "example": {"responseCode":500,"responseMessage":"One or more errors occurred. (We have identified an unexpected error on our side.)","responseType":"InternalServerError","result":null}
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/transactions/{payment-service}/{payment-product}": {
      "post": {
        "tags": [
          "InitiatePaymentService"
        ],
        "summary": "Payment initiation.",
        "description": "This method is used to initiate a payment at the ASPSP.\r\n\r\n### Variants of payment initiation requests\r\n\r\nThis method to initiate a payment initiation at the ASPSP can be sent with either a JSON body or an pain.001 body depending on the payment product in the path.\r\n\r\n* There are the following **payment products:**\r\n    * **sepa-credit-transfers**\r\n        \r\nFurthermore the request body depends on the **payment-service:**\r\n\r\n* **payments**: A single payment initiation request.\r\n    \r\nThis is the first step in the API to initiate the related recurring/periodic payment.",
        "parameters": [
          {
            "name": "payment-service",
            "in": "path",
            "description": "Payment service.",
            "required": true,
            "schema": {
              "enum": [
                "payments"
              ],
              "type": "string",
              "example": "payments"
            },
            "example": "payments"
          },
          {
            "name": "payment-product",
            "in": "path",
            "description": "The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT).\r\nThe ASPSP will publish which of the payment products/endpoints will be supported.",
            "required": true,
            "schema": {
              "enum": [
                "sepa-credit-transfers"
              ],
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Consent-ID",
            "in": "header",
            "description": "This data element may be contained, if the payment initiation transaction is part of a session, i.e. combined AIS/PIS service.\r\nThis then contains the consentId of the related AIS consent, which was performed prior to this payment initiation.",
            "schema": {
              "type": "string",
              "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
            },
            "example": "354c3126-be8c-4bcb-8cc6-0c317b8efb30"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-ID",
            "in": "header",
            "description": "Client ID of the PSU in the ASPSP client interface.\r\nMight be mandated in the ASPSP's documentation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-ID-Type",
            "in": "header",
            "description": "Type of the PSU-ID, needed in scenarios where PSUs have several PSU-IDs as access possibility.\r\nIn this case, the mean and use are then defined in the ASPSP’s documentation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation.\r\nOnly used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID-Type",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation.\r\nOnly used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "required": true,
            "schema": {
              "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
              "type": "string"
            }
          },
          {
            "name": "TPP-Redirect-Preferred",
            "in": "header",
            "description": "If it equals true, the TPP prefers a redirect over an embedded SCA approach.\r\nIf it equals \"false\", the TPP prefers not to be redirected for SCA.\r\nThe ASPSP will then choose between the Embedded or the Decoupled SCA approach,\r\ndepending on the parameter TPP-Decoupled-Preferred and the choice of the SCA procedure by the TPP/PSU.\r\nIf the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Redirect-URI",
            "in": "header",
            "description": "URI of the TPP, where the transaction flow shall be redirected to after a Redirect.\r\n\r\nMandated for the Redirect SCA Approach, specifically when TPP-Redirect-Preferred equals \"true\". It is recommended to always use this header field.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Decoupled-Preferred",
            "in": "header",
            "description": "If it equals \"true\", the TPP prefers a decoupled SCA approach.\r\nIf it equals \"false\", the TPP prefers not to use the decoupled approach for SCA.\r\nThe ASPSP will then choose between the embedded or the redirect SCA approach, depending on the choice of the SCA procedure by the TPP/PSU.\r\nIf the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the parameter TPP-Redirect-Preferred and the SCA method chosen by the TPP/PSU\r\nThe parameter might be ignored by the ASPSP.\r\nIf both parameters TPP-Redirect-Preferred and TPP-Decoupled-Preferred are present and true,\r\nthe request is still not rejected, but it is up to the ASPSP, which approach will actually be used.\r\n\r\n**Remark for Future:** TPP-Redirect-Preferred and TPP-Decoupled-Preferred will be revised in future versions, maybe merged.\r\nCurrently kept separate for downward compatibility.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Nok-Redirect-URI",
            "in": "header",
            "description": "If this URI is contained, the TPP is asking to redirect the transaction flow to this address\r\ninstead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method.\r\nThis might be ignored by the ASPSP.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Explicit-Authorisation-Preferred",
            "in": "header",
            "description": "If it equals \"true\", the TPP prefers to start the authorization process separately, e.g. because of the usage of a signing basket.\r\nThis preference might be ignored by the ASPSP, if a signing basket is not supported as functionality.\r\n\r\nIf it equals \"false\" or if the parameter is not used, there is no preference of the TPP. \r\nhis especially indicates that the TPP assumes a direct authorisation of the transaction in the next step, without using a signing basket.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Rejection-NoFunds-Preferred",
            "in": "header",
            "description": "If it equals \"true\" then the TPP prefers a rejection of the payment initiation in case the ASPSP\r\nis providing an integrated confirmation of funds request an the result of this is that not sufficient funds are available.\r\n\r\nIf it equals \"false\" then the TPP prefers that the ASPSP is dealing with the payment initiation like in the ASPSPs online channel,\r\npotentially waiting for a certain time period for funds to arrive to initiate the payment.\r\n\r\nThis parameter might be ignored by the ASPSP.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Brand-Logging-Information",
            "in": "header",
            "description": "This header might be used by TPPs to inform the ASPSP about the brand used by the TPP towards the PSU.\r\nThis information is meant for logging entries to enhance communication between ASPSP and PSU or ASPSP and TPP.\r\nThis header might be ignored by the ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Notification-URI",
            "in": "header",
            "description": "URI for the Endpoint of the TPP-API to which the status of the payment initiation should be sent.\r\nThis header field may by ignored by the ASPSP.\r\nFor security reasons, it shall be ensured that the TPP-Notification-URI as introduced above is secured by the TPP eIDAS QWAC used for identification of the TPP.\r\n\r\nThe following applies:\r\nURIs which are provided by TPPs in TPP-Notification-URI shall comply with the domain secured by the eIDAS QWAC certificate\r\nof the TPP in the field CN or SubjectAltName of the certificate.\r\nPlease note that in case of example-TPP.com as certificate entry TPP- Notification-URI like\r\nwww.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction-id/notifications or\r\nnotifications.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction-id/notifications would be compliant.\r\n\r\nWildcard definitions shall be taken into account for compliance checks by the ASPSP.\r\nASPSPs may respond with ASPSP-Notification-Support set to false, if the provided URIs do not comply.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Notification-Content-Preferred",
            "in": "header",
            "description": "The string has the form status=X1, ..., Xn where Xi is one of the constants SCA, PROCESS, LAST and where constants are not repeated.\r\n\r\nThe usage of the constants supports the of following semantics:\r\n    SCA: A notification on every change of the scaStatus attribute for all related authorisation processes is preferred by the TPP.\r\n    PROCESS: A notification on all changes of consentStatus or transactionStatus attributes is preferred by the TPP.\r\n    LAST: Only a notification on the last consentStatus or transactionStatus as available in the XS2A interface is preferred by the TPP.\r\n   \r\nThis header field may be ignored, if the ASPSP does not support resource notification services for the related TPP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "123"
            },
            "example": "123"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "requestBody": {
          "description": "JSON request body for a payment initiation request message.",
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/InitiatePaymentRequestBody"
                  },
                  {
                    "$ref": "#/components/schemas/InitiatePeriodicPaymentRequestBody"
                  },
                  {
                    "$ref": "#/components/schemas/InitiateBulkPaymentRequestBody"
                  }
                ],
                "description": "JSON request body for a payment initiation request message."
              },
              "example": {"endToEndIdentification":null,"debtorAccount":{"bban":"401241481CLPECFUSDNT","currency":"USD"},"instructedAmount":{"currency":"EUR","amount":"3"},"creditorAccount":{"bban":"AL7520511014199430SAVAPEALLH","currency":"EUR"},"creditorAgent":null,"creditorAgentName":null,"creditorName":"CUSTOMER","creditorAddress":null,"chargeBearer":"debt","remittanceInformationUnstructured":null,"remittanceInformationUnstructuredArray":null,"remittanceInformationStructuredArray":null}
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              },
              "responseCode": {
                "description": "ID of the response by a code 200 for OK and 4xx for bad response",
                "schema": {
                  "type": "string",
                  "description": "ID of the response by a code 200 for OK and 4xx for bad response",
                  "format": ""
                }
              },
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiatePaymentResponse"
                },
                "example": {"transactionStatus":"rjct","paymentId":"dd3a7e7a-4ca4-4c3a-8854-080cee15c9d8","psuMessage":"Success"}
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              },
              "responseCode": {
                "description": "ID of the response by a code 200 for OK and 4xx for bad response",
                "schema": {
                  "type": "string",
                  "description": "ID of the response by a code 200 for OK and 4xx for bad response",
                  "format": ""
                }
              },
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPayment400ResponseExamplesDto"
                },
                "example": {"responseCode":400,"responseMessage":"One or more validation errors occurred.","responseType":"InvalidRequest","result":{"amount":["Amount is required.","Amount should be not empty."],"currency":["Currency it is required.","Currency should be not empty.","Currency should be 3 characters.","Currency is not valid. Currency showld be format ISO 4217:2015."],"accountNumber":["AccountNumber is required.","AccountNumber should be not empty."],"accountBranch":["AccountBranch is required.","AccountBranch should be not empty."],"institutionCode":["InstitutionCode is required.","InstitutionCode should be not empty."],"productDescription":["ProductDescription is required.","InstitutionCode should be not empty."],"billNumber":["BillNumber is required.","BillNumber should be not empty."],"customerNumber":["CustomerNumber is required.","CustomerNumber should be not empty."],"mobileNumber":["MobileNumber is required.","MobileNumber should be not empty."]}}
              }
            }
          },
          "500": {
            "description": "Server Error",
            "headers": {
              "X-Request-ID": {
                "description": "ID of the request, unique to the call, as determined by the initiating party.",
                "schema": {
                  "type": "string",
                  "description": "ID of the request, unique to the call, as determined by the initiating party.",
                  "format": ""
                }
              },
              "responseCode": {
                "description": "ID of the response by a code 200 for OK and 4xx for bad response",
                "schema": {
                  "type": "string",
                  "description": "ID of the response by a code 200 for OK and 4xx for bad response",
                  "format": ""
                }
              },
              "Location": {
                "description": "Location of the created resource.",
                "schema": {
                  "type": "string",
                  "description": "Location of the created resource.",
                  "format": ""
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPaymentErroresponseExamplesDto"
                },
                "example": {"responseCode":500,"responseMessage":"One or more errors occurred. (We have identified an unexpected error on our side.)","responseType":"InternalServerError","result":null}
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/transactions/{payment-service}/{payment-product}/{paymentId}/status": {
      "post": {
        "tags": [
          "InitiatePaymentService"
        ],
        "summary": "Payment initiation status.",
        "description": "Check the transaction status of a payment initiation.",
        "parameters": [
          {
            "name": "payment-service",
            "in": "path",
            "description": "Payment service.",
            "required": true,
            "schema": {
              "enum": [
                "payments"
              ],
              "type": "string",
              "example": "payments"
            },
            "example": "payments"
          },
          {
            "name": "payment-product",
            "in": "path",
            "description": "The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT).\r\nThe ASPSP will publish which of the payment products/endpoints will be supported.",
            "required": true,
            "schema": {
              "enum": [
                "sepa-credit-transfers"
              ],
              "type": "string"
            }
          },
          {
            "name": "paymentId",
            "in": "path",
            "description": "Resource identification of the generated payment initiation resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99391c7e-ad88-49ec-a2ad-99ddcb1f7721"
            },
            "example": "99391c7e-ad88-49ec-a2ad-99ddcb1f7721"
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the OpenBankingGateway.Models.Payment.PaymentStatus.PaymentStatusRequestHeaders.Signature element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "The certificate used for signing the request, in base64 encoding. Must be contained if a signature is contained.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.\r\nIf not available, the TPP shall use the IP Address used by the TPP when submitting this request.",
            "schema": {
              "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
              "type": "string"
            }
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "123"
            },
            "example": "123"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-User-Agent",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiatePaymentResponse"
                },
                "example": {"transactionStatus":"rjct","paymentId":"8aee41fd-7de2-4c19-9304-93a2bd175202","psuMessage":"Success"}
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPayment400ResponseExamplesDto"
                },
                "example": {"responseCode":400,"responseMessage":"One or more validation errors occurred.","responseType":"InvalidRequest","result":{"amount":["Amount is required.","Amount should be not empty."],"currency":["Currency it is required.","Currency should be not empty.","Currency should be 3 characters.","Currency is not valid. Currency showld be format ISO 4217:2015."],"accountNumber":["AccountNumber is required.","AccountNumber should be not empty."],"accountBranch":["AccountBranch is required.","AccountBranch should be not empty."],"institutionCode":["InstitutionCode is required.","InstitutionCode should be not empty."],"productDescription":["ProductDescription is required.","InstitutionCode should be not empty."],"billNumber":["BillNumber is required.","BillNumber should be not empty."],"customerNumber":["CustomerNumber is required.","CustomerNumber should be not empty."],"mobileNumber":["MobileNumber is required.","MobileNumber should be not empty."]}}
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPaymentErroresponseExamplesDto"
                },
                "example": {"responseCode":500,"responseMessage":"One or more errors occurred. (We have identified an unexpected error on our side.)","responseType":"InternalServerError","result":null}
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    },
    "/api/v1/transactions/{payment-service}/{payment-product}/{paymentId}/authorisations": {
      "post": {
        "tags": [
          "InitiatePaymentService"
        ],
        "summary": "Payment authorisation.",
        "description": "Start the authorisation process for a payment initiation.\r\n\r\nCreate an authorisation sub-resource and start the authorisation process.\r\nThe message might in addition transmit authentication and authorisation related data.\r\n\r\nThis method is iterated n times for a n times SCA authorisation in a corporate context,\r\neach creating an own authorisation sub-endpoint for the corresponding PSU authorising the transaction.\r\n\r\nThe ASPSP might make the usage of this access method unnecessary in case of only one SCA process needed,\r\nsince the related authorisation resource might be automatically created by the ASPSP after the submission of the payment data with the first\r\nPOST payments/{payment-product} call.\r\n\r\nThe start authorisation process is a process which is needed for creating a new authorisation or cancellation sub-resource.\r\n\r\nThis applies in the following scenarios:\r\n\r\n* The ASPSP has indicated with a 'startAuthorisation' hyperlink in the preceding Payment initiation response that an explicit start of the authorisation process is needed by the TPP.\r\nThe 'startAuthorisation' hyperlink can transport more information about data which needs to be uploaded by using the extended forms:\r\n    * 'startAuthorisationWithPsuIdentification'\r\n    * 'startAuthorisationWithPsuAuthentication'\r\n    * 'startAuthorisationWithEncryptedPsuAuthentication'\r\n    * 'startAuthorisationWithAuthentciationMethodSelection'\r\n* The related payment initiation cannot yet be executed since a multilevel SCA is mandated.\r\n* The ASPSP has indicated with a 'startAuthorisation' hyperlink in the preceding Payment cancellation response that an explicit start of the authorisation process is needed by the TPP.\r\nThe 'startAuthorisation' hyperlink can transport more information about data which needs to be uploaded by using the extended forms as indicated above.\r\n* The related payment cancellation request cannot be applied yet since a multilevel SCA is mandate for executing the cancellation.",
        "parameters": [
          {
            "name": "payment-service",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Payment service."
            }
          },
          {
            "name": "payment-product",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT).\r\nThe ASPSP will publish which of the payment products/endpoints will be supported."
            }
          },
          {
            "name": "paymentId",
            "in": "path",
            "description": "Resource identification of the generated payment initiation resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "99391c7e-ad88-49ec-a2ad-99ddcb1f7721"
            },
            "example": "99391c7e-ad88-49ec-a2ad-99ddcb1f7721"
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "description": "ID of the request, unique to the call, as determined by the initiating party.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
            },
            "example": "c66d0ad3-4089-4996-bd48-523ae3e484f7"
          },
          {
            "name": "PSU-ID",
            "in": "header",
            "description": "Client ID of the PSU in the ASPSP client interface.\r\n\r\nMight be mandated in the ASPSP's documentation.\r\nIt might be contained even if an OAuth2 based authentication was performed in a pre-step or an OAuth2 based SCA was performed in an preceding AIS service in the same session.\r\nIn this case the ASPSP might check whether PSU-ID and token match, according to ASPSP documentation.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "PSU-1234"
            },
            "example": "PSU-1234"
          },
          {
            "name": "PSU-ID-Type",
            "in": "header",
            "description": "Type of the PSU-ID, needed in scenarios where PSUs have several PSU-IDs as access possibility.\r\n\r\nIn this case, the mean and use are then defined in the ASPSP’s documentation.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation. Only used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Corporate-ID-Type",
            "in": "header",
            "description": "Might be mandated in the ASPSP's documentation. Only used in a corporate context.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Redirect-Preferred",
            "in": "header",
            "description": "If it equals \"true\", the TPP prefers a redirect over an embedded SCA approach.\r\nIf it equals \"false\", the TPP prefers not to be redirected for SCA.\r\nThe ASPSP will then choose between the Embedded or the Decoupled SCA approach,\r\ndepending on the parameter TPP-Decoupled-Preferred and the choice of the SCA procedure by the TPP/PSU.\r\nIf the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "TPP-Redirect-URI",
            "in": "header",
            "description": "URI of the TPP, where the transaction flow shall be redirected to after a Redirect.\r\n\r\nMandated for the Redirect SCA Approach, specifically when TPP-Redirect-Preferred equals \"true\".\r\nIt is recommended to always use this header field.\r\n\r\n**Remark for Future:** This field might be changed to mandatory in the next version of the specification.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Nok-Redirect-URI",
            "in": "header",
            "description": "If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI\r\nin case of a negative result of the redirect SCA method. This might be ignored by the ASPSP.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Notification-URI",
            "in": "header",
            "description": "URI for the Endpoint of the TPP-API to which the status of the payment initiation should be sent. This header field may by ignored by the ASPSP.\r\n\r\nFor security reasons, it shall be ensured that the TPP-Notification-URI as introduced above is secured by the TPP eIDAS QWAC used for identification of the TPP.\r\nThe following applies:\r\n\r\nURIs which are provided by TPPs in TPP-Notification-URI shall comply with the domain secured by the eIDAS QWAC certificate of the TPP in the field CN or SubjectAltName of the certificate.\r\nPlease note that in case of example-TPP.com as certificate entry TPP- Notification-URI like www.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction- id/notifications or notifications.example-TPP.com/xs2a-client/v1/ASPSPidentifcation/mytransaction- id/notifications would be compliant.\r\nWildcard definitions shall be taken into account for compliance checks by the ASPSP. ASPSPs may respond with ASPSP-Notification-Support set to false, if the provided URIs do not comply.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "TPP-Notification-Content-Preferred",
            "in": "header",
            "description": "The string has the form\r\n\r\nstatus=X1, ..., Xn\r\n\r\nwhere Xi is one of the constants SCA, PROCESS, LAST and where constants are not repeated. The usage of the constants supports the of following semantics:\r\n\r\n* SCA: A notification on every change of the scaStatus attribute for all related authorisation processes is preferred by the TPP.\r\n* PROCESS: A notification on all changes of consentStatus or transactionStatus attributes is preferred by the TPP.\r\n* LAST: Only a notification on the last consentStatus or transactionStatus as available in the XS2A interface is preferred by the TPP.\r\n\r\nThis header field may be ignored, if the ASPSP does not support resource notification services for the related TPP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Digest",
            "in": "header",
            "description": "Is contained if and only if the \"Signature\" element is contained in the header of the request.",
            "schema": {
              "type": "string",
              "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
            },
            "example": "SHA-256=hl1/Eps8BEQW58FJhDApwJXjGY4nr1ArGDHIT25vq6A="
          },
          {
            "name": "Signature",
            "in": "header",
            "description": "A signature of the request by the TPP on application level. This might be mandated by ASPSP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TPP-Signature-Certificate",
            "in": "header",
            "description": "The certificate used for signing the request, in base64 encoding. Must be contained if a signature is contained.",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "PSU-IP-Address",
            "in": "header",
            "description": "The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.",
            "schema": {
              "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
              "type": "string",
              "example": "192.168.8.78"
            },
            "example": "192.168.8.78"
          },
          {
            "name": "PSU-IP-Port",
            "in": "header",
            "description": "The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.",
            "schema": {
              "type": "string",
              "example": "1225"
            },
            "example": "1225"
          },
          {
            "name": "PSU-Accept",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Charset",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Encoding",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Accept-Language",
            "in": "header",
            "description": "The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "The forwarded Agent header field of the HTTP request between PSU and TPP, if available.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PSU-Http-Method",
            "in": "header",
            "description": "HTTP method used at the PSU ? TPP interface, if available. Valid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE",
            "schema": {
              "$ref": "#/components/schemas/PSUHttpMethod"
            }
          },
          {
            "name": "PSU-Device-ID",
            "in": "header",
            "description": "UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available.\r\nUUID identifies either a device or a device dependant application installation.\r\nIn case of an installation identification this ID needs to be unaltered until removal from device.",
            "schema": {
              "type": "string",
              "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
            },
            "example": "99435c7e-ad88-49ec-a2ad-99ddcb1f5555"
          },
          {
            "name": "PSU-Geo-Location",
            "in": "header",
            "description": "The forwarded Geo Location of the corresponding http request between PSU and TPP if available.",
            "schema": {
              "type": "string",
              "example": "GEO:52.506931;13.144558"
            },
            "example": "GEO:52.506931;13.144558"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiatePaymentResponse"
                },
                "example": {"transactionStatus":"rjct","paymentId":"955f8415-a162-4458-a325-201ba5e5df61","psuMessage":"Success"}
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPayment400ResponseExamplesDto"
                },
                "example": {"responseCode":400,"responseMessage":"One or more validation errors occurred.","responseType":"InvalidRequest","result":{"amount":["Amount is required.","Amount should be not empty."],"currency":["Currency it is required.","Currency should be not empty.","Currency should be 3 characters.","Currency is not valid. Currency showld be format ISO 4217:2015."],"accountNumber":["AccountNumber is required.","AccountNumber should be not empty."],"accountBranch":["AccountBranch is required.","AccountBranch should be not empty."],"institutionCode":["InstitutionCode is required.","InstitutionCode should be not empty."],"productDescription":["ProductDescription is required.","InstitutionCode should be not empty."],"billNumber":["BillNumber is required.","BillNumber should be not empty."],"customerNumber":["CustomerNumber is required.","CustomerNumber should be not empty."],"mobileNumber":["MobileNumber is required.","MobileNumber should be not empty."]}}
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoPaymentErroresponseExamplesDto"
                },
                "example": {"responseCode":500,"responseMessage":"One or more errors occurred. (We have identified an unexpected error on our side.)","responseType":"InternalServerError","result":null}
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "oauth2": [
              "role"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Account": {
        "type": "object",
        "properties": {
          "iban": {
            "pattern": "[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}",
            "type": "string",
            "description": "IBAN of the account.",
            "nullable": true
          },
          "bban": {
            "type": "string",
            "description": "Basic Bank Account Number (BBAN) Identifier.\r\n\r\nThis data element can be used in the body of the consent request.\r\nMessage for retrieving account access consent from this account.\r\nThis data elements is used for payment accounts which have no IBAN.\r\nISO20022: Basic Bank Account Number (BBAN).\r\n\r\nIdentifier used nationally by financial institutions,\r\ni.e., in individual countries, generally as part of a National Account Numbering Scheme(s),\r\nwhich uniquely identifies the account of a customer",
            "nullable": true
          },
          "pan": {
            "maxLength": 35,
            "type": "string",
            "description": "Primary Account Number according to ISO/IEC 7812.",
            "nullable": true,
            "example": "5409050000000000"
          },
          "maskedPan": {
            "maxLength": 35,
            "type": "string",
            "description": "Masked Primary Account Number.",
            "nullable": true,
            "example": "123456xxxxxx1234"
          },
          "msisdn": {
            "maxLength": 35,
            "type": "string",
            "description": "Mobile phone number.",
            "nullable": true,
            "example": "+355600000000"
          },
          "other": {
            "$ref": "#/components/schemas/AccountOtherTypeIdentifier"
          },
          "currency": {
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "Account Currency Code.",
            "nullable": true,
            "example": "EUR"
          },
          "cashAccountType": {
            "type": "string",
            "description": "ExternalCashAccountType1Code from ISO 20022.",
            "nullable": true,
            "example": "EUR"
          }
        },
        "additionalProperties": false,
        "description": "Reference to an account by either\r\n- IBAN, of a payment accounts, or\r\n- BBAN, for payment accounts if there is no IBAN, or\r\n- the Primary Account Number (PAN) of a card, can be tokenised by the ASPSP due to PCI DSS requirements, or\r\n- the Primary Account Number (PAN) of a card in a masked form, or\r\n- an alias to access a payment account via a registered mobile phone number (MSISDN)."
      },
      "AccountBalance": {
        "type": "object",
        "properties": {
          "balanceType": {
            "$ref": "#/components/schemas/BalanceType"
          },
          "balanceAmount": {
            "$ref": "#/components/schemas/BalanceAmount"
          },
          "creditLimitIncluded": {
            "type": "boolean",
            "description": "A flag indicating if the credit limit of the corresponding account is included in the calculation of the balance, where applicable.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Optional. Fetched list of balances only if the withBalance is requested in the query parameters and the consent has been granted."
      },
      "AccountDetails": {
        "required": [
          "currency"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "description": "This shall be filled, if addressable resource are created by the ASPSP on the /accounts endpoint.",
            "nullable": true
          },
          "iban": {
            "pattern": "[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}",
            "type": "string",
            "description": "IBAN of the account.",
            "nullable": true
          },
          "bban": {
            "type": "string",
            "description": "Basic Bank Account Number (BBAN) Identifier.\r\n\r\nThis data element can be used in the body of the consent request.\r\nMessage for retrieving account access consent from this account.\r\nThis data elements is used for payment accounts which have no IBAN.\r\nISO20022: Basic Bank Account Number (BBAN).\r\n\r\nIdentifier used nationally by financial institutions,\r\ni.e., in individual countries, generally as part of a National Account Numbering Scheme(s),\r\nwhich uniquely identifies the account of a customer",
            "nullable": true
          },
          "currency": {
            "minLength": 1,
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "Account Currency Code.",
            "example": "EUR"
          },
          "name": {
            "type": "string",
            "description": "Account name.",
            "nullable": true,
            "example": "Main Account"
          },
          "ownerName": {
            "type": "string",
            "description": "Name of the legal account owner.\r\nIf there is more than one owner, then e.g. two names might be noted here.\r\nFor a corporate account, the corporate name is used for this attribute.\r\nEven if supported by the ASPSP, the provision of this field might depend on the fact\r\nwhether an explicit consent to this specific additional account information has been given by the PSU.",
            "nullable": true,
            "example": "John Doe"
          },
          "ownerNames": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountOwner"
            },
            "description": "List of owner names.",
            "nullable": true
          },
          "product": {
            "type": "string",
            "description": "Product name of the bank for this account, proprietary definition.",
            "nullable": true
          },
          "cashAccountType": {
            "type": "string",
            "description": "ExternalCashAccountType1Code from ISO 20022.",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/AccountStatus"
          },
          "bic": {
            "type": "string",
            "description": "The BIC associated to the account.",
            "nullable": true
          },
          "_links": {
            "$ref": "#/components/schemas/AccountLinks"
          }
        },
        "additionalProperties": false,
        "description": "Account details object."
      },
      "AccountItem": {
        "required": [
          "currency"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "description": "This shall be filled, if addressable resource are created by the ASPSP on the /accounts or /card-accounts endpoint.",
            "nullable": true
          },
          "iban": {
            "type": "string",
            "description": "IBAN of the account.",
            "nullable": true
          },
          "bban": {
            "type": "string",
            "description": "Basic Bank Account Number (BBAN) Identifier.",
            "nullable": true
          },
          "currency": {
            "minLength": 1,
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "Account Currency Code.",
            "example": "EUR"
          },
          "name": {
            "type": "string",
            "description": "Account name.",
            "nullable": true,
            "example": "Main Account"
          },
          "product": {
            "type": "string",
            "description": "Product Name of the Bank for this account, proprietary definition.",
            "nullable": true,
            "example": "Main Product"
          },
          "cashAccountType": {
            "type": "string",
            "description": "",
            "nullable": true
          },
          "bic": {
            "type": "string",
            "description": "The BIC associated to the account.",
            "nullable": true
          },
          "ownerName": {
            "type": "string",
            "description": "Name of the legal account owner.\r\nIf there is more than one owner, then e.g. two names might be noted here.\r\nFor a corporate account, the corporate name is used for this attribute.\r\nEven if supported by the ASPSP, the provision of this field might depend on the fact\r\nwhether an explicit consent to this specific additional account information has been given by the PSU.",
            "nullable": true,
            "example": "John Doe"
          },
          "balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountBalance"
            },
            "description": "A list of balances regarding this account,\r\ne.g. the current balance, the last booked balance.\r\nThe list might be restricted to the current balance.",
            "nullable": true
          },
          "_links": {
            "$ref": "#/components/schemas/AccountLinks"
          }
        },
        "additionalProperties": false
      },
      "AccountLinks": {
        "type": "object",
        "properties": {
          "balances": {
            "$ref": "#/components/schemas/Link"
          },
          "transactions": {
            "$ref": "#/components/schemas/Link"
          }
        },
        "additionalProperties": false,
        "description": "\tLinks to the account, which can be directly used for retrieving account information from this dedicated account.\r\n\t\r\nLinks to \"balances\" and/or \"transactions\"\r\n\r\nThese links are only supported, when the corresponding consent has been already granted."
      },
      "AccountOtherTypeIdentifier": {
        "required": [
          "identification",
          "schemeNameCode"
        ],
        "type": "object",
        "properties": {
          "identification": {
            "maxLength": 35,
            "minLength": 1,
            "type": "string",
            "description": "Proprietary identification of the account."
          },
          "schemeNameCode": {
            "minLength": 1,
            "type": "string",
            "description": "An entry provided by an external ISO code list."
          },
          "schemeNameProprietary": {
            "maxLength": 35,
            "type": "string",
            "description": "A scheme name defined in a proprietary way.",
            "nullable": true
          },
          "issuer": {
            "maxLength": 35,
            "type": "string",
            "description": "Issuer of the identification.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "In cases where the specifically defined criteria (IBAN, BBAN, MSISDN)\r\nare not provided to identify an instance of the respective account type (e.g. a savings account),\r\nthe ASPSP shall include a proprietary ID of the respective account that uniquely identifies the account for this ASPSP."
      },
      "AccountOverview400ResponseExamples": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "integer",
            "format": "int32"
          },
          "responseMessage": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AccountOverviewErrorResponseExample": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "integer",
            "format": "int32"
          },
          "responseMessage": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AccountOwner": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Account owner name.",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/AccountOwnerRole"
          }
        },
        "additionalProperties": false,
        "description": "Identifies a Person that acts as an account owner"
      },
      "AccountOwnerRole": {
        "enum": [
          "owner",
          "legalRepresentative",
          "authorisedUser"
        ],
        "type": "string",
        "description": "The role of account owner"
      },
      "AccountReference": {
        "type": "object",
        "properties": {
          "iban": {
            "pattern": "[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}",
            "type": "string",
            "description": "IBAN of the account.",
            "nullable": true
          },
          "bban": {
            "type": "string",
            "description": "Basic Bank Account Number (BBAN) Identifier.\r\n\r\nThis data element can be used in the body of the consent request.\r\nMessage for retrieving account access consent from this account.\r\nThis data elements is used for payment accounts which have no IBAN.\r\nISO20022: Basic Bank Account Number (BBAN).\r\n\r\nIdentifier used nationally by financial institutions,\r\ni.e., in individual countries, generally as part of a National Account Numbering Scheme(s),\r\nwhich uniquely identifies the account of a customer",
            "nullable": true
          },
          "pan": {
            "maxLength": 35,
            "type": "string",
            "description": "Primary Account Number according to ISO/IEC 7812.",
            "nullable": true
          },
          "maskedPan": {
            "maxLength": 35,
            "type": "string",
            "description": "Masked Primary Account Number.",
            "nullable": true
          },
          "msisdn": {
            "maxLength": 35,
            "type": "string",
            "description": "Mobile phone number.",
            "nullable": true
          },
          "other": {
            "$ref": "#/components/schemas/OtherType"
          },
          "currency": {
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "Account Currency Code.",
            "nullable": true,
            "example": "EUR"
          },
          "cashAccountType": {
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "ExternalCashAccountType1Code from ISO 20022.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Reference to an account by either\r\n- IBAN, of a payment accounts, or\r\n- BBAN, for payment accounts if there is no IBAN, or\r\n- Not used by SDC the Primary Account Number(PAN) of a card, can be tokenised by the ASPSP due to PCI DSS requirements, or\r\n- Not used by SDC the Primary Account Number(PAN) of a card in a masked form, or\r\n- Not used by SDC an alias to access a payment account via a registered mobile phone number(MSISDN).\r\n- A payment account AccountReferenceOther when using a national payment Form."
      },
      "AccountStatus": {
        "enum": [
          "enabled",
          "deleted",
          "blocked"
        ],
        "type": "string",
        "description": "Account Status."
      },
      "AccountTransaction": {
        "type": "object",
        "properties": {
          "iban": {
            "pattern": "[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}",
            "type": "string",
            "description": "IBAN of the account.",
            "nullable": true
          },
          "bban": {
            "type": "string",
            "description": "Basic Bank Account Number (BBAN) Identifier.\r\n\r\nThis data element can be used in the body of the consent request.\r\nMessage for retrieving account access consent from this account.\r\nThis data elements is used for payment accounts which have no IBAN.\r\nISO20022: Basic Bank Account Number (BBAN).\r\n\r\nIdentifier used nationally by financial institutions,\r\ni.e., in individual countries, generally as part of a National Account Numbering Scheme(s),\r\nwhich uniquely identifies the account of a customer",
            "nullable": true
          },
          "pan": {
            "maxLength": 35,
            "type": "string",
            "description": "Primary Account Number according to ISO/IEC 7812.",
            "nullable": true
          },
          "maskedPan": {
            "maxLength": 35,
            "type": "string",
            "description": "Masked Primary Account Number.",
            "nullable": true
          },
          "msisdn": {
            "maxLength": 35,
            "type": "string",
            "description": "Mobile phone number.",
            "nullable": true
          },
          "other": {
            "$ref": "#/components/schemas/OtherType"
          },
          "currency": {
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "Account Currency Code.",
            "nullable": true,
            "example": "EUR"
          },
          "cashAccountType": {
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "ExternalCashAccountType1Code from ISO 20022.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Reference to an account by either\r\n- IBAN, of a payment accounts, or\r\n- BBAN, for payment accounts if there is no IBAN, or\r\n- Not used by SDC the Primary Account Number(PAN) of a card, can be tokenised by the ASPSP due to PCI DSS requirements, or\r\n- Not used by SDC the Primary Account Number(PAN) of a card in a masked form, or\r\n- Not used by SDC an alias to access a payment account via a registered mobile phone number(MSISDN).\r\n- A payment account AccountReferenceOther when using a national payment Form."
      },
      "AdditionalInformationAccess": {
        "type": "object",
        "properties": {
          "ownerName": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountReference"
            },
            "description": "Is asking for account owner name of the accounts referenced within.\r\nIf the array is empty in the request, the TPP is asking for the account owner name of all accessible accounts.\r\nThis may be restricted in a PSU/ASPSP authorization dialogue.\r\nIf the array is empty, also the arrays for accounts, balances or transactions shall be empty, if used.\r\nThe ASPSP will indicate in the consent resource after a successful authorisation,\r\nwhether the ownerName consent can be accepted by providing the accounts on which the ownerName will be delivered. This array can be empty.",
            "nullable": true
          },
          "trustedBeneficiaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountReference"
            },
            "description": "Optional if supported by API provider.\r\nIs asking for the trusted beneficiaries related to the accounts referenced within and related to the PSU.\r\nIf the array is empty in the request, the TPP is asking for the lists of trusted beneficiaries of all accessible accounts.\r\nThis may be restricted in a PSU/ASPSP authorization dialogue by the PSU if also the account lists addressed by the tags “accounts”, “balances” or “transactions” are empty.\r\nThe ASPSP will indicate in the consent resource after a successful authorisation,\r\nwhether the trustedBeneficiaries consent can be accepted by providing the accounts on which the list of trusted beneficiaries will be delivered.\r\nThis array can be empty.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Optional if supported by API provider.\r\n\r\nIs asking for additional information as added within this structured object.\r\nThe usage of this data element requires at least one of the entries \"accounts\", \"transactions\" or \"balances\" also to be contained in the object.\r\nIf detailed accounts are referenced, it is required in addition that any account addressed within the additionalInformation attribute\r\nis also addressed by at least one of the attributes \"accounts\", \"transactions\" or \"balances\"."
      },
      "Address": {
        "required": [
          "country"
        ],
        "type": "object",
        "properties": {
          "streetName": {
            "maxLength": 70,
            "type": "string",
            "description": "Street name.",
            "nullable": true
          },
          "buildingNumber": {
            "type": "string",
            "description": "Building Number.",
            "nullable": true
          },
          "townName": {
            "type": "string",
            "description": "Town Name.",
            "nullable": true,
            "example": "Paris"
          },
          "postalCode": {
            "type": "string",
            "description": "postal Code",
            "nullable": true,
            "example": "75000"
          },
          "country": {
            "minLength": 1,
            "pattern": "[A-Z]{2}",
            "type": "string",
            "description": "Country code.\r\n\r\nISO 3166 ALPHA2 country code. Is only required for Cross border payment",
            "example": "FR"
          }
        },
        "additionalProperties": false,
        "description": "Address"
      },
      "AmountModel": {
        "required": [
          "amount",
          "currency"
        ],
        "type": "object",
        "properties": {
          "currency": {
            "minLength": 1,
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "Currency Code.",
            "example": "EUR"
          },
          "amount": {
            "minLength": 1,
            "pattern": "-?[0-9]{1,14}(\\.[0-9]{1,3})?",
            "type": "string",
            "description": "The amount given with fractional digits, where fractions must be compliant to the currency definition.\r\nUp to 14 significant figures.\r\nNegative amounts are signed by minus. The decimal separator is a dot.\r\n\r\n**Example** Valid representations for EUR with up to two decimals are:\r\n* 1056\r\n* 5768.2\r\n* -1.50\r\n* 5877.78",
            "example": "5877.78"
          }
        },
        "additionalProperties": false,
        "description": "Base Model for amount."
      },
      "AvailableAccounts": {
        "enum": [
          "allAccounts",
          "allAccountsWithOwnerName"
        ],
        "type": "string",
        "description": ""
      },
      "BalanceAmount": {
        "required": [
          "amount",
          "currency"
        ],
        "type": "object",
        "properties": {
          "currency": {
            "minLength": 1,
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "Currency Code.",
            "example": "EUR"
          },
          "amount": {
            "minLength": 1,
            "type": "string",
            "description": "The amount given with fractional digits,\r\nwhere fractions must be compliant to the currency definition.\r\nUp to 14 significant figures.\r\nNegative amounts are signed by minus. The decimal separator is a dot.",
            "example": "5877.78"
          }
        },
        "additionalProperties": false,
        "description": "A single balance element. For showing in transalist will only be used for Booked transactions."
      },
      "BalanceType": {
        "enum": [
          "closingBooked",
          "expected",
          "openingBooked",
          "interimAvailable",
          "interimBooked",
          "forwardAvailable",
          "nonInvoiced"
        ],
        "type": "string"
      },
      "BookedTransaction": {
        "type": "object",
        "properties": {
          "bookingDate": {
            "type": "string",
            "description": "The date when an entry is posted to an account on the ASPSPs books",
            "nullable": true
          },
          "transactionId": {
            "type": "string",
            "description": "This identification is given by the attribute transactionId of the corresponding entry of a transaction list.",
            "nullable": true
          },
          "creditorName": {
            "type": "string",
            "description": "Creditor name.",
            "nullable": true
          },
          "creditorAccount": {
            "$ref": "#/components/schemas/AccountTransaction"
          },
          "debtorName": {
            "type": "string",
            "nullable": true
          },
          "debtorAccount": {
            "$ref": "#/components/schemas/AccountTransaction"
          },
          "transactionAmount": {
            "$ref": "#/components/schemas/AmountModel"
          },
          "valueDate": {
            "type": "string",
            "description": "The Date at which assets become available to the account owner in case of a credit.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BookingStatus": {
        "enum": [
          "booked",
          "pending",
          "both",
          "information",
          "all"
        ],
        "type": "string",
        "description": "BookingStatus"
      },
      "ChallengeData": {
        "type": "object",
        "properties": {
          "myProperty": {
            "type": "string",
            "description": "PNG data(max. 512 kilobyte) to be displayed to the PSU, Base64 encoding, cp. [RFC4648].\r\nThis attribute is used only, when PHOTO_OTP or CHIP_OTP is the selected SCA method.",
            "format": "byte",
            "nullable": true
          },
          "data": {
            "type": "string",
            "description": "A collection of strings as challenge data.",
            "nullable": true
          },
          "imageLink": {
            "type": "string",
            "description": "A link where the ASPSP will provides the challenge image for the TPP.",
            "format": "uri",
            "nullable": true
          },
          "otpMaxLength": {
            "type": "integer",
            "description": "The maximal length for the OTP to be typed in by the PSU.",
            "format": "int32",
            "nullable": true
          },
          "otpFormat": {
            "$ref": "#/components/schemas/OtpFormat"
          },
          "additionalInformation": {
            "type": "string",
            "description": "Additional explanation for the PSU to explain e.g. fallback mechanism for the chosen SCA method. The TPP is obliged to show this to the PSU",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "It is contained in addition to the data element 'chosenScaMethod' if challenge data is needed for SCA.\r\nIn rare cases this attribute is also used in the context of the 'startAuthorisationWithPsuAuthentication' link."
      },
      "ChargeBearer": {
        "enum": [
          "debt",
          "cred",
          "shar",
          "slev"
        ],
        "type": "string",
        "description": "Charge Bearer. ChargeBearerType1Code from ISO20022 only mandatory for Cross border"
      },
      "CheckFundsConfirmationsRequestBody": {
        "required": [
          "account",
          "instructedAmount"
        ],
        "type": "object",
        "properties": {
          "cardNumber": {
            "maxLength": 35,
            "type": "string",
            "description": "Optional\tCard Number of the card issued by the PIISP. Should be delivered if available.\r\n\r\nCard Number of the card issued by the PIISP. Should be delivered if available.",
            "nullable": true
          },
          "account": {
            "$ref": "#/components/schemas/Account"
          },
          "payee": {
            "maxLength": 70,
            "type": "string",
            "description": "Optional\tThe merchant where the card is accepted as an information to the PSU.\r\n\r\nName payee.",
            "nullable": true
          },
          "instructedAmount": {
            "$ref": "#/components/schemas/AmountModel"
          }
        },
        "additionalProperties": false,
        "description": "Request body for a confirmation of funds request."
      },
      "CheckFundsConfirmationsResponse": {
        "required": [
          "fundsAvailable"
        ],
        "type": "object",
        "properties": {
          "fundsAvailable": {
            "type": "boolean",
            "description": "Equals true if sufficient funds are available at the time of the request, false otherwise.\r\nThis data element is allways contained in a confirmation of funds response.\r\nThis data element is contained in a payment status response, if supported by the ASPSP,\r\nif a funds check has been performed and if the transactionStatus is \"ACTC\", \"ACWC\" or \"ACCP\"."
          }
        },
        "additionalProperties": false,
        "description": "Equals \"true\" if sufficient funds are available at the time of the request, \"false\" otherwise."
      },
      "ConsentAuthorisationResponse": {
        "required": [
          "authorisationId",
          "scaStatus"
        ],
        "type": "object",
        "properties": {
          "scaStatus": {
            "$ref": "#/components/schemas/ScaStatus"
          },
          "authorisationId": {
            "minLength": 1,
            "type": "string",
            "description": "Resource identification of the related SCA."
          },
          "scaMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScaMethod"
            },
            "description": "Authentication object.\r\nThis data element might be contained, if SCA is required and if the PSU has a choice between different authentication methods.\r\n\r\nDepending on the risk management of the ASPSP this choice might be offered before or after the PSU has been identified with the first relevant factor,\r\nor if an access token is transported.\r\n\r\nIf this data element is contained, then there is also a hyperlink of type 'startAuthorisationWithAuthenticationMethodSelection' contained in the response body.\r\n\r\nThese methods shall be presented towards the PSU for selection by the TPP.",
            "nullable": true
          },
          "chosenScaMethod": {
            "$ref": "#/components/schemas/ScaMethod"
          },
          "challengeData": {
            "$ref": "#/components/schemas/ChallengeData"
          },
          "psuMessage": {
            "maxLength": 500,
            "type": "string",
            "description": "Text to be displayed to the PSU.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of the JSON response for a Start SCA authorisation request."
      },
      "ConsentStatus": {
        "enum": [
          "received",
          "rejected",
          "valid",
          "revokedByPsu",
          "expired",
          "terminatedByTpp",
          "partiallyAuthorised"
        ],
        "type": "string",
        "description": "This is the overall lifecycle status of the consent."
      },
      "CreateAccountAccess": {
        "type": "object",
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountReference"
            },
            "description": "Is asking for detailed account information.\r\n\r\nIf the array is empty in a request, the TPP is asking for an accessible account list.\r\nThis may be restricted in a PSU/ASPSP authorization dialogue.\r\nIf the array is empty, also the arrays for balances, additionalInformation sub attributes or transactions shall be empty, if used.",
            "nullable": true
          },
          "balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountReference"
            },
            "description": "Is asking for balances of the addressed accounts.\r\n\r\nIf the array is empty in the request, the TPP is asking for the balances of all accessible account lists.\r\nThis may be restricted in a PSU/ASPSP authorization dialogue. If the array is empty, also the arrays for accounts,\r\nadditionalInformation sub attributes or transactions shall be empty, if used.",
            "nullable": true
          },
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountReference"
            },
            "description": "Is asking for transactions of the addressed accounts.\r\n\r\nIf the array is empty in the request, the TPP is asking for the balances of all accessible account lists.\r\nThis may be restricted in a PSU/ASPSP authorization dialogue. If the array is empty, also the arrays for accounts,\r\nadditionalInformation sub attributes or transactions shall be empty, if used.",
            "nullable": true
          },
          "additionalInformation": {
            "$ref": "#/components/schemas/AdditionalInformationAccess"
          },
          "availableAccounts": {
            "$ref": "#/components/schemas/AvailableAccounts"
          },
          "availableAccountsWithBalance": {
            "$ref": "#/components/schemas/AvailableAccounts"
          },
          "allPsd2": {
            "$ref": "#/components/schemas/AvailableAccounts"
          },
          "restrictedTo": {
            "$ref": "#/components/schemas/AvailableAccounts"
          }
        },
        "additionalProperties": false,
        "description": "Requested access services for a consent."
      },
      "CreateConsentRequestBody": {
        "required": [
          "access",
          "frequencyPerDay",
          "recurringIndicator",
          "validUntil"
        ],
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/CreateAccountAccess"
          },
          "recurringIndicator": {
            "type": "boolean",
            "description": "\"true\", if the consent is for recurring access to the account data.\r\n\r\n\"false\", if the consent is for one access to the account data.",
            "example": false
          },
          "validUntil": {
            "type": "string",
            "description": "This parameter is defining a valid until date (including the mentioned date) for the requested consent. \r\nThe content is the local ASPSP date in ISO-Date format, e.g. 2017-10-30.\r\n\r\nFuture dates might get adjusted by ASPSP.\r\n\r\nIf a maximal available date is requested, a date in far future is to be used: \"9999-12-31\".\r\n\r\nIn both cases the consent object to be retrieved by the get consent request will contain the adjusted date.",
            "format": "date",
            "example": "2024-12-31"
          },
          "frequencyPerDay": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "This field indicates the requested maximum frequency for an access without PSU involvement per day.\r\nFor a one-off access, this attribute is set to \"1\".\r\n\r\nThe frequency needs to be greater equal to one.\r\n\r\nIf not otherwise agreed bilaterally between TPP and ASPSP, the frequency is less equal to 4.",
            "format": "int32",
            "example": 4
          },
          "combinedServiceIndicator": {
            "type": "boolean",
            "description": "If \"true\" indicates that a payment initiation service will be addressed in the same \"session\".",
            "nullable": true,
            "example": false
          }
        },
        "additionalProperties": false,
        "description": "Request body for a consents request."
      },
      "CreateConsentResponse": {
        "required": [
          "consentStatus"
        ],
        "type": "object",
        "properties": {
          "consentStatus": {
            "$ref": "#/components/schemas/ConsentStatus"
          },
          "consentId": {
            "type": "string",
            "description": "ID of the corresponding consent object as returned by an account information consent request.",
            "nullable": true
          },
          "scaMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScaMethod"
            },
            "description": "This data element might be contained, if SCA is required and if the PSU has a choice between different authentication methods.\r\n\r\nDepending on the risk management of the ASPSP this choice might be offered before or after the PSU has been identified with the first relevant factor,\r\nor if an access token is transported.\r\n\r\nIf this data element is contained, then there is also a hyperlink of type 'startAuthorisationWithAuthenticationMethodSelection' contained in the response body.\r\n\r\nThese methods shall be presented towards the PSU for selection by the TPP.",
            "nullable": true
          },
          "challengeData": {
            "$ref": "#/components/schemas/ChallengeData"
          },
          "chosenScaMethod": {
            "$ref": "#/components/schemas/ScaMethod"
          },
          "psuMessage": {
            "maxLength": 500,
            "type": "string",
            "description": "Text to be displayed to the PSU.",
            "nullable": true
          },
          "_links": {
            "$ref": "#/components/schemas/LinksConsents"
          }
        },
        "additionalProperties": false,
        "description": "Body of the JSON response for a successful consent request."
      },
      "DoPayment400ResponseExamplesDto": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "integer",
            "format": "int32"
          },
          "responseMessage": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DoPaymentErroresponseExamplesDto": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "integer",
            "format": "int32"
          },
          "responseMessage": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetAccountByIdResponse": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/AccountDetails"
          }
        },
        "additionalProperties": false,
        "description": "Response model of get account by id request."
      },
      "GetAccountsListResponse": {
        "required": [
          "accounts"
        ],
        "type": "object",
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountItem"
            },
            "description": "List of accounts with details."
          }
        },
        "additionalProperties": false,
        "description": "List of accounts with details."
      },
      "GetConsentAuthorisationByIdResponse": {
        "required": [
          "scaStatus"
        ],
        "type": "object",
        "properties": {
          "scaStatus": {
            "$ref": "#/components/schemas/ScaStatus"
          },
          "psuMessage": {
            "maxLength": 500,
            "type": "string",
            "description": "Text to be displayed to the PSU.",
            "nullable": true
          },
          "psuName": {
            "maxLength": 140,
            "type": "string",
            "description": "Name of the PSU. In case of a corporate account, this might be the person acting on behalf of the corporate.",
            "nullable": true
          },
          "trustedBeneficiaryFlag": {
            "maxLength": 140,
            "type": "boolean",
            "description": "Name of the PSU. In case of a corporate account, this might be the person acting on behalf of the corporate.",
            "nullable": true
          },
          "tppMessage": {
            "$ref": "#/components/schemas/TppMessageGeneric"
          }
        },
        "additionalProperties": false,
        "description": "Body of the JSON response with SCA Status."
      },
      "GetConsentResponse": {
        "required": [
          "access",
          "consentStatus",
          "frequencyPerDay",
          "lastActionDate",
          "recurringIndicator",
          "validUntil"
        ],
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/CreateAccountAccess"
          },
          "recurringIndicator": {
            "type": "boolean",
            "description": "\"true\", if the consent is for recurring access to the account data.\r\n\r\n\"false\", if the consent is for one access to the account data.",
            "example": false
          },
          "validUntil": {
            "type": "string",
            "description": "This parameter is defining a valid until date (including the mentioned date) for the requested consent. \r\nThe content is the local ASPSP date in ISO-Date format, e.g. 2017-10-30.\r\n\r\nFuture dates might get adjusted by ASPSP.\r\n\r\nIf a maximal available date is requested, a date in far future is to be used: \"9999-12-31\".\r\n\r\nIn both cases the consent object to be retrieved by the get consent request will contain the adjusted date.",
            "format": "date",
            "example": "2024-12-31"
          },
          "frequencyPerDay": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "description": "This field indicates the requested maximum frequency for an access without PSU involvement per day.\r\nFor a one-off access, this attribute is set to \"1\".\r\n\r\nThe frequency needs to be greater equal to one.\r\n\r\nIf not otherwise agreed bilaterally between TPP and ASPSP, the frequency is less equal to 4.",
            "format": "int32",
            "example": 4
          },
          "lastActionDate": {
            "type": "string",
            "description": "This date is containing the date of the last action on the consent object either through the XS2A interface or the PSU/ASPSP interface having an impact on the status.",
            "format": "date",
            "example": "2024-07-01"
          },
          "consentStatus": {
            "$ref": "#/components/schemas/ConsentStatus"
          },
          "_links": {
            "$ref": "#/components/schemas/LinksGetConsents"
          }
        },
        "additionalProperties": false,
        "description": "Body of the JSON response for a successfull get consent request."
      },
      "GetConsentStatusResponse": {
        "required": [
          "consentStatus"
        ],
        "type": "object",
        "properties": {
          "consentStatus": {
            "$ref": "#/components/schemas/ConsentStatus"
          },
          "psuMessage": {
            "maxLength": 500,
            "type": "string",
            "description": "Text to be displayed to the PSU.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of the JSON response for a successful get status request for a consent."
      },
      "GetListOfAccountsBadResponseExamplesDto": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "integer",
            "format": "int32"
          },
          "responseMessage": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetListOfAccountsErrorResponseExampleDto": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "integer",
            "format": "int32"
          },
          "responseMessage": {
            "type": "string",
            "nullable": true
          },
          "responseType": {
            "type": "string",
            "nullable": true
          },
          "result": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetListOfTransactionsResponse": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/AccountTransaction"
          },
          "transactions": {
            "$ref": "#/components/schemas/GetListOfTransactionsResponseItem"
          }
        },
        "additionalProperties": false,
        "description": "Body of the JSON response for a successful read transaction list request.\r\nThis account report contains transactions resulting from the query parameters."
      },
      "GetListOfTransactionsResponseItem": {
        "type": "object",
        "properties": {
          "booked": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BookedTransaction"
            },
            "description": "Array of transaction details.",
            "nullable": true
          },
          "pending": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionListItem"
            },
            "description": "Array of transaction details.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InitiateBulkPaymentRequestBody": {
        "type": "object",
        "additionalProperties": false
      },
      "InitiatePaymentLinks": {
        "type": "object",
        "properties": {
          "scaRedirect": {
            "$ref": "#/components/schemas/Link"
          },
          "scaOAuth": {
            "$ref": "#/components/schemas/Link"
          },
          "confirmation": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisation": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithPsuIdentification": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithPsuAuthentication": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithAuthenticationMethodSelection": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithTransactionAuthorisation": {
            "$ref": "#/components/schemas/Link"
          },
          "self": {
            "$ref": "#/components/schemas/Link"
          },
          "scaStatus": {
            "$ref": "#/components/schemas/Link"
          },
          "status": {
            "$ref": "#/components/schemas/Link"
          }
        },
        "additionalProperties": false,
        "description": "A list of hyperlinks to be recognised by the TPP. The actual hyperlinks used in the response depend on the dynamical decisions of the ASPSP when processing the request.\r\n\r\n**Remark**: All links can be relative or full links, to be decided by the ASPSP.\r\n\r\nType of links admitted in this response, (further links might be added for ASPSP defined extensions):\r\n\r\n * 'scaRedirect': In case of an SCA Redirect Approach, the ASPSP is transmitting the link to which to redirect the PSU browser.\r\n * 'scaOAuth': In case of a SCA OAuth2 Approach, the ASPSP is transmitting the URI where the configuration of the Authorisation Server can be retrieved.The configuration follows the OAuth 2.0 Authorisation Server Metadata specification.\r\n * 'confirmation': Might be added by the ASPSP if either the \"scaRedirect\" or \"scaOAuth\" hyperlink is returned in the same response message. This hyperlink defines the URL to the resource which needs to be updated with\r\n    * a confirmation code as retrieved after the plain redirect authentication process with the ASPSP authentication server or\r\n    * an access token as retrieved by submitting an authorization code after the integrated OAuth based authentication process with the ASPSP authentication server.\r\n * 'startAuthorisationWithPsuIdentification': The link to the authorisation end-point, where the authorisation sub-resource has to be generated while uploading the PSU identification data.\r\n * 'startAuthorisationWithPsuAuthentication': The link to the authorisation end-point, where the authorisation sub-resource has to be generated while uploading the PSU authentication data.\r\n    * 'startAuthorisationWithEncryptedPsuAuthentication': Same as startAuthorisactionWithPsuAuthentication where the authentication data need to be encrypted on application layer in uploading.\r\n * 'startAuthorisationWithAuthenticationMethodSelection': The link to the authorisation end-point, where the authorisation sub-resource has to be generated while selecting the authentication method. This link is contained under exactly the same conditions as the data element \"scaMethods\".\r\n * 'startAuthorisationWithTransactionAuthorisation': The link to the authorisation end-point, where the authorisation sub-resource has to be generated while authorising the transaction e.g. by uploading an OTP received by SMS.\r\n * 'self': The link to the payment initiation resource created by this request. This link can be used to retrieve the resource data.\r\n * 'status': The link to retrieve the transaction status of the payment initiation.\r\n * 'scaStatus': The link to retrieve the scaStatus of the corresponding authorisation sub-resource. This link is only contained, if an authorisation sub-resource has been already created."
      },
      "InitiatePaymentRequestBody": {
        "required": [
          "creditorAccount",
          "creditorName",
          "debtorAccount",
          "instructedAmount"
        ],
        "type": "object",
        "properties": {
          "endToEndIdentification": {
            "maxLength": 35,
            "type": "string",
            "description": "End to End Identification.",
            "nullable": true
          },
          "debtorAccount": {
            "$ref": "#/components/schemas/AccountReference"
          },
          "instructedAmount": {
            "$ref": "#/components/schemas/AmountModel"
          },
          "creditorAccount": {
            "$ref": "#/components/schemas/AccountReference"
          },
          "creditorAgent": {
            "pattern": "[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}",
            "type": "string",
            "description": "Creditor Agent.",
            "nullable": true
          },
          "creditorAgentName": {
            "maxLength": 140,
            "type": "string",
            "description": "Creditor Agent Name",
            "nullable": true
          },
          "creditorName": {
            "maxLength": 70,
            "minLength": 1,
            "type": "string",
            "description": "Creditor Name"
          },
          "creditorAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "chargeBearer": {
            "$ref": "#/components/schemas/ChargeBearer"
          },
          "remittanceInformationUnstructured": {
            "maxLength": 140,
            "type": "string",
            "description": "Unstructured remittance information.",
            "nullable": true
          },
          "remittanceInformationUnstructuredArray": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Unstructured remittance information.",
            "nullable": true,
            "example": [
              "Ref Number Merchant",
              "Some Other Text"
            ]
          },
          "remittanceInformationStructuredArray": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemittanceInformationStructured"
            },
            "description": "Array of structured remittance information.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Generic Body for a payment initiation via JSON."
      },
      "InitiatePaymentResponse": {
        "required": [
          "_links",
          "paymentId",
          "transactionStatus"
        ],
        "type": "object",
        "properties": {
          "transactionStatus": {
            "$ref": "#/components/schemas/TransactionStatus"
          },
          "paymentId": {
            "minLength": 1,
            "type": "string",
            "description": "PaymentId",
            "example": "25ba82ce-b975-4f47-a2e9-9cac0ba27c82"
          },
          "transactionFees": {
            "$ref": "#/components/schemas/AmountModel"
          },
          "currencyConversionFee": {
            "$ref": "#/components/schemas/AmountModel"
          },
          "estimatedTotalAmount": {
            "$ref": "#/components/schemas/AmountModel"
          },
          "estimatedInterbankSettlementAmount": {
            "$ref": "#/components/schemas/AmountModel"
          },
          "transactionFeeIndicator": {
            "type": "boolean",
            "description": "If equals 'true', the transaction will involve specific transaction cost as shown by the ASPSP in their public price list or as agreed between ASPSP and PSU.\r\nIf equals 'false', the transaction will not involve additional specific transaction costs to the PSU unless the fee amount is given specifically in the data elements\r\ntransactionFees and/or currencyConversionFees.\r\nIf this data element is not used, there is no information about transaction fees unless the fee amount is given explicitly in the data element\r\ntransactionFees and/or currencyConversionFees.",
            "nullable": true
          },
          "scaMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScaMethod"
            },
            "description": "Authentication object.\r\nThis data element might be contained, if SCA is required and if the PSU has a choice between different authentication methods.\r\n\r\nDepending on the risk management of the ASPSP this choice might be offered before or after the PSU has been identified with the first relevant factor,\r\nor if an access token is transported.\r\n\r\nIf this data element is contained, then there is also a hyperlink of type 'startAuthorisationWithAuthenticationMethodSelection' contained in the response body.\r\n\r\nThese methods shall be presented towards the PSU for selection by the TPP.",
            "nullable": true
          },
          "chosenScaMethod": {
            "$ref": "#/components/schemas/ScaMethod"
          },
          "challengeData": {
            "$ref": "#/components/schemas/ChallengeData"
          },
          "psuMessage": {
            "maxLength": 500,
            "type": "string",
            "description": "Text to be displayed to the PSU.",
            "nullable": true
          },
          "_links": {
            "$ref": "#/components/schemas/InitiatePaymentLinks"
          },
          "tppMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TppMessage201PaymentInitiation"
            },
            "description": "TPP messages.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of the response for a successful payment initiation request."
      },
      "InitiatePeriodicPaymentRequestBody": {
        "type": "object",
        "additionalProperties": false
      },
      "Link": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "description": "href Entry.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Link to a resource."
      },
      "LinksConsents": {
        "type": "object",
        "properties": {
          "scaRedirect": {
            "$ref": "#/components/schemas/Link"
          },
          "scaOAuth": {
            "$ref": "#/components/schemas/Link"
          },
          "confirmation": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisation": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithPsuIdentification": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithPsuAuthentication": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithEncryptedPsuAuthentication": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithAuthenticationMethodSelection": {
            "$ref": "#/components/schemas/Link"
          },
          "startAuthorisationWithTransactionAuthorisation": {
            "$ref": "#/components/schemas/Link"
          },
          "self": {
            "$ref": "#/components/schemas/Link"
          },
          "status": {
            "$ref": "#/components/schemas/Link"
          },
          "scaStatus": {
            "$ref": "#/components/schemas/Link"
          }
        },
        "additionalProperties": false,
        "description": "\tA list of hyperlinks to be recognised by the TPP.\r\n\t\r\nType of links admitted in this response (which might be extended by single ASPSPs as indicated in its XS2A documentation):"
      },
      "LinksGetConsents": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/Link"
          },
          "card-account": {
            "$ref": "#/components/schemas/Link"
          }
        },
        "additionalProperties": false,
        "description": "A list of hyperlinks to be recognised by the TPP.\r\n\r\nLinks of type \"account\" and/or \"cardAccount\", depending on the nature of the consent."
      },
      "MessageCode201PaymentInitiation": {
        "enum": [
          "warning",
          "beneficiarY_WHITELISTING_REQUIRED"
        ],
        "type": "string",
        "description": "Message codes for HTTP Codes 201 to a Payment Initiation Request."
      },
      "OtherType": {
        "required": [
          "identification"
        ],
        "type": "object",
        "properties": {
          "identification": {
            "maxLength": 35,
            "minLength": 1,
            "type": "string",
            "description": "Proprietary identification of the account."
          },
          "schemeNameCode": {
            "maxLength": 35,
            "type": "string",
            "description": "An entry provided by an external ISO code list.",
            "nullable": true
          },
          "schemeNameProprietary": {
            "maxLength": 35,
            "type": "string",
            "description": "A scheme name defined in a proprietary way.",
            "nullable": true
          },
          "issuer": {
            "maxLength": 35,
            "type": "string",
            "description": "Issuer of the identification.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "In cases where the specifically defined criteria (IBAN, BBAN, MSISDN) are not provided to identify an instance of the respective account type\r\n(e.g. a savings account), the ASPSP shall include a proprietary ID of the respective account that uniquely identifies the account for this ASPSP."
      },
      "OtpFormat": {
        "enum": [
          "characters",
          "integer"
        ],
        "type": "string",
        "description": "The format type of the OTP to be typed in. The admitted values are \"characters\" or \"integer\"."
      },
      "PSUHttpMethod": {
        "enum": [
          "GET",
          "POST",
          "PUT",
          "PATCH",
          "DELETE"
        ],
        "type": "string",
        "description": "HTTP method used at the PSU ? TPP interface, if available.\r\n\r\nValid values are:\r\n* GET\r\n* POST\r\n* PUT\r\n* PATCH\r\n* DELETE"
      },
      "RemittanceInformationStructured": {
        "required": [
          "reference"
        ],
        "type": "object",
        "properties": {
          "reference": {
            "maxLength": 35,
            "minLength": 1,
            "type": "string"
          },
          "referenceType": {
            "maxLength": 35,
            "type": "string",
            "nullable": true
          },
          "referenceIssuer": {
            "maxLength": 35,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Structured remittance information."
      },
      "ScaAuthenticationType": {
        "enum": [
          "smS_OTP",
          "chiP_OTP",
          "photO_OTP",
          "pusH_OTP",
          "smtP_OTP"
        ],
        "type": "string",
        "description": "Type of the authentication method."
      },
      "ScaMethod": {
        "required": [
          "authenticationMethodId",
          "authenticationType"
        ],
        "type": "object",
        "properties": {
          "authenticationType": {
            "$ref": "#/components/schemas/ScaAuthenticationType"
          },
          "authenticationVersion": {
            "type": "string",
            "description": "Depending on the \"authenticationType\". This version can be used by differentiating authentication tools used within performing OTP generation in the same authentication type.\r\nThis version can be referred to in the ASPSP?s documentation.",
            "nullable": true
          },
          "authenticationMethodId": {
            "maxLength": 35,
            "minLength": 1,
            "type": "string",
            "description": "An identification provided by the ASPSP for the later identification of the authentication method selection."
          },
          "name": {
            "type": "string",
            "description": "This is the name of the authentication method defined by the PSU in the Online Banking frontend of the ASPSP.\r\nAlternatively this could be a description provided by the ASPSP like \"SMS OTP on phone +49160 xxxxx 28\".\r\nThis name shall be used by the TPP when presenting a list of authentication methods to the PSU, if available.",
            "nullable": true,
            "example": "SMS OTP on phone +49160 xxxxx 28"
          },
          "explanation": {
            "type": "string",
            "description": "Detailed information about the SCA method for the PSU.",
            "nullable": true,
            "example": "Detailed information about the SCA method for the PSU."
          }
        },
        "additionalProperties": false,
        "description": "Authentication object."
      },
      "ScaStatus": {
        "enum": [
          "received",
          "psuIdentified",
          "psuAuthenticated",
          "scaMethodSelected",
          "unconfirmed",
          "started",
          "finalised",
          "failed",
          "exempted"
        ],
        "type": "string",
        "description": "This data element is containing information about the status of the SCA method applied."
      },
      "TppMessage201PaymentInitiation": {
        "required": [
          "category",
          "code"
        ],
        "type": "object",
        "properties": {
          "category": {
            "$ref": "#/components/schemas/TppMessageCategory"
          },
          "code": {
            "$ref": "#/components/schemas/MessageCode201PaymentInitiation"
          },
          "text": {
            "maxLength": 500,
            "type": "string",
            "description": "Additional explaining text to the TPP.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Messages to display to TPP for 201 response code."
      },
      "TppMessageCategory": {
        "enum": [
          "error",
          "warning"
        ],
        "type": "string",
        "description": "Category of the TPP message category."
      },
      "TppMessageGeneric": {
        "required": [
          "category",
          "code"
        ],
        "type": "object",
        "properties": {
          "category": {
            "$ref": "#/components/schemas/TppMessageGenericCategory"
          },
          "code": {
            "minLength": 1,
            "type": "string",
            "description": "Code of the TPP message category."
          },
          "text": {
            "maxLength": 500,
            "type": "string",
            "description": "Additional explaining text to the TPP.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Messages to the TPP on operational issues."
      },
      "TppMessageGenericCategory": {
        "enum": [
          "error",
          "warning"
        ],
        "type": "string",
        "description": "Category of the TPP message category."
      },
      "TransactionListItem": {
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "string",
            "description": "This identification is given by the attribute transactionId of the corresponding entry of a transaction list.",
            "nullable": true
          },
          "creditorName": {
            "type": "string",
            "description": "Creditor name.",
            "nullable": true
          },
          "creditorAccount": {
            "$ref": "#/components/schemas/AccountTransaction"
          },
          "debtorName": {
            "type": "string",
            "nullable": true
          },
          "debtorAccount": {
            "$ref": "#/components/schemas/AccountTransaction"
          },
          "transactionAmount": {
            "$ref": "#/components/schemas/AmountModel"
          },
          "valueDate": {
            "type": "string",
            "description": "The Date at which assets become available to the account owner in case of a credit.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransactionStatus": {
        "enum": [
          "accc",
          "accp",
          "acsc",
          "acsp",
          "actc",
          "acwc",
          "rcvd",
          "pdng",
          "rjct",
          "canc",
          "acfc",
          "patc",
          "part"
        ],
        "type": "string",
        "description": "The transaction status is filled with codes of the ISO 20022"
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "description": "Include `PSU-IP-Address`, `PSU-Device-ID`, `PSU-User-Agent` in the token request body.<br/><br/>",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://psd2.bkt.com.al/identity-server/connect/authorize",
            "tokenUrl": "https://psd2.bkt.com.al/identity-server/connect/token",
            "scopes": {
              "offline_access": "Allow refresh token",
              "role": "Required scope for BKT internal use.",
              "openid": "User profile",
              "op_accounts.list": "Allow access to get accounts (without balance and transactions)",
              "accounts.withbalance": "Allow access to get account list with balance",
              "accounts.transactions": "Accounts with balance transaction",
              "accounts:details": "Allow access to get account details",
              "payment:execute": "Allow access to execute payment",
              "payment:initialize": "Allow access to initialize a payment"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "AccountInformationService",
      "description": "**Account Information Service (AIS)**\r\n\r\nThis API allows you to retrieve key information about our network bank’s customers’\r\npayment accounts such as account balance and transaction data including amounts, dates and counterparties.\r\nYou also get access to lists of accounts, related IBANs and currencies.\r\n\r\nThe Account Information Service (AIS) offers the following services:\r\n   * Transaction reports for a given account including balances if applicable\r\n   * Balances of a given account\r\n   * A list of available accounts\r\n   * Account details of a given account or of the list of all accessible accounts if the right consent is granted."
    },
    {
      "name": "FundsConfirmationsService",
      "description": "**Confirmation of Funds Service (PIIS)**\r\n\r\nConfirmation of Funds Service (PIIS) returns a confirmation of funds request at the ASPSP."
    },
    {
      "name": "InitiatePaymentService",
      "description": "**Payment Initiation Service (PIS)**\r\n\r\nThe component for Payment Initiation Service (PIS) offers the following services:\r\n   * Initiation and update of a payment request\r\n   * Status information of a payment"
    }
  ]
}