{
  "openapi": "3.0.4",
  "info": {
    "title": "mybanx API",
    "description": "**Current version.**\n\nThe mybanx API gives your application access to bank data (accounts, balances, transactions, statement exports) and lets it start payments (single, bulk, request-to-pay) from bank accounts connected to mybanx.\r\n\r\nBase URL: `https://api.mybanx.io`. All bodies are JSON (`Content-Type: application/json`). Dates are ISO 8601, in UTC.\r\n\r\n## Authentication\r\n\r\n1. Get your **ApplicationKey** and **ClientKey** from mybanx.io.\r\n2. `POST /v2/auth` with `{\"applicationKey\": \"...\", \"clientKey\": \"...\", \"whoAmI\": \"my-tool/1.0\"}`. The response holds a `bearer` token, valid for **2 hours** (`validUntil`), and a `refreshToken`, valid for **30 days**.\r\n3. Send `Authorization: Bearer <bearer>` on every other call.\r\n4. Before the bearer expires, call `POST /v2/auth/refresh` with `{\"refreshToken\": \"...\"}`. Refresh tokens are **single use**: store the new `refreshToken` from each response and discard the old one. Presenting a used refresh token again revokes every refresh token of that ClientKey; when you get a `401` from `/auth/refresh`, go back to step 2.\r\n\r\n`GET /v2/auth` tells you which company you are authenticated as and until when your license is valid. A `401` from `POST /v2/auth` means invalid credentials or an expired license.\r\n\r\n## Direct and indirect access\r\n\r\nWhat a key can reach depends on how it was configured in mybanx:\r\n\r\n- **Direct** endpoints (`/v2/companies/...`, `/v2/bankaccounts/...`) work on the bank accounts of **your own company**.\r\n- **Indirect** endpoints (`/v2/indirect/...`) work on the bank accounts that **other companies have shared with your application**. List them with `GET /v2/indirect/companies`, then `GET /v2/indirect/companies/{companyId}/bankaccounts`. Companies are invited to share their data with `POST /v2/indirect/companies/{companyId}/invitation`.\r\n\r\nReading data (accounts, balances, transactions, exports) and starting payments are separate rights. Calling an endpoint your key is not entitled to, or a bank account it cannot see, returns `401`.\r\n\r\n## Typical flows\r\n\r\n**Read bank data**\r\n\r\n1. `GET /v2/companies/bankaccounts`: list the accounts and keep their `id` (the `bankAccountId` used everywhere else). `validUntil` is the end of the bank consent; once it has passed, renew it with `POST /v2/bankaccounts/{bankAccountId}/renew` and send the user to the returned `url`.\r\n2. `GET /v2/bankaccounts/{bankAccountId}/balances`: the latest balance (or `/balances/all` for the latest balance of each type).\r\n3. `GET /v2/bankaccounts/{bankAccountId}/transactions/pages/{pageId}`: transactions, newest first, by pages of up to 200 (`pageSize`). Request `pageId` 0, 1, 2... until you get `204 No Content`. To poll for new transactions only, pass the `sequence` of the newest transaction you already have: `sequence` decreases over time (a lower value is a newer transaction), and only transactions with a lower `sequence` are returned.\r\n4. `GET /v2/bankaccounts/{bankAccountId}/export/{format}`: the same transactions as a CAMT.053, CODA, CSV, HTML or MT940 file.\r\n\r\n**Start a payment**\r\n\r\n1. `GET /v2/bankaccounts/{bankAccountId}/payment/info`: check what the bank supports (SEPA Instant, execution date in the future).\r\n2. `POST /v2/bankaccounts/{bankAccountId}/payment` with the payment and a `senderEmail` that belongs to a mybanx user of the company owning the account.\r\n3. Send that user to the returned `url` (or show the `qrCode`): they approve the payment with their bank (strong customer authentication), then come back to your `redirectURL`. **A payment is never executed without that approval.**\r\n\r\nBulk payments (`/bulkpayment`) and request-to-pay (`/requesttopay`) follow the same pattern.\r\n\r\n## Conventions\r\n\r\n| Topic | Behaviour |\r\n|---|---|\r\n| Empty results | `204 No Content` (not `404`) when there is nothing to return. |\r\n| Stale data | `206 Partial Content` on transaction lists when the account has no active bank consent: the data is returned but is no longer refreshed. |\r\n| Idempotency | Send an `Idempotency-Key` header (a new UUID per operation) on every authenticated `POST`; keys are scoped to your ClientKey. Retries with the same key within 24 hours replay the first successful response instead of creating a second payment; `409` means the first call is still running. |\r\n| Correlation | Every response carries an `X-Correlation-ID` header (yours if you sent one, otherwise a new GUID). Quote it when contacting support. |\r\n| Rate limit | 240 requests per minute per IP address. Above that, `503` until the next minute. |\r\n| Execution trace | Many responses include an `executionId`; quote it when contacting support. |\r\n\r\n## Errors\r\n\r\n| Status | Meaning | Body |\r\n|---|---|---|\r\n| `400` | Invalid request or business rule violated | `{\"StatusCode\": 400, \"Message\": \"...\"}`, a validation problem, or a plain-text message |\r\n| `401` | Missing/expired bearer, or no right on this endpoint or bank account | Empty, or a plain-text reason on `/auth` |\r\n| `409` | Same `Idempotency-Key` still in progress | Empty |\r\n| `500` | Unexpected error | `{\"StatusCode\": 500, \"Message\": \"Internal Server Error\"}` or an RFC 7807 problem |\r\n| `503` | Rate limit exceeded | Empty |\r\n\r\n## Versions\r\n\r\n`v2` is current; use it for new integrations. `v1` remains available: it exposes the same endpoints, except the export endpoints, which take `isUsingExecutionDate` (true/false) in `v1` and `exportDateType` (execution, value or mybanx date) in `v2`.\r\n",
    "contact": {
      "name": "mybanx",
      "url": "https://www.mybanx.io"
    },
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.mybanx.io/"
    }
  ],
  "paths": {
    "/v2/bankaccounts/{bankAccountId}/export/{format}": {
      "get": {
        "tags": [
          "Export"
        ],
        "summary": "Exports the transactions of a bank account as a CAMT.053, CODA, CSV, HTML or MT940 file.",
        "description": "The file is returned inside the JSON response: `file` holds its text content and `fileName` a suggested file name.\r\n            \r\n**Period:** transactions from `fromDate` (included) to `toDate` (excluded). For `CODA` and `HTML`, `toDate` is ignored and\r\nexactly one day is exported, the day of `fromDate`: a daily statement, numbered by `statementNumber`.",
        "operationId": "ExportTransactions",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/companies/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "format",
            "in": "path",
            "description": "`CAMT` (ISO 20022 camt.053 XML), `CODA` (Belgian bank statement), `CSV`, `HTML` or `MT940` (SWIFT). Case-insensitive.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "First day of the export (included), e.g. `2026-11-01`.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "Day after the last day of the export (excluded), e.g. `2026-11-08`. At most 8 days after `fromDate`, otherwise `400`. Ignored for CODA and HTML.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "exportDateType",
            "in": "query",
            "description": "Which date selects the transactions: 0 = execution date (default), 1 = value date, 2 = date received by mybanx.",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/myBanks.Service.Services.ExportDateType"
                }
              ],
              "description": "Values: 0 = EXECUTION_DATE, 1 = VALUE_DATE, 2 = MBX_DATE.",
              "default": 0
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The export.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.Export"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No transaction on that day (CODA and HTML)."
          },
          "400": {
            "description": "Unknown format (plain-text message)."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/export/{format}": {
      "get": {
        "tags": [
          "Export"
        ],
        "summary": "Exports the transactions of a bank account shared with your application (indirect access) as a CAMT.053, CODA, CSV, HTML or MT940 file.",
        "description": "The file is returned inside the JSON response: `file` holds its text content and `fileName` a suggested file name.\r\n            \r\n**Period:** transactions from `fromDate` (included) to `toDate` (excluded). For `CODA` and `HTML`, `toDate` is ignored and\r\nexactly one day is exported, the day of `fromDate`: a daily statement, numbered by `statementNumber`.",
        "operationId": "ExportIndirectTransactions",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/indirect/companies/{companyId}/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "format",
            "in": "path",
            "description": "`CAMT` (ISO 20022 camt.053 XML), `CODA` (Belgian bank statement), `CSV`, `HTML` or `MT940` (SWIFT). Case-insensitive.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "First day of the export (included), e.g. `2026-11-01`.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "Day after the last day of the export (excluded), e.g. `2026-11-08`. At most 8 days after `fromDate`, otherwise `400`. Ignored for CODA and HTML.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "exportDateType",
            "in": "query",
            "description": "Which date selects the transactions: 0 = execution date (default), 1 = value date, 2 = date received by mybanx.",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/myBanks.Service.Services.ExportDateType"
                }
              ],
              "description": "Values: 0 = EXECUTION_DATE, 1 = VALUE_DATE, 2 = MBX_DATE.",
              "default": 0
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The export.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.Export"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not shared with you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No transaction on that day (CODA and HTML), or a non-EUR account for CAMT and CODA."
          },
          "400": {
            "description": "Unknown format (plain-text message)."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/auth": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Authenticate your app.",
        "description": "### This operation is used to authenticate your app.\r\nBy providing credentials you will be able to connect and retrieve data of the mybanx APIs.\r\n            \r\nThe response includes a `bearer` token, valid for 2 hours, and a `refreshToken`, valid for 30 days.\r\nOnce you hold a `refreshToken`, prefer calling `POST /auth/refresh` over calling this endpoint again:\r\nit lets you obtain a new `bearer` without resending your ApplicationKey/ClientKey on every renewal.\r\nThis endpoint keeps working exactly as before for apps that don't use refresh tokens yet.",
        "operationId": "Authenticate",
        "parameters": [
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The json containing your ApplicationKey and ClientKey",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Token"
                  }
                ],
                "description": "This is your request to Authenticate."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Token"
                  }
                ],
                "description": "This is your request to Authenticate."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Token"
                  }
                ],
                "description": "This is your request to Authenticate."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Your bearer token and refresh token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.AccessToken"
                }
              }
            }
          },
          "400": {
            "description": "The body is missing."
          },
          "401": {
            "description": "`Invalid credentials` (unknown ApplicationKey/ClientKey pair) or `License expired!` (plain text)."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        }
      },
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Who Am I ?",
        "description": "### This operation is used to retrieve information about who you are.\r\nReturns the name of the company your ClientKey belongs to and the end of your license.\r\nUseful to check that a bearer token is still accepted.",
        "operationId": "GetWhoAmI",
        "parameters": [
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Your company and license validity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.WhoAmi"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired bearer token."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/auth/refresh": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Refresh your AccessToken.",
        "description": "### This operation exchanges a RefreshToken for a new Bearer token, without resending your ApplicationKey/ClientKey.\r\n            \r\nThe RefreshToken is single use: each successful call returns a new RefreshToken that replaces the one you sent.\r\nStore the new one and discard the old one immediately, since the old one will be rejected on any future call.\r\n            \r\nIf a RefreshToken is presented twice (for example because you kept using an old one after already\r\nrefreshing), we treat that as a sign the token may have leaked: every RefreshToken issued for that\r\nClientKey is revoked immediately, and you must call `POST /auth` again with your ApplicationKey/ClientKey\r\nto get a new chain.\r\n            \r\nA `401 Unauthorized` is returned if the RefreshToken is unknown, already used, revoked, expired, or if\r\nthe underlying license/trial has since ended. In every case, fall back to `POST /auth`.",
        "operationId": "RefreshToken",
        "parameters": [
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The json containing your RefreshToken",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RefreshTokenRequest"
                  }
                ],
                "description": "Your request to obtain a new AccessToken from a RefreshToken."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RefreshTokenRequest"
                  }
                ],
                "description": "Your request to obtain a new AccessToken from a RefreshToken."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RefreshTokenRequest"
                  }
                ],
                "description": "Your request to obtain a new AccessToken from a RefreshToken."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A new bearer token and a new refresh token (replacing the one you sent).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.AccessToken"
                }
              }
            }
          },
          "400": {
            "description": "`refreshToken` is missing."
          },
          "401": {
            "description": "`Invalid refresh token` (plain text): unknown, already used, revoked or expired. Call `POST /v2/auth` again."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        }
      }
    },
    "/v2/bankaccounts/{bankAccountId}/balances": {
      "get": {
        "tags": [
          "Balance"
        ],
        "summary": "Returns the most recent balance of a bank account of your own company.",
        "description": "The amount is in the currency of the bank account. See `balanceType` for what the balance represents.",
        "operationId": "GetLatestBalance",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/companies/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The most recent balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.Balance"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No balance received yet for this bank account."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/balances": {
      "get": {
        "tags": [
          "Balance"
        ],
        "summary": "Returns the most recent balance of a bank account shared with your application (indirect access).",
        "description": "The amount is in the currency of the bank account. See `balanceType` for what the balance represents.",
        "operationId": "GetIndirectLatestBalance",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/indirect/companies/{companyId}/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The most recent balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.Balance"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No balance received yet for this bank account."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/balances/all": {
      "get": {
        "tags": [
          "Balance"
        ],
        "summary": "Returns the latest balance of each balance type for a bank account of your own company.",
        "description": "Banks often report several balances (booked, available, ...): this returns the most recent one of each `balanceType`.\r\nThe amount is in the currency of the bank account.",
        "operationId": "ListLatestBalances",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/companies/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The latest balance of each type (possibly an empty array).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Balance"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/balances/all": {
      "get": {
        "tags": [
          "Balance"
        ],
        "summary": "Returns the latest balance of each balance type for a bank account shared with your application (indirect access).",
        "description": "Banks often report several balances (booked, available, ...): this returns the most recent one of each `balanceType`.\r\nThe amount is in the currency of the bank account.",
        "operationId": "ListIndirectLatestBalances",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/indirect/companies/{companyId}/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The latest balance of each type (possibly an empty array).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Balance"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/companies/bankaccounts": {
      "get": {
        "tags": [
          "BankAccount"
        ],
        "summary": "Lists the bank accounts of your own company.",
        "description": "The `id` of each bank account is the `bankAccountId` expected by the balance, transaction, export and payment endpoints.\r\n`validUntil` is the end of the bank consent: past that date, renew it with `POST /v2/bankaccounts/{bankAccountId}/renew`.",
        "operationId": "ListBankAccounts",
        "parameters": [
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The bank accounts of your company.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.BankAccount"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, or your key has no direct read access."
          },
          "204": {
            "description": "Your company has no connected bank account."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/companies/{companyId}/bankaccounts": {
      "get": {
        "tags": [
          "BankAccount"
        ],
        "summary": "Lists the bank accounts a company shares with your application (indirect access).",
        "description": "Get the `companyId` from `GET /v2/indirect/companies`. Only the bank accounts the company has shared with your application are returned.",
        "operationId": "ListIndirectBankAccounts",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "The company id, from `GET /v2/indirect/companies`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The bank accounts shared by the company.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.BankAccount"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, or your key has no indirect read access."
          },
          "204": {
            "description": "The company shares no bank account with your application."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/renew": {
      "post": {
        "tags": [
          "BankAccount"
        ],
        "summary": "Renews the bank consent of one of your bank accounts.",
        "description": "Bank consents expire (see `validUntil` on the bank account, usually after 90 to 180 days). Once expired, balances and\r\ntransactions are no longer refreshed. This call starts a new consent with the bank and returns the bank `url`\r\nthe account holder must open to approve it (strong customer authentication). After approval, they are sent back to the\r\n`url` you supplied in the body.",
        "operationId": "RenewBankAccountConsent",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/companies/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The URL the account holder is sent back to after approving the consent at the bank.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RenewConsent"
                  }
                ],
                "description": "Information about a consent renewal request."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RenewConsent"
                  }
                ],
                "description": "Information about a consent renewal request."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RenewConsent"
                  }
                ],
                "description": "Information about a consent renewal request."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The bank URL to open to approve the new consent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.RenewResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, or your key has no direct read access."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "500": {
            "description": "The bank refused to start a new consent."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/companies/{companyId}/bankaccounts/{bankAccountId}/renew": {
      "post": {
        "tags": [
          "BankAccount"
        ],
        "summary": "Renews the bank consent of a bank account shared with your application (indirect access).",
        "description": "Bank consents expire (see `validUntil` on the bank account, usually after 90 to 180 days). Once expired, balances and\r\ntransactions are no longer refreshed. This call starts a new consent with the bank and returns the bank `url`\r\nthe account holder must open to approve it (strong customer authentication). After approval, they are sent back to the\r\n`url` you supplied in the body.",
        "operationId": "RenewIndirectBankAccountConsent",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "The company owning the bank account, from `GET /v2/indirect/companies`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/indirect/companies/{companyId}/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The URL the account holder is sent back to after approving the consent at the bank.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RenewConsent"
                  }
                ],
                "description": "Information about a consent renewal request."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RenewConsent"
                  }
                ],
                "description": "Information about a consent renewal request."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RenewConsent"
                  }
                ],
                "description": "Information about a consent renewal request."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The bank URL to open to approve the new consent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.RenewResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no indirect read access, or the bank account is not shared with you."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "500": {
            "description": "The bank refused to start a new consent."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/bulkpayment/info": {
      "get": {
        "tags": [
          "BulkPayment"
        ],
        "summary": "Returns what the bank of this account supports for bulk payments.",
        "description": "Call it before `POST /v2/bankaccounts/{bankAccountId}/bulkpayment` to know whether SEPA Instant and a future execution date are supported, and whether recipient addresses are required.",
        "operationId": "GetBulkPaymentInfo",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that will send the payment.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Supported features of the bank.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.BankBulkInformation"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/bulkpayment": {
      "post": {
        "tags": [
          "BulkPayment"
        ],
        "summary": "Creates a bulk payment (several transfers approved at once) from a bank account.",
        "description": "Check `GET /v2/bankaccounts/{bankAccountId}/bulkpayment/info` first: not every bank supports bulk payments.\r\n            \r\nSend the payer to the returned `url` (or display the `qrCode`): they approve the payment with their bank\r\n(strong customer authentication), and are then sent back to `redirectURL`. **Nothing is paid until they approve it.**\r\n            \r\n`senderEmail` must be the email of a mybanx user of the company owning the bank account, otherwise `401` is returned.\r\n            \r\nSend an `Idempotency-Key` header so that a retried call never creates a second payment.",
        "operationId": "CreateBulkPayment",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that sends the payments.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The list of payments to create.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Bulk"
                  }
                ],
                "description": "A bulk payment: several transfers from the same bank account, approved by the payer in one go."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Bulk"
                  }
                ],
                "description": "A bulk payment: several transfers from the same bank account, approved by the payer in one go."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Bulk"
                  }
                ],
                "description": "A bulk payment: several transfers from the same bank account, approved by the payer in one go."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The bulk payment id and the approval `url`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.BulkPaymentResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, bank account not accessible, or `senderEmail` is not a user of the company."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/bulkpayment": {
      "post": {
        "tags": [
          "BulkPayment"
        ],
        "summary": "Creates a bulk payment (several transfers approved at once) from a bank account shared with your application (indirect access).",
        "description": "Check `GET /v2/bankaccounts/{bankAccountId}/bulkpayment/info` first: not every bank supports bulk payments.\r\n            \r\nSend the payer to the returned `url` (or display the `qrCode`): they approve the payment with their bank\r\n(strong customer authentication), and are then sent back to `redirectURL`. **Nothing is paid until they approve it.**\r\n            \r\n`senderEmail` must be the email of a mybanx user of the company owning the bank account, otherwise `401` is returned.\r\n            \r\nSend an `Idempotency-Key` header so that a retried call never creates a second payment.",
        "operationId": "CreateIndirectBulkPayment",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that sends the payments.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The list of payments to create.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Bulk"
                  }
                ],
                "description": "A bulk payment: several transfers from the same bank account, approved by the payer in one go."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Bulk"
                  }
                ],
                "description": "A bulk payment: several transfers from the same bank account, approved by the payer in one go."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Bulk"
                  }
                ],
                "description": "A bulk payment: several transfers from the same bank account, approved by the payer in one go."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The bulk payment id and the approval `url`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.BulkPaymentResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, bank account not accessible, or `senderEmail` is not a user of the company."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/companies": {
      "get": {
        "tags": [
          "Company"
        ],
        "summary": "Lists the companies sharing their bank data with your application (indirect access).",
        "description": "Entry point of indirect access: use each company `id` with `GET /v2/indirect/companies/{companyId}/bankaccounts`.",
        "operationId": "ListIndirectCompanies",
        "parameters": [
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The companies sharing data with your application.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.Data.DTO.DtoCompany"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, or your key has no indirect read access."
          },
          "204": {
            "description": "No company shares data with your application yet."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/companies/{companyId}/invitation": {
      "post": {
        "tags": [
          "Invitation"
        ],
        "summary": "Invites people and their companies to share their bank data with your application (indirect access).",
        "description": "Each invitation is sent to `userEmail`. Once accepted, the invited company appears in `GET /v2/indirect/companies`\r\nand its shared bank accounts become reachable through the `/v2/indirect/...` endpoints.\r\n            \r\n`sharingKey` and `applicationKey` decide what the invited company shares its data with:\r\n- software vendor (indirect): `sharingKey` = `00000000-0000-0000-0000-000000000000` and `applicationKey` = your ApplicationKey;\r\n- external indirect: `sharingKey` = the Sharing key shown for the collecting tool in the Applications menu of mybanx.\r\n            \r\nAn unknown or deleted `sharingKey`, or (with an all-zeros `sharingKey`) a missing or unknown `applicationKey`, returns `400` with an error on that field.\r\n`senderEmail` must be the email of a mybanx user of the company given in the path, otherwise `401` is returned.\r\n            \r\nA batch is all or nothing. A missing field returns `400` with the errors listed per invitation (e.g. `Invitations[2].UserEmail`), and nothing is created.",
        "operationId": "CreateIndirectInvitations",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "Your company, sending the invitations.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The sender and the list of people to invite.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.InvitationGroup"
                  }
                ],
                "description": "A batch of invitations sent on behalf of one of your users."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.InvitationGroup"
                  }
                ],
                "description": "A batch of invitations sent on behalf of one of your users."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.InvitationGroup"
                  }
                ],
                "description": "A batch of invitations sent on behalf of one of your users."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The number of invitations created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.InvitationResponse"
                }
              }
            }
          },
          "400": {
            "description": "A field is missing (errors listed per invitation) or a key is unknown (error on `SharingKey` or `ApplicationKey`). Nothing is created.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no invitation right, or `senderEmail` is not a user of the company."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/payment/info": {
      "get": {
        "tags": [
          "Payment"
        ],
        "summary": "Returns what the bank of this account supports for single payments.",
        "description": "Call it before `POST /v2/bankaccounts/{bankAccountId}/payment` to know whether SEPA Instant and a future execution date are supported.",
        "operationId": "GetPaymentInfo",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that will send the payment.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Supported features of the bank.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.BankPaymentInformation"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/payment": {
      "post": {
        "tags": [
          "Payment"
        ],
        "summary": "Creates a single payment from a bank account and returns the link to approve it.",
        "description": "Send the payer to the returned `url` (or display the `qrCode`): they approve the payment with their bank\r\n(strong customer authentication), and are then sent back to `redirectURL`. **Nothing is paid until they approve it.**\r\n            \r\n`senderEmail` must be the email of a mybanx user of the company owning the bank account, otherwise `401` is returned.\r\n            \r\nSend an `Idempotency-Key` header so that a retried call never creates a second payment.",
        "operationId": "CreatePayment",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that sends the payment.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The payment to create.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Payment"
                  }
                ],
                "description": "Represents a Payment sent and to be initiated."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Payment"
                  }
                ],
                "description": "Represents a Payment sent and to be initiated."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Payment"
                  }
                ],
                "description": "Represents a Payment sent and to be initiated."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The payment id, the approval `url` and a `qrCode` URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.PaymentResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, bank account not accessible, or `senderEmail` is not a user of the company."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/payment": {
      "post": {
        "tags": [
          "Payment"
        ],
        "summary": "Creates a single payment from a bank account shared with your application (indirect access) and returns the link to approve it.",
        "description": "Send the payer to the returned `url` (or display the `qrCode`): they approve the payment with their bank\r\n(strong customer authentication), and are then sent back to `redirectURL`. **Nothing is paid until they approve it.**\r\n            \r\n`senderEmail` must be the email of a mybanx user of the company owning the bank account, otherwise `401` is returned.\r\n            \r\nSend an `Idempotency-Key` header so that a retried call never creates a second payment.",
        "operationId": "CreateIndirectPayment",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that sends the payment.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The payment to create.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Payment"
                  }
                ],
                "description": "Represents a Payment sent and to be initiated."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Payment"
                  }
                ],
                "description": "Represents a Payment sent and to be initiated."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Payment"
                  }
                ],
                "description": "Represents a Payment sent and to be initiated."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The payment id, the approval `url` and a `qrCode` URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.PaymentResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, bank account not accessible, or `senderEmail` is not a user of the company."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/pilot": {
      "get": {
        "tags": [
          "Pilot"
        ],
        "summary": "Returns the latest pending pilot message for your ClientKey, and marks it as delivered.",
        "description": "Reserved for integrations driven by mybanx (pilot mode). Each message is returned once; when nothing is pending,\r\nthe response is `200` with an empty body.",
        "operationId": "GetPilotMessage",
        "parameters": [
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The message content as a string, or an empty body when nothing is pending.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/requesttopay": {
      "post": {
        "tags": [
          "RequestToPay"
        ],
        "summary": "Creates payment requests to be paid into a bank account.",
        "description": "Each entry of `uniqueRequests` becomes one request-to-pay with its own `url` and `qrCode`: send them to the debtor\r\n(by email, on an invoice...). The debtor opens the link and pays into the bank account\r\ngiven in the path.\r\n            \r\n`notifyEmail` must be the email of a mybanx user of the company owning the bank account, otherwise `401` is returned.\r\n            \r\nSend an `Idempotency-Key` header so that a retried call never creates the requests twice.",
        "operationId": "CreateRequestToPay",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that receives the payments.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The payment requests to create.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ],
                "description": "A batch of payment requests to be paid into one of your bank accounts."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ],
                "description": "A batch of payment requests to be paid into one of your bank accounts."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ],
                "description": "A batch of payment requests to be paid into one of your bank accounts."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The batch id and, for each request, its id, payment `url` and `qrCode` URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPayResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, bank account not accessible, or `notifyEmail` is not a user of the company."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/requesttopay": {
      "post": {
        "tags": [
          "RequestToPay"
        ],
        "summary": "Creates payment requests to be paid into a bank account shared with your application (indirect access).",
        "description": "Each entry of `uniqueRequests` becomes one request-to-pay with its own `url` and `qrCode`: send them to the debtor\r\n(by email, on an invoice...). The debtor opens the link and pays into the bank account\r\ngiven in the path.\r\n            \r\n`notifyEmail` must be the email of a mybanx user of the company owning the bank account, otherwise `401` is returned.\r\n            \r\nSend an `Idempotency-Key` header so that a retried call never creates the requests twice.",
        "operationId": "CreateIndirectRequestToPay",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account that receives the payments.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional but strongly recommended. A unique value (use a new UUID) per logical operation. Retrying with the same key within 24 hours never executes the operation twice: a successful (2xx) response is replayed as-is, and `409` is returned while the first call is still running. Failed (non-2xx) calls are not stored, so they can be retried with the same key.",
            "schema": {
              "type": "string"
            },
            "example": "3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10"
          }
        ],
        "requestBody": {
          "description": "The payment requests to create.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ],
                "description": "A batch of payment requests to be paid into one of your bank accounts."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ],
                "description": "A batch of payment requests to be paid into one of your bank accounts."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPay"
                  }
                ],
                "description": "A batch of payment requests to be paid into one of your bank accounts."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The batch id and, for each request, its id, payment `url` and `qrCode` URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/myBanks.API.DTO.RequestToPayResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no payment right, bank account not accessible, or `notifyEmail` is not a user of the company."
          },
          "403": {
            "description": "Forbidden"
          },
          "409": {
            "description": "A request with the same `Idempotency-Key` is still being processed. Wait and retry with the same key."
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/first": {
      "get": {
        "tags": [
          "Transaction"
        ],
        "summary": "Returns the date of the oldest transaction mybanx holds for a bank account.",
        "description": "Use it to know how far back transactions and exports can go.",
        "operationId": "GetFirstTransactionDate",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/companies/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Date of the oldest transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": true
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No transaction yet for this bank account."
          },
          "500": {
            "description": "Unexpected error (plain-text message)."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/bankaccounts/{bankAccountId}/transactions/pages/{pageId}": {
      "get": {
        "tags": [
          "Transaction"
        ],
        "summary": "Lists the transactions of a bank account, newest first, page by page.",
        "description": "**Paging:** page `0` holds the most recent transactions. Request pages 0, 1, 2... until you get `204 No Content`.\r\n            \r\n**Polling for new transactions:** `sequence` decreases over time (a lower value is a newer transaction) and is unique per bank account.\r\nPass the `sequence` of the newest transaction you already have to receive only the newer ones.\r\n            \r\n**Stale data:** `206` means the bank account has no active bank consent: the transactions are returned but are no longer refreshed.\r\nRenew the consent to resume updates.",
        "operationId": "ListTransactions",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/companies/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageId",
            "in": "path",
            "description": "The page number, from 0 (most recent transactions) to 999.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sequence",
            "in": "query",
            "description": "Optional. Only return transactions newer than this `sequence` (that is, with a lower `sequence`). 0 = no filter.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 0
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of transactions per page, 1 to 200. Default and maximum: 200.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 200
            }
          },
          {
            "name": "forceRefresh",
            "in": "query",
            "description": "If true, fetches the latest transactions from the bank before answering. Slower; use sparingly.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The transactions of the page, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Transaction"
                  }
                }
              }
            }
          },
          "206": {
            "description": "The transactions of the page, but the bank consent is not active: data is no longer refreshed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Transaction"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No transaction on this page (end of the list), or pageId out of range."
          },
          "500": {
            "description": "Unexpected error (plain-text message)."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/first": {
      "get": {
        "tags": [
          "Transaction"
        ],
        "summary": "Returns the date of the oldest transaction mybanx holds for a bank account shared with your application (indirect access).",
        "description": "Use it to know how far back transactions and exports can go.",
        "operationId": "GetIndirectFirstTransactionDate",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/indirect/companies/{companyId}/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Date of the oldest transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": true
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No transaction yet for this bank account."
          },
          "500": {
            "description": "Unexpected error (plain-text message)."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    },
    "/v2/indirect/bankaccounts/{bankAccountId}/transactions/pages/{pageId}": {
      "get": {
        "tags": [
          "Transaction"
        ],
        "summary": "Lists the transactions of a bank account shared with your application (indirect access), newest first, page by page.",
        "description": "**Paging:** page `0` holds the most recent transactions. Request pages 0, 1, 2... until you get `204 No Content`.\r\n            \r\n**Polling for new transactions:** `sequence` decreases over time (a lower value is a newer transaction) and is unique per bank account.\r\nPass the `sequence` of the newest transaction you already have to receive only the newer ones.\r\n            \r\n**Stale data:** `206` means the bank account has no active bank consent: the transactions are returned but are no longer refreshed.\r\nRenew the consent to resume updates.",
        "operationId": "ListIndirectTransactions",
        "parameters": [
          {
            "name": "bankAccountId",
            "in": "path",
            "description": "The bank account id, from `GET /v2/indirect/companies/{companyId}/bankaccounts`.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageId",
            "in": "path",
            "description": "The page number, from 0 (most recent transactions) to 999.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sequence",
            "in": "query",
            "description": "Optional. Only return transactions newer than this `sequence` (that is, with a lower `sequence`). 0 = no filter.",
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 0
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of transactions per page, 1 to 200. Default and maximum: 200.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 200
            }
          },
          {
            "name": "forceRefresh",
            "in": "query",
            "description": "If true, fetches the latest transactions from the bank before answering. Slower; use sparingly.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "X-Correlation-ID",
            "in": "header",
            "description": "Optional. Your own identifier for this call, echoed back in the `X-Correlation-ID` response header. When omitted, a new GUID is generated and returned. Quote it when contacting support.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The transactions of the page, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Transaction"
                  }
                }
              }
            }
          },
          "206": {
            "description": "The transactions of the page, but the bank consent is not active: data is no longer refreshed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/myBanks.API.DTO.Transaction"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or expired bearer token, no read access, or the bank account is not accessible to you."
          },
          "403": {
            "description": "Forbidden"
          },
          "503": {
            "description": "Rate limit exceeded: 240 requests per minute per IP address (fixed one-minute window, no queueing). Retry in the next minute."
          },
          "204": {
            "description": "No transaction on this page (end of the list), or pageId out of range."
          },
          "500": {
            "description": "Unexpected error (plain-text message)."
          }
        },
        "security": [
          {
            "Bearer": [ ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Microsoft.AspNetCore.Mvc.ValidationProblemDetails": {
        "required": [
          "errors"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": { }
      },
      "myBanks.API.DTO.AccessToken": {
        "required": [
          "bearer",
          "validUntil"
        ],
        "type": "object",
        "properties": {
          "validUntil": {
            "type": "string",
            "description": "Validity of your bearer token.",
            "format": "date-time"
          },
          "bearer": {
            "type": "string",
            "description": "This is your Bearer token you have to provide for each restricted API call."
          },
          "refreshToken": {
            "type": "string",
            "description": "Use this token to obtain a new Bearer token via POST /auth/refresh, without resending your ApplicationKey/ClientKey.\r\nValid for 30 days, but single use: each call to /auth/refresh returns a new RefreshToken that replaces this one.",
            "nullable": true
          },
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "AccessToken is your token to access the restricted API calls."
      },
      "myBanks.API.DTO.Balance": {
        "required": [
          "amount",
          "balanceType",
          "bankAccountId",
          "id"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "ID of the balance in mybanx. Unique Identifier.",
            "format": "uuid"
          },
          "bankAccountId": {
            "type": "string",
            "description": "ID of the related BankAccount",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "description": "Amount of the balance. Check BankAccount for currency.",
            "format": "double"
          },
          "dateReference": {
            "type": "string",
            "description": "Reference date of the balance.",
            "format": "date-time",
            "nullable": true
          },
          "balanceType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/myBanks.API.DTO.BalanceType"
              }
            ],
            "description": "What the balance represents (booked, available, computed by mybanx...). See the BalanceType schema.\n\nValues: 0 = CLBD, 1 = CLAV, 2 = ITBD, 3 = ITAV, 4 = OPAV, 5 = XPCD, 6 = OPBD, 98 = MBX, 99 = OTHR."
          }
        },
        "additionalProperties": false,
        "description": "Balance represents the most recent balance received for the given bank account."
      },
      "myBanks.API.DTO.BalanceType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          98,
          99
        ],
        "type": "integer",
        "description": "Type of Balance you are receiving. Most of the time, this value is provided by the bank but in some cases might be inferred by mybanx.\n\nValues: 0 = CLBD, 1 = CLAV, 2 = ITBD, 3 = ITAV, 4 = OPAV, 5 = XPCD, 6 = OPBD, 98 = MBX, 99 = OTHR.",
        "format": "int32"
      },
      "myBanks.API.DTO.BankAccount": {
        "required": [
          "account",
          "companyName",
          "connectorId",
          "countryId",
          "countryName",
          "currency",
          "dateCreated",
          "description",
          "id",
          "name",
          "orderBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique IDentifier of the bank account.",
            "format": "uuid"
          },
          "account": {
            "type": "string",
            "description": "IBAN or BBAN of the Bank Account."
          },
          "currency": {
            "type": "string",
            "description": "Currency code: EUR, USD, GBP, etc."
          },
          "validUntil": {
            "type": "string",
            "description": "Validity of the consent received from the bank to access this Bank Account's data (transactions and balances).",
            "format": "date-time",
            "nullable": true
          },
          "countryId": {
            "type": "string",
            "description": "ISO Code 2 of the country (BE, FR, etc)"
          },
          "name": {
            "type": "string",
            "description": "Name provided by the bank."
          },
          "ownerName": {
            "type": "string",
            "description": "Account holder name provided by the bank.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description provided by the bank."
          },
          "cashAccountType": {
            "type": "string",
            "description": "ISO 20022 cash account type (e.g. CACC current account, SVGS savings).",
            "nullable": true
          },
          "cashAccountTypeRaw": {
            "type": "string",
            "description": "Account type as returned by the bank, before normalisation.",
            "nullable": true
          },
          "product": {
            "type": "string",
            "description": "Product name provided by the bank.",
            "nullable": true
          },
          "balance": {
            "type": "number",
            "description": "Last known balance, in `currency`. Use the balance endpoints for its date and type.",
            "format": "double",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "description": "Name of the company owning the account."
          },
          "bankName": {
            "type": "string",
            "description": "Name of the bank.",
            "nullable": true
          },
          "bic": {
            "type": "string",
            "description": "BIC of the bank.",
            "nullable": true
          },
          "dateCreated": {
            "type": "string",
            "description": "Date the account was connected to mybanx.",
            "format": "date-time"
          },
          "countryName": {
            "type": "string",
            "description": "Name of the country of the account."
          },
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "connectorId": {
            "type": "integer",
            "description": "Bank Identifier in mybanx.io",
            "format": "int32"
          },
          "orderBy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/myBanks.Data.Entities.OrderByType"
              }
            ],
            "description": "Date the bank orders this account's transactions by: 0 = undefined, 1 = execution date, 2 = value date.\n\nValues: 0 = Undefined, 1 = ExecutionDate, 2 = ValueDate."
          }
        },
        "additionalProperties": false,
        "description": "Bank account information."
      },
      "myBanks.API.DTO.BankBulkInformation": {
        "required": [
          "connectorId",
          "currencies",
          "minimalAmount",
          "recipientAddressRequired",
          "sepaInstantSupported",
          "sepaSpecificPaymentDate",
          "sepaSupported"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "description": "Name of the bank.",
            "nullable": true
          },
          "countryId": {
            "type": "string",
            "description": "ISO Code 2 of the country (BE, FR, etc)",
            "nullable": true
          },
          "connectorId": {
            "type": "integer",
            "description": "Bank Identifier in mybanx.io",
            "format": "int32"
          },
          "currencies": {
            "type": "string",
            "description": "Comma separated supported currencies in ISO3 values (EUR, USD, GBP, etc)."
          },
          "sepaSupported": {
            "type": "boolean",
            "description": "Does the bank support SEPA bulk payments at all?"
          },
          "sepaInstantSupported": {
            "type": "boolean",
            "description": "Is SEPA Instant Supported?"
          },
          "sepaSpecificPaymentDate": {
            "type": "boolean",
            "description": "Does SEPA Payment support an differed execution date."
          },
          "minimalAmount": {
            "type": "number",
            "description": "Minimum amount of a transfert.",
            "format": "double"
          },
          "recipientAddressRequired": {
            "type": "boolean",
            "description": "Indicates if the Postal Address of the recipient must be provided."
          }
        },
        "additionalProperties": false,
        "description": "Bank informations and behavior."
      },
      "myBanks.API.DTO.BankPaymentInformation": {
        "required": [
          "connectorId",
          "currencies",
          "minimalAmount",
          "sepaInstantSupported",
          "sepaSpecificPaymentDate"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "description": "Name of the bank.",
            "nullable": true
          },
          "countryId": {
            "type": "string",
            "description": "ISO Code 2 of the country (BE, FR, etc)",
            "nullable": true
          },
          "connectorId": {
            "type": "integer",
            "description": "Bank Identifier in mybanx.io",
            "format": "int32"
          },
          "currencies": {
            "type": "string",
            "description": "Comma separated supported currencies in ISO3 values (EUR, USD, GBP, etc)."
          },
          "sepaInstantSupported": {
            "type": "boolean",
            "description": "Is SEPA Instant Supported?"
          },
          "sepaSpecificPaymentDate": {
            "type": "boolean",
            "description": "Does SEPA Payment support an differed execution date."
          },
          "minimalAmount": {
            "type": "number",
            "description": "Minimum amount of a transfert.",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "Bank informations and behavior."
      },
      "myBanks.API.DTO.Bulk": {
        "required": [
          "additionalProperties",
          "bulkPayments",
          "isInstant",
          "redirectURL",
          "senderEmail"
        ],
        "type": "object",
        "properties": {
          "redirectURL": {
            "type": "string",
            "description": "Where the payer is sent back after approving (or cancelling) the bulk payment at their bank.",
            "example": "https://yourapp.example.com/payments/done"
          },
          "senderEmail": {
            "type": "string",
            "description": "Email of the mybanx user, member of the company owning the bank account, who will approve the payments.",
            "example": "jane.doe@company.com"
          },
          "isInstant": {
            "type": "boolean",
            "description": "Request SEPA Instant transfers. Check `sepaInstantSupported` in the bulk payment info first."
          },
          "allowRetry": {
            "type": "boolean",
            "description": "If true, the approval `url` can be opened again after a failed or abandoned attempt. If false (default), it can be used once.",
            "nullable": true
          },
          "bulkPayments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/myBanks.API.DTO.BulkPayment"
            },
            "description": "The transfers to execute."
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional free key/value pairs stored with the bulk payment."
          }
        },
        "additionalProperties": false,
        "description": "A bulk payment: several transfers from the same bank account, approved by the payer in one go."
      },
      "myBanks.API.DTO.BulkPayment": {
        "required": [
          "amount",
          "counterpartyIBAN",
          "end2EndId"
        ],
        "type": "object",
        "properties": {
          "counterpartyIBAN": {
            "type": "string",
            "description": "IBAN of the beneficiary.",
            "example": "BE68539007547034"
          },
          "amount": {
            "type": "number",
            "description": "Amount to transfer, positive, in `currency`.",
            "format": "double",
            "example": 125.5
          },
          "counterpartName": {
            "type": "string",
            "description": "Name of the beneficiary.",
            "nullable": true,
            "example": "ACME SRL"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code. Default `EUR`.",
            "nullable": true,
            "example": "EUR"
          },
          "remittanceStructuredRef": {
            "type": "string",
            "description": "Structured communication (e.g. Belgian `+++123/4567/89012+++` reference). Used only when `remittanceUnstructured` is empty.",
            "nullable": true,
            "example": "+++090/9337/55493+++"
          },
          "remittanceUnstructured": {
            "type": "string",
            "description": "Free-text communication shown to the beneficiary. Takes precedence over `remittanceStructuredRef`.",
            "nullable": true,
            "example": "Invoice 2026-0042"
          },
          "end2EndId": {
            "type": "string",
            "description": "Your reference for this transfer, carried end to end through the banking chain (max. 35 characters in SEPA).",
            "example": "INV-2026-0042"
          },
          "counterpartPostalAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/myBanks.API.DTO.TierAddress"
              }
            ],
            "description": "Postal address of the beneficiary. Optional for most banks; see `recipientAddressRequired` in the bulk payment info.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One transfer inside a bulk payment."
      },
      "myBanks.API.DTO.BulkPaymentResponse": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Id of the bulk payment in mybanx.",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "description": "URL where the payer approves the bulk payment with their bank. Redirect them to it, or send it to them.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The created bulk payment and the link to approve it."
      },
      "myBanks.API.DTO.Export": {
        "required": [
          "binaryContent",
          "dateCreated",
          "file",
          "fileName",
          "id",
          "statementNumber"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Unique IDentifier of the export.",
            "format": "uuid"
          },
          "dateCreated": {
            "type": "string",
            "description": "Date and time of the export.",
            "format": "date-time"
          },
          "fileName": {
            "type": "string",
            "description": "Name of the generated file contained in the File property."
          },
          "file": {
            "type": "string",
            "description": "Content of the transactions formatted in the selected format of your choice."
          },
          "binaryContent": {
            "type": "string",
            "description": "Content of the transaction in a binary format.",
            "format": "byte"
          },
          "statementNumber": {
            "type": "integer",
            "description": "Statement Number, used for CODA formats, is the sequential ID of day of the transactions.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Export contains transactions data in a selected format of your choice."
      },
      "myBanks.API.DTO.Invitation": {
        "required": [
          "country",
          "userEmail",
          "userFirstName",
          "userLanguage",
          "userLastName",
          "userMobile"
        ],
        "type": "object",
        "properties": {
          "userFirstName": {
            "minLength": 1,
            "type": "string",
            "description": "Firstname of the user to invite."
          },
          "userLastName": {
            "minLength": 1,
            "type": "string",
            "description": "Lastname of the user to invite."
          },
          "userEmail": {
            "minLength": 1,
            "type": "string",
            "description": "Email of the user to invite.",
            "example": "john.doe@mail.com"
          },
          "userMobile": {
            "type": "string",
            "description": "Mobile phone number of the user to invite.",
            "example": "+32475xxxxx"
          },
          "userLanguage": {
            "type": "string",
            "description": "Language of the user to invite.",
            "example": "en-GB"
          },
          "userBirthDate": {
            "type": "string",
            "description": "Date of birth of the user to invite. YYYY-MM-DD format expected.",
            "nullable": true,
            "example": "1982-05-20"
          },
          "companyName": {
            "type": "string",
            "description": "Name of the company to invite.",
            "nullable": true,
            "example": "ACME SRL"
          },
          "companyVAT": {
            "type": "string",
            "description": "VAT or legal entity unique identifier.",
            "nullable": true,
            "example": "BE0123456789"
          },
          "companyStreet": {
            "type": "string",
            "nullable": true
          },
          "companyZip": {
            "type": "string",
            "nullable": true
          },
          "companyCity": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "minLength": 1,
            "type": "string",
            "description": "ISO Code 2 of the country (BE, FR, etc)",
            "example": "BE"
          }
        },
        "additionalProperties": false,
        "description": "Invitation sent by an App owner to invite companies/people to share data with his organisation."
      },
      "myBanks.API.DTO.InvitationGroup": {
        "required": [
          "invitations",
          "senderEmail",
          "sharingKey"
        ],
        "type": "object",
        "properties": {
          "sharingKey": {
            "type": "string",
            "description": "What the invited companies will share their data with. Software vendor (indirect): `00000000-0000-0000-0000-000000000000`, with `applicationKey`.\r\nExternal indirect: the Sharing key shown for the collecting tool in the Applications menu of mybanx.",
            "format": "uuid",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "applicationKey": {
            "type": "string",
            "description": "Your ApplicationKey, when inviting companies to share with your application.",
            "format": "uuid",
            "nullable": true
          },
          "senderEmail": {
            "minLength": 1,
            "type": "string",
            "description": "Email of the mybanx user, member of the company in the path, sending the invitations.",
            "example": "jane.doe@company.com"
          },
          "invitations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/myBanks.API.DTO.Invitation"
            },
            "description": "The people and companies to invite."
          }
        },
        "additionalProperties": false,
        "description": "A batch of invitations sent on behalf of one of your users."
      },
      "myBanks.API.DTO.InvitationResponse": {
        "required": [
          "recordsCreated"
        ],
        "type": "object",
        "properties": {
          "recordsCreated": {
            "type": "integer",
            "description": "Number of invitations created and sent.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Result of an invitation batch."
      },
      "myBanks.API.DTO.Payment": {
        "required": [
          "amount",
          "counterpartyIBAN",
          "dynamicFields",
          "end2EndId",
          "isInstant",
          "redirectURL",
          "senderEmail"
        ],
        "type": "object",
        "properties": {
          "redirectURL": {
            "type": "string",
            "description": "Where the payer is sent back after approving (or cancelling) the payment at their bank.",
            "example": "https://yourapp.example.com/payments/done"
          },
          "senderEmail": {
            "type": "string",
            "description": "Email of the mybanx user, member of the company owning the bank account, who will approve the payment.",
            "example": "jane.doe@company.com"
          },
          "counterpartyIBAN": {
            "type": "string",
            "description": "IBAN of the beneficiary.",
            "example": "BE68539007547034"
          },
          "amount": {
            "type": "number",
            "description": "Amount to transfer, positive, in `currency`.",
            "format": "double",
            "example": 125.5
          },
          "counterpartName": {
            "type": "string",
            "description": "Name of the beneficiary.",
            "nullable": true,
            "example": "ACME SRL"
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code. Default `EUR`.",
            "nullable": true,
            "example": "EUR"
          },
          "remittanceStructuredRef": {
            "type": "string",
            "description": "Structured communication (e.g. Belgian `+++123/4567/89012+++` reference). Used only when `remittanceUnstructured` is empty.",
            "nullable": true,
            "example": "+++090/9337/55493+++"
          },
          "remittanceUnstructured": {
            "type": "string",
            "description": "Free-text communication shown to the beneficiary. Takes precedence over `remittanceStructuredRef`.",
            "nullable": true,
            "example": "Invoice 2026-0042"
          },
          "dateExecution": {
            "type": "string",
            "description": "Requested execution date. Leave empty for immediate execution. Only honoured when the bank supports it (`sepaSpecificPaymentDate` in the payment info).",
            "format": "date-time",
            "nullable": true
          },
          "end2EndId": {
            "type": "string",
            "description": "Your reference for this transfer, carried end to end through the banking chain (max. 35 characters in SEPA).",
            "example": "INV-2026-0042"
          },
          "isInstant": {
            "type": "boolean",
            "description": "Request a SEPA Instant transfer. Check `sepaInstantSupported` in the payment info first."
          },
          "dynamicFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Optional free key/value pairs stored with the payment."
          },
          "counterpartPostalAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/myBanks.API.DTO.TierAddress"
              }
            ],
            "description": "Postal address of the beneficiary. Optional for most banks; see `recipientAddressRequired` in the bulk payment info.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a Payment sent and to be initiated."
      },
      "myBanks.API.DTO.PaymentResponse": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Id of the payment in mybanx.",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "description": "URL where the payer approves the payment with their bank. Redirect them to it, or send it to them.",
            "nullable": true
          },
          "qrCode": {
            "type": "string",
            "description": "URL of an SVG QR code pointing to `url`, to let the payer approve from their phone.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The created payment and the link to approve it."
      },
      "myBanks.API.DTO.RefreshTokenRequest": {
        "required": [
          "refreshToken"
        ],
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "description": "The RefreshToken you received alongside your last Bearer token."
          }
        },
        "additionalProperties": false,
        "description": "Your request to obtain a new AccessToken from a RefreshToken."
      },
      "myBanks.API.DTO.RenewConsent": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "minLength": 1,
            "type": "string",
            "description": "Where the account holder is sent back after approving the new consent at their bank.",
            "example": "https://yourapp.example.com/bank/consent-done"
          }
        },
        "additionalProperties": false,
        "description": "Information about a consent renewal request."
      },
      "myBanks.API.DTO.RenewResponse": {
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "url": {
            "type": "string",
            "description": "URL you have to redirect to in order to renew the consent.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response to a consent renewal request. Contains the redirect URL to the bank."
      },
      "myBanks.API.DTO.RequestToPay": {
        "required": [
          "notifyEmail",
          "redirectURL",
          "uniqueRequests"
        ],
        "type": "object",
        "properties": {
          "redirectURL": {
            "type": "string",
            "description": "Where the debtor is sent after paying.",
            "example": "https://yourapp.example.com/thank-you"
          },
          "notifyEmail": {
            "type": "string",
            "description": "Email of the mybanx user, member of the company owning the bank account, notified about these requests.",
            "example": "jane.doe@company.com"
          },
          "allowRetry": {
            "type": "boolean",
            "description": "Currently ignored.",
            "nullable": true
          },
          "uniqueRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/myBanks.API.DTO.UniqueRequestToPay"
            },
            "description": "The payment requests, one per debtor."
          }
        },
        "additionalProperties": false,
        "description": "A batch of payment requests to be paid into one of your bank accounts."
      },
      "myBanks.API.DTO.RequestToPayResponse": {
        "required": [
          "id",
          "uniqueRequests"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Id of the batch in mybanx.",
            "format": "uuid"
          },
          "uniqueRequests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/myBanks.API.DTO.UniqueRequestResponse"
            },
            "description": "One entry per request, in the order they were sent."
          }
        },
        "additionalProperties": false,
        "description": "The created batch of payment requests."
      },
      "myBanks.API.DTO.TierAddress": {
        "required": [
          "addressType",
          "buildingNumber",
          "country",
          "countrySubDivision",
          "department",
          "postCode",
          "streetName",
          "subDepartment",
          "townName"
        ],
        "type": "object",
        "properties": {
          "addressType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/myBanks.API.DTO.TierAddressType"
              }
            ],
            "description": "Values: 0 = BUSINESS, 1 = CORRESPONDENCE, 2 = DELIVERYTO, 3 = MAILTO, 4 = POBOX, 5 = POSTAL, 6 = RESIDENTIAL, 7 = STATEMENT."
          },
          "department": {
            "type": "string"
          },
          "subDepartment": {
            "type": "string"
          },
          "streetName": {
            "type": "string"
          },
          "buildingNumber": {
            "type": "string"
          },
          "postCode": {
            "type": "string",
            "example": "6000"
          },
          "townName": {
            "type": "string",
            "example": "Charleroi"
          },
          "countrySubDivision": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "description": "ISO 3166 alpha-2 country code.",
            "example": "BE"
          }
        },
        "additionalProperties": false,
        "description": "Postal address (ISO 20022 structure). When you send an address, every non-nullable field is required."
      },
      "myBanks.API.DTO.TierAddressType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "description": "Values: 0 = BUSINESS, 1 = CORRESPONDENCE, 2 = DELIVERYTO, 3 = MAILTO, 4 = POBOX, 5 = POSTAL, 6 = RESIDENTIAL, 7 = STATEMENT.",
        "format": "int32"
      },
      "myBanks.API.DTO.Token": {
        "required": [
          "applicationKey",
          "clientKey"
        ],
        "type": "object",
        "properties": {
          "applicationKey": {
            "type": "string",
            "description": "Your Application Key. Check mybanx.io online to retrieve that information.",
            "format": "uuid"
          },
          "clientKey": {
            "type": "string",
            "description": "Your Client Key. Check mybanx.io online to retrieve that information.",
            "format": "uuid"
          },
          "whoAmI": {
            "type": "string",
            "description": "A not mandatory string allowing you to identify your tool/version in our logs.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "This is your request to Authenticate."
      },
      "myBanks.API.DTO.Transaction": {
        "required": [
          "amount",
          "balanceAfter",
          "balanceBefore",
          "bankAccountId",
          "companyId",
          "dateCreated",
          "id",
          "isAnnotated",
          "sequence",
          "statementNumber"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "IDentifier of the transaction in mybanx. Subject to change in time.",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Unique identifier of the transaction within its bank account. Decreases over time: a lower value is a newer transaction.\r\nPass the newest one you hold as `sequence` to fetch only newer transactions.",
            "format": "int64"
          },
          "dateCreated": {
            "type": "string",
            "description": "Date and time the transaction has been saved in mybanx.io",
            "format": "date-time"
          },
          "bankAccountId": {
            "type": "string",
            "description": "Bank Account the transaction is related to.",
            "format": "uuid"
          },
          "companyId": {
            "type": "string",
            "description": "Company the transaction is related to.",
            "format": "uuid"
          },
          "remoteId": {
            "type": "string",
            "description": "IDentifier of the transaction in the bank's system. Might not be unique.",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Amount of the transaction, in `currency`.",
            "format": "double"
          },
          "balanceBefore": {
            "type": "number",
            "description": "Balance before executing the transaction.",
            "format": "double"
          },
          "balanceAfter": {
            "type": "number",
            "description": "Balance after the execution of the transaction.",
            "format": "double"
          },
          "counterpartReference": {
            "type": "string",
            "description": "IBAN/BBAN of the counterparty.",
            "nullable": true
          },
          "counterpartName": {
            "type": "string",
            "description": "Name of the counterparty.",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "Currency of the bank account (EUR, GBP, USD? etc).",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "description": "Value coming from ISO20022, identifying the type of transaction (card payment, etc).",
            "nullable": true
          },
          "family": {
            "type": "string",
            "description": "Value coming from ISO20022, identifying the family of transaction (card payment, etc).",
            "nullable": true
          },
          "subFamily": {
            "type": "string",
            "description": "Value coming from ISO20022, identifying the sub-family of transaction (card payment, etc).",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Contains either the remittance structured or unstructured values.",
            "nullable": true
          },
          "remittanceStructuredRef": {
            "type": "string",
            "description": "Structured communication reference (e.g. Belgian `+++123/4567/89012+++`).",
            "nullable": true
          },
          "remittanceStructuredCode": {
            "type": "string",
            "description": "Type code of the structured communication.",
            "nullable": true
          },
          "remittanceStructuredIssuer": {
            "type": "string",
            "description": "Issuer of the structured communication.",
            "nullable": true
          },
          "remittanceUnstructured": {
            "type": "string",
            "description": "Free-text communication of the payment.",
            "nullable": true
          },
          "dateExecution": {
            "type": "string",
            "description": "Date of execution of the transaction.",
            "format": "date-time",
            "nullable": true
          },
          "dateValue": {
            "type": "string",
            "description": "Value date of the transaction.",
            "format": "date-time",
            "nullable": true
          },
          "end2EndId": {
            "type": "string",
            "description": "Unique Identifier which \"should\" follow a transaction end to end.",
            "nullable": true
          },
          "isAnnotated": {
            "type": "boolean",
            "description": "True means this transaction received a comment from the client."
          },
          "statementNumber": {
            "type": "integer",
            "description": "Statement Number, used for CODA formats, is the sequential ID of day of the transactions.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Transaction represents a line in your statements list."
      },
      "myBanks.API.DTO.UniqueRequestResponse": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of the payment request in mybanx.",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "description": "Payment link to send to the debtor.",
            "nullable": true
          },
          "qrCode": {
            "type": "string",
            "description": "URL of an SVG QR code pointing to the payment link.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A created payment request and its links."
      },
      "myBanks.API.DTO.UniqueRequestToPay": {
        "required": [
          "amount",
          "end2EndId",
          "message"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Amount requested, positive, in `currency`.",
            "format": "double",
            "example": 125.5
          },
          "counterpartName": {
            "type": "string",
            "description": "Name of the debtor.",
            "nullable": true
          },
          "counterpartyBankAccount": {
            "type": "string",
            "description": "Bank account identifier (IBAN for example) of the counterparty, if known.",
            "nullable": true
          },
          "counterpartEmail": {
            "type": "string",
            "description": "Email of the debtor.",
            "nullable": true
          },
          "counterpartCountryId": {
            "type": "string",
            "description": "ISO Code 2 of the country of the counterparty.",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code. Default `EUR`.",
            "nullable": true
          },
          "remittanceStructuredRef": {
            "type": "string",
            "description": "Structured communication the debtor must use (e.g. Belgian `+++123/4567/89012+++` reference).",
            "nullable": true
          },
          "remittanceUnstructured": {
            "type": "string",
            "description": "Free-text communication of the payment.",
            "nullable": true
          },
          "end2EndId": {
            "type": "string",
            "description": "Your reference for this request, carried end to end with the payment.",
            "example": "INV-2026-0042"
          },
          "message": {
            "type": "string",
            "description": "Message displayed to the debtor before paying. Also sent by email."
          },
          "documentURL": {
            "type": "string",
            "description": "URL of the document linked to this RequestToPay (PDF of an invoice, etc).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One payment request sent to a debtor."
      },
      "myBanks.API.DTO.WhoAmi": {
        "required": [
          "fullName"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "description": "Your company name used to authenticate."
          },
          "licenseValidUntil": {
            "type": "string",
            "description": "Validity of your license to access the mybanx APIs.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "WhoAmI gives you information about who you are and your license validity."
      },
      "myBanks.Data.DTO.DtoCompany": {
        "required": [
          "companyType",
          "fullName",
          "ibaNs",
          "id",
          "isDefault",
          "name",
          "nbBankAccounts",
          "vat"
        ],
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Unique IDentifier of the Company",
            "format": "uuid"
          },
          "fullName": {
            "type": "string",
            "description": "Name of the company"
          },
          "name": {
            "type": "string",
            "readOnly": true
          },
          "country": {
            "type": "string",
            "description": "ISO Code 2 of the country (BE, FR, etc)",
            "nullable": true
          },
          "vat": {
            "type": "string",
            "description": "VAT or legal entity unique identifier."
          },
          "nbBankAccounts": {
            "type": "integer",
            "description": "Number of Bank Accounts connected by the company.",
            "format": "int32"
          },
          "companyType": {
            "type": "integer",
            "description": "Is it a person or a company.",
            "format": "int32"
          },
          "ibaNs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/myBanks.Data.DTO.DtoIBAN"
            },
            "description": "List of Bank Accounts (IBANs) connected by the company."
          },
          "isDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Company object contains information about a client which is sharing data with your app."
      },
      "myBanks.Data.DTO.DtoIBAN": {
        "required": [
          "account",
          "companyName",
          "countryId",
          "countryName",
          "currency",
          "dateCreated",
          "description",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique IDentifier of the bank account.",
            "format": "uuid"
          },
          "account": {
            "type": "string",
            "description": "IBAN or BBAN of the Bank Account."
          },
          "currency": {
            "type": "string",
            "description": "Currency code: EUR, USD, GBP, etc."
          },
          "validUntil": {
            "type": "string",
            "description": "Validity of the consent received from the bank to access this Bank Account's data (transactions and balances).",
            "format": "date-time",
            "nullable": true
          },
          "countryId": {
            "type": "string",
            "description": "ISO Code 2 of the country (BE, FR, etc)"
          },
          "name": {
            "type": "string",
            "description": "Name provided by the bank."
          },
          "ownerName": {
            "type": "string",
            "description": "Account holder name provided by the bank.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description provided by the bank."
          },
          "cashAccountType": {
            "type": "string",
            "description": "ISO 20022 cash account type (e.g. CACC current account, SVGS savings).",
            "nullable": true
          },
          "cashAccountTypeRaw": {
            "type": "string",
            "description": "Account type as returned by the bank, before normalisation.",
            "nullable": true
          },
          "product": {
            "type": "string",
            "description": "Product name provided by the bank.",
            "nullable": true
          },
          "balance": {
            "type": "number",
            "description": "Last known balance, in `currency`. Use the balance endpoints for its date and type.",
            "format": "double",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "description": "Name of the company owning the account."
          },
          "bankName": {
            "type": "string",
            "description": "Name of the bank.",
            "nullable": true
          },
          "bic": {
            "type": "string",
            "description": "BIC of the bank.",
            "nullable": true
          },
          "dateCreated": {
            "type": "string",
            "description": "Date the account was connected to mybanx.",
            "format": "date-time"
          },
          "countryName": {
            "type": "string",
            "description": "Name of the country of the account."
          }
        },
        "additionalProperties": false
      },
      "myBanks.Data.Entities.OrderByType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Values: 0 = Undefined, 1 = ExecutionDate, 2 = ValueDate.",
        "format": "int32"
      },
      "myBanks.Service.Services.ExportDateType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Values: 0 = EXECUTION_DATE, 1 = VALUE_DATE, 2 = MBX_DATE.",
        "format": "int32"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "The `bearer` returned by `POST /v2/auth` (or `POST /v2/auth/refresh`), sent as `Authorization: Bearer <token>`. Valid for 2 hours.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "tags": [
    {
      "name": "Auth",
      "description": "Get, refresh and inspect your access token. Start here: every other endpoint needs the bearer token returned by `POST /v2/auth`."
    },
    {
      "name": "Balance",
      "description": "Balances of a bank account, as reported by the bank (or computed by mybanx when the bank does not provide one)."
    },
    {
      "name": "BankAccount",
      "description": "Bank accounts connected to mybanx, and renewal of their bank consent. The `id` of a bank account is the `bankAccountId` used by every other endpoint."
    },
    {
      "name": "BulkPayment",
      "description": "Bulk payments: several SEPA transfers approved by the payer in one go."
    },
    {
      "name": "Company",
      "description": "Companies that share their bank data with your application (indirect access)."
    },
    {
      "name": "Export",
      "description": "Transactions exported as bank statement files (CAMT.053, CODA, CSV, HTML, MT940)."
    },
    {
      "name": "Invitation",
      "description": "Invite companies to share their bank data with your application."
    },
    {
      "name": "Payment",
      "description": "Single payments (SEPA credit transfers). The payer always approves the payment with their bank before it is executed."
    },
    {
      "name": "Pilot",
      "description": "Pilot mode (reserved for integrations driven by mybanx)."
    },
    {
      "name": "RequestToPay",
      "description": "Request-to-pay: payment links (URL and QR code) you send to a debtor so they pay into your bank account."
    },
    {
      "name": "Transaction",
      "description": "Transactions (statement lines) of a bank account, newest first."
    }
  ]
}