{
  "openapi": "3.1.0",
  "info": {
    "title": "Rahunok Free Public Tools API (NBU QR + Invoice/Act/Waybill PDF + IBAN + Counterparty + Statement + Keyboard)",
    "version": "1.4.0",
    "description": "Free, zero-auth APIs for Ukrainian NBU payment QR codes (PNG/SVG), printable A4 payment invoice / Act / Delivery Note PDFs, Ukrainian IBAN verification (Mod-97, NBU MFO, 2600/2620), EDRPOU/RNOKPP counterparty verification, multi-bank CSV/XML/MT940/1C statement parser + FOP Income Book converter, and EN/UA/RU keyboard layout switcher + KMU #55 transliteration. Built for ChatGPT, Gemini, Claude, Grok and business tools.",
    "contact": {
      "name": "Rahunok",
      "url": "https://rahunok.com",
      "email": "rahunok@rahunok.com"
    }
  },
  "servers": [
    {
      "url": "https://rahunok.com"
    }
  ],
  "paths": {
    "/api/qr/nbu.png": {
      "get": {
        "operationId": "createNbuQrPng",
        "summary": "Create an NBU payment QR code as a PNG image",
        "parameters": [
          {
            "name": "recipient",
            "in": "query",
            "required": true,
            "description": "Recipient name, up to 70 characters.",
            "schema": {
              "type": "string",
              "maxLength": 70
            }
          },
          {
            "name": "tax_id",
            "in": "query",
            "required": true,
            "description": "EDRPOU (8 digits) or RNOKPP (10 digits) of the recipient.",
            "schema": {
              "type": "string",
              "pattern": "^(\\d{8}|\\d{10})$"
            }
          },
          {
            "name": "iban",
            "in": "query",
            "required": true,
            "description": "Ukrainian IBAN: UA followed by 27 digits.",
            "schema": {
              "type": "string",
              "pattern": "^UA\\d{27}$"
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "required": true,
            "description": "Payment purpose, up to 140 characters.",
            "schema": {
              "type": "string",
              "maxLength": 140
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "Amount in UAH with up to 2 decimals. Omit it and the payer enters any amount.",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Image size in pixels.",
            "schema": {
              "type": "integer",
              "minimum": 256,
              "maximum": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "QR code image",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "parameter": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/qr/nbu.svg": {
      "get": {
        "operationId": "createNbuQrSvg",
        "summary": "Create an NBU payment QR code as an SVG image",
        "parameters": [
          {
            "name": "recipient",
            "in": "query",
            "required": true,
            "description": "Recipient name, up to 70 characters.",
            "schema": {
              "type": "string",
              "maxLength": 70
            }
          },
          {
            "name": "tax_id",
            "in": "query",
            "required": true,
            "description": "EDRPOU (8 digits) or RNOKPP (10 digits) of the recipient.",
            "schema": {
              "type": "string",
              "pattern": "^(\\d{8}|\\d{10})$"
            }
          },
          {
            "name": "iban",
            "in": "query",
            "required": true,
            "description": "Ukrainian IBAN: UA followed by 27 digits.",
            "schema": {
              "type": "string",
              "pattern": "^UA\\d{27}$"
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "required": true,
            "description": "Payment purpose, up to 140 characters.",
            "schema": {
              "type": "string",
              "maxLength": 140
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "Amount in UAH with up to 2 decimals. Omit it and the payer enters any amount.",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Image size in pixels.",
            "schema": {
              "type": "integer",
              "minimum": 256,
              "maximum": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "QR code image",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "parameter": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/invoice.pdf": {
      "get": {
        "operationId": "createInvoicePdfGet",
        "summary": "Generate a free A4 invoice PDF from query parameters",
        "parameters": [
          {
            "name": "seller",
            "in": "query",
            "required": true,
            "description": "Seller FOP or company legal name (max 160 chars).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "iban",
            "in": "query",
            "required": true,
            "description": "Ukrainian IBAN (UA + 27 digits for UAH) or international IBAN for EUR/USD/PLN.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "items",
            "in": "query",
            "required": false,
            "description": "Line items as \"Title|qty|unit|price;Title2|qty|unit|price\" or JSON array [{title,quantity,unit,price,discount_percent}].",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tax_id",
            "in": "query",
            "required": false,
            "description": "Seller EDRPOU (8 digits) or RNOKPP (10 digits). Required for NBU QR code on UAH invoices.",
            "schema": {
              "type": "string",
              "pattern": "^(\\d{8}|\\d{10})$"
            }
          },
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "description": "Single-line service/product description if items omitted.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "Single-line total amount if items omitted.",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "customer",
            "in": "query",
            "required": false,
            "description": "Optional buyer name, company or @instagram handle.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_phone",
            "in": "query",
            "required": false,
            "description": "Optional buyer phone or messenger handle.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_tax_id",
            "in": "query",
            "required": false,
            "description": "Optional buyer EDRPOU / RNOKPP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "query",
            "required": false,
            "description": "Invoice number (e.g. RH-2026-105). Auto-generated if omitted.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Issue date in YYYY-MM-DD format (defaults to today).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "due_days",
            "in": "query",
            "required": false,
            "description": "Payment term in days from issue date (default 3).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 365
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Invoice currency: UAH (default), EUR, USD or PLN.",
            "schema": {
              "type": "string",
              "enum": [
                "UAH",
                "EUR",
                "USD",
                "PLN"
              ],
              "default": "UAH"
            }
          },
          {
            "name": "tax_mode",
            "in": "query",
            "required": false,
            "description": "VAT calculation mode.",
            "schema": {
              "type": "string",
              "enum": [
                "no-vat",
                "vat-on-top",
                "vat-included",
                "vat-exempt"
              ],
              "default": "no-vat"
            }
          },
          {
            "name": "vat_rate",
            "in": "query",
            "required": false,
            "description": "VAT percentage when tax_mode uses VAT (default 20).",
            "schema": {
              "type": "number",
              "default": 20
            }
          },
          {
            "name": "basis",
            "in": "query",
            "required": false,
            "description": "Optional contract / order basis (omitted if empty).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "required": false,
            "description": "Optional bank payment purpose (max 140 chars; auto-generated if omitted).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "doc_type",
            "in": "query",
            "required": false,
            "description": "Document type: invoice (default), act (Акт виконаних робіт / наданих послуг), or waybill (Видаткова накладна).",
            "schema": {
              "type": "string",
              "enum": [
                "invoice",
                "act",
                "waybill"
              ],
              "default": "invoice"
            }
          },
          {
            "name": "doc_title",
            "in": "query",
            "required": false,
            "description": "Optional custom document title override.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "signer",
            "in": "query",
            "required": false,
            "description": "Optional name of supplier signatory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buyer_signer",
            "in": "query",
            "required": false,
            "description": "Optional name of buyer/client signatory for bilateral Acts and Waybills.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Document UI language: uk (default), en, pl, ru.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "en",
                "pl",
                "ru"
              ],
              "default": "uk"
            }
          },
          {
            "name": "download",
            "in": "query",
            "required": false,
            "description": "Pass 1 to force Content-Disposition: attachment instead of inline.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Printable A4 invoice PDF with Cyrillic support and embedded NBU QR code",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "parameter": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "example": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createInvoicePdfPost",
        "summary": "Generate a free A4 invoice PDF from JSON payload (seller, items[], prices, optional customer)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "seller",
                  "iban",
                  "items"
                ],
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "en",
                      "pl",
                      "ru"
                    ],
                    "default": "uk"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "UAH",
                      "EUR",
                      "USD",
                      "PLN"
                    ],
                    "default": "UAH"
                  },
                  "doc_type": {
                    "type": "string",
                    "enum": [
                      "invoice",
                      "act",
                      "waybill"
                    ],
                    "default": "invoice",
                    "description": "Primary document kind: invoice, service acceptance act, or delivery note (waybill)."
                  },
                  "doc_title": {
                    "type": "string",
                    "description": "Optional heading override."
                  },
                  "number": {
                    "type": "string",
                    "description": "Invoice number (defaults to RH-YYYY-MMDD)."
                  },
                  "issue_date": {
                    "type": "string",
                    "description": "YYYY-MM-DD"
                  },
                  "due_date": {
                    "type": "string",
                    "description": "YYYY-MM-DD"
                  },
                  "due_days": {
                    "type": "integer",
                    "default": 3
                  },
                  "basis": {
                    "type": "string",
                    "description": "Optional contract reference; omitted when empty."
                  },
                  "tax_mode": {
                    "type": "string",
                    "enum": [
                      "no-vat",
                      "vat-on-top",
                      "vat-included",
                      "vat-exempt"
                    ],
                    "default": "no-vat"
                  },
                  "vat_rate": {
                    "type": "number",
                    "default": 20
                  },
                  "purpose": {
                    "type": "string",
                    "maxLength": 140
                  },
                  "notes": {
                    "type": "string"
                  },
                  "signer": {
                    "type": "string"
                  },
                  "buyer_signer": {
                    "type": "string",
                    "description": "Buyer signatory name for Acts and Delivery Notes."
                  },
                  "adjustment": {
                    "type": "number",
                    "default": 0
                  },
                  "download": {
                    "type": "boolean",
                    "default": false
                  },
                  "seller": {
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "Seller FOP or company legal name"
                      },
                      {
                        "type": "object",
                        "required": [
                          "name"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "tax_id": {
                            "type": "string",
                            "description": "8-digit EDRPOU or 10-digit RNOKPP (for NBU QR)"
                          },
                          "iban": {
                            "type": "string"
                          },
                          "bank_name": {
                            "type": "string"
                          },
                          "vat_number": {
                            "type": "string"
                          },
                          "address": {
                            "type": "string"
                          },
                          "phone": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          }
                        }
                      }
                    ]
                  },
                  "tax_id": {
                    "type": "string",
                    "description": "Seller tax ID (if seller passed as string)"
                  },
                  "iban": {
                    "type": "string",
                    "description": "Seller IBAN (if seller passed as string)"
                  },
                  "customer": {
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "Buyer name or @instagram handle"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "tax_id": {
                            "type": "string"
                          },
                          "phone": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "address": {
                            "type": "string"
                          }
                        }
                      }
                    ]
                  },
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 40,
                    "items": {
                      "type": "object",
                      "required": [
                        "title",
                        "price"
                      ],
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "code": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number",
                          "default": 1
                        },
                        "unit": {
                          "type": "string",
                          "default": "посл."
                        },
                        "price": {
                          "type": "number"
                        },
                        "discount_percent": {
                          "type": "number",
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Printable A4 invoice PDF with Cyrillic support and embedded NBU QR code",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "parameter": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "example": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/invoice": {
      "get": {
        "operationId": "getInvoicePdfLinks",
        "summary": "Get clickable PDF download link, QR image URL and totals as JSON (?output=json), or API guide if no query params",
        "parameters": [
          {
            "name": "seller",
            "in": "query",
            "required": true,
            "description": "Seller FOP or company legal name (max 160 chars).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "iban",
            "in": "query",
            "required": true,
            "description": "Ukrainian IBAN (UA + 27 digits for UAH) or international IBAN for EUR/USD/PLN.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "items",
            "in": "query",
            "required": false,
            "description": "Line items as \"Title|qty|unit|price;Title2|qty|unit|price\" or JSON array [{title,quantity,unit,price,discount_percent}].",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tax_id",
            "in": "query",
            "required": false,
            "description": "Seller EDRPOU (8 digits) or RNOKPP (10 digits). Required for NBU QR code on UAH invoices.",
            "schema": {
              "type": "string",
              "pattern": "^(\\d{8}|\\d{10})$"
            }
          },
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "description": "Single-line service/product description if items omitted.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "Single-line total amount if items omitted.",
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "customer",
            "in": "query",
            "required": false,
            "description": "Optional buyer name, company or @instagram handle.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_phone",
            "in": "query",
            "required": false,
            "description": "Optional buyer phone or messenger handle.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customer_tax_id",
            "in": "query",
            "required": false,
            "description": "Optional buyer EDRPOU / RNOKPP.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "number",
            "in": "query",
            "required": false,
            "description": "Invoice number (e.g. RH-2026-105). Auto-generated if omitted.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Issue date in YYYY-MM-DD format (defaults to today).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "due_days",
            "in": "query",
            "required": false,
            "description": "Payment term in days from issue date (default 3).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 365
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Invoice currency: UAH (default), EUR, USD or PLN.",
            "schema": {
              "type": "string",
              "enum": [
                "UAH",
                "EUR",
                "USD",
                "PLN"
              ],
              "default": "UAH"
            }
          },
          {
            "name": "tax_mode",
            "in": "query",
            "required": false,
            "description": "VAT calculation mode.",
            "schema": {
              "type": "string",
              "enum": [
                "no-vat",
                "vat-on-top",
                "vat-included",
                "vat-exempt"
              ],
              "default": "no-vat"
            }
          },
          {
            "name": "vat_rate",
            "in": "query",
            "required": false,
            "description": "VAT percentage when tax_mode uses VAT (default 20).",
            "schema": {
              "type": "number",
              "default": 20
            }
          },
          {
            "name": "basis",
            "in": "query",
            "required": false,
            "description": "Optional contract / order basis (omitted if empty).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "required": false,
            "description": "Optional bank payment purpose (max 140 chars; auto-generated if omitted).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "doc_type",
            "in": "query",
            "required": false,
            "description": "Document type: invoice (default), act (Акт виконаних робіт / наданих послуг), or waybill (Видаткова накладна).",
            "schema": {
              "type": "string",
              "enum": [
                "invoice",
                "act",
                "waybill"
              ],
              "default": "invoice"
            }
          },
          {
            "name": "doc_title",
            "in": "query",
            "required": false,
            "description": "Optional custom document title override.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "signer",
            "in": "query",
            "required": false,
            "description": "Optional name of supplier signatory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buyer_signer",
            "in": "query",
            "required": false,
            "description": "Optional name of buyer/client signatory for bilateral Acts and Waybills.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Document UI language: uk (default), en, pl, ru.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "en",
                "pl",
                "ru"
              ],
              "default": "uk"
            }
          },
          {
            "name": "download",
            "in": "query",
            "required": false,
            "description": "Pass 1 to force Content-Disposition: attachment instead of inline.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "output",
            "in": "query",
            "required": false,
            "description": "Pass json to receive clickable pdf_url & qr_png links for chat rendering.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "pdf"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON metadata containing clickable PDF URL, NBU QR PNG URL and totals for AI chats",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "is_free": {
                      "type": "boolean"
                    },
                    "invoice_number": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "amount_words_uk": {
                      "type": "string"
                    },
                    "pdf_url": {
                      "type": "string"
                    },
                    "pdf_download_url": {
                      "type": "string"
                    },
                    "qr_png": {
                      "type": "string",
                      "nullable": true
                    },
                    "nbu_payment_link": {
                      "type": "string",
                      "nullable": true
                    },
                    "markdown": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createInvoiceLinksPost",
        "summary": "Compute invoice totals and return direct clickable PDF link + NBU QR PNG URL for ChatGPT/Gemini/Claude/Grok responses",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "seller",
                  "iban",
                  "items"
                ],
                "properties": {
                  "lang": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "en",
                      "pl",
                      "ru"
                    ],
                    "default": "uk"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "UAH",
                      "EUR",
                      "USD",
                      "PLN"
                    ],
                    "default": "UAH"
                  },
                  "doc_type": {
                    "type": "string",
                    "enum": [
                      "invoice",
                      "act",
                      "waybill"
                    ],
                    "default": "invoice",
                    "description": "Primary document kind: invoice, service acceptance act, or delivery note (waybill)."
                  },
                  "doc_title": {
                    "type": "string",
                    "description": "Optional heading override."
                  },
                  "number": {
                    "type": "string",
                    "description": "Invoice number (defaults to RH-YYYY-MMDD)."
                  },
                  "issue_date": {
                    "type": "string",
                    "description": "YYYY-MM-DD"
                  },
                  "due_date": {
                    "type": "string",
                    "description": "YYYY-MM-DD"
                  },
                  "due_days": {
                    "type": "integer",
                    "default": 3
                  },
                  "basis": {
                    "type": "string",
                    "description": "Optional contract reference; omitted when empty."
                  },
                  "tax_mode": {
                    "type": "string",
                    "enum": [
                      "no-vat",
                      "vat-on-top",
                      "vat-included",
                      "vat-exempt"
                    ],
                    "default": "no-vat"
                  },
                  "vat_rate": {
                    "type": "number",
                    "default": 20
                  },
                  "purpose": {
                    "type": "string",
                    "maxLength": 140
                  },
                  "notes": {
                    "type": "string"
                  },
                  "signer": {
                    "type": "string"
                  },
                  "buyer_signer": {
                    "type": "string",
                    "description": "Buyer signatory name for Acts and Delivery Notes."
                  },
                  "adjustment": {
                    "type": "number",
                    "default": 0
                  },
                  "download": {
                    "type": "boolean",
                    "default": false
                  },
                  "seller": {
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "Seller FOP or company legal name"
                      },
                      {
                        "type": "object",
                        "required": [
                          "name"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "tax_id": {
                            "type": "string",
                            "description": "8-digit EDRPOU or 10-digit RNOKPP (for NBU QR)"
                          },
                          "iban": {
                            "type": "string"
                          },
                          "bank_name": {
                            "type": "string"
                          },
                          "vat_number": {
                            "type": "string"
                          },
                          "address": {
                            "type": "string"
                          },
                          "phone": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          }
                        }
                      }
                    ]
                  },
                  "tax_id": {
                    "type": "string",
                    "description": "Seller tax ID (if seller passed as string)"
                  },
                  "iban": {
                    "type": "string",
                    "description": "Seller IBAN (if seller passed as string)"
                  },
                  "customer": {
                    "oneOf": [
                      {
                        "type": "string",
                        "description": "Buyer name or @instagram handle"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "tax_id": {
                            "type": "string"
                          },
                          "phone": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "address": {
                            "type": "string"
                          }
                        }
                      }
                    ]
                  },
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 40,
                    "items": {
                      "type": "object",
                      "required": [
                        "title",
                        "price"
                      ],
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "code": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number",
                          "default": 1
                        },
                        "unit": {
                          "type": "string",
                          "default": "посл."
                        },
                        "price": {
                          "type": "number"
                        },
                        "discount_percent": {
                          "type": "number",
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON metadata containing clickable PDF URL, NBU QR PNG URL and totals for AI chats",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "is_free": {
                      "type": "boolean"
                    },
                    "invoice_number": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "amount_words_uk": {
                      "type": "string"
                    },
                    "pdf_url": {
                      "type": "string"
                    },
                    "pdf_download_url": {
                      "type": "string"
                    },
                    "qr_png": {
                      "type": "string",
                      "nullable": true
                    },
                    "nbu_payment_link": {
                      "type": "string",
                      "nullable": true
                    },
                    "markdown": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/iban": {
      "get": {
        "operationId": "checkUkrainianIbanGet",
        "summary": "Validate Ukrainian IBAN, resolve NBU bank & 2600/2620 account class (100% Free)",
        "description": "Stateless, no-auth endpoint validating any Ukrainian IBAN (UA + 27 digits) with ISO 13616 Mod-97 checksum, NBU bank lookup by 6-digit MFO (including liquidation status and NovaPay 935871 non-bank detection), and balance account class (2600 business/FOP vs 2620 individual). Calling GET /api/iban without parameters returns API documentation.",
        "parameters": [
          {
            "name": "iban",
            "in": "query",
            "required": false,
            "description": "Ukrainian IBAN (UA + 27 digits, spaces allowed). Alias: account. Omit for JSON guide.",
            "schema": {
              "type": "string",
              "example": "UA223052990000026001234567890"
            }
          },
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Optional alias for iban query parameter.",
            "schema": {
              "type": "string",
              "example": "UA223052990000026001234567890"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Localized explanation language: uk, en, pl, or ru (default: uk).",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "en",
                "pl",
                "ru"
              ],
              "default": "uk"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Structured IBAN validation result or API guide.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "checkUkrainianIbanPost",
        "summary": "Validate Ukrainian IBAN via JSON body (100% Free)",
        "description": "Accepts JSON { \"iban\": \"UA...\", \"lang\": \"uk\" } and returns structured validation metadata.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "iban"
                ],
                "properties": {
                  "iban": {
                    "type": "string",
                    "example": "UA223052990000026001234567890"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "en",
                      "pl",
                      "ru"
                    ],
                    "default": "uk"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured IBAN validation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body or missing iban parameter."
          }
        }
      }
    },
    "/api/counterparty": {
      "get": {
        "operationId": "checkUkrainianCounterpartyGet",
        "summary": "Verify Ukrainian EDRPOU (8 digits) or RNOKPP/IPN (10 digits) and fetch registration + VAT dossier",
        "description": "Validates Mod-11 (EDRPOU) or DRFO (RNOKPP) checksum, checks active vs liquidation status, resolves company name, address, director, VAT IPN, NBU bank license status, and returns prefill fields for /api/invoice.pdf. Free, no API key required.",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": false,
            "description": "8-digit Ukrainian EDRPOU or 10-digit RNOKPP/IPN. If omitted, returns API guide.",
            "schema": {
              "type": "string",
              "example": "37193071"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Response language for status labels and guidance: uk (default), en, pl, or ru.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "en",
                "pl",
                "ru"
              ],
              "default": "uk"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Counterparty dossier and verification result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "is_free": {
                      "type": "boolean"
                    },
                    "price": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "code_type": {
                      "type": "string",
                      "enum": [
                        "edrpou",
                        "rnokpp",
                        "vat_inn",
                        "invalid"
                      ]
                    },
                    "valid_format": {
                      "type": "boolean"
                    },
                    "checksum_valid": {
                      "type": "boolean"
                    },
                    "found_in_registry": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "terminating",
                        "terminated",
                        "unknown",
                        "invalid"
                      ]
                    },
                    "status_label": {
                      "type": "string"
                    },
                    "risk_level": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "short_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "address": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "director": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kved_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kved_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "registration_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "termination_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "vat": {
                      "type": "object"
                    },
                    "single_tax": {
                      "type": "object"
                    },
                    "nbu_institution": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "person_meta": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "proforma_prefill": {
                      "type": "object"
                    },
                    "markdown_summary": {
                      "type": "string"
                    },
                    "human_tool_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "checkUkrainianCounterpartyPost",
        "summary": "Verify Ukrainian counterparty by EDRPOU or RNOKPP via JSON body",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "8-digit EDRPOU or 10-digit RNOKPP/IPN.",
                    "example": "37193071"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "en",
                      "pl",
                      "ru"
                    ],
                    "default": "uk"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Counterparty dossier and verification result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "is_free": {
                      "type": "boolean"
                    },
                    "price": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "code_type": {
                      "type": "string",
                      "enum": [
                        "edrpou",
                        "rnokpp",
                        "vat_inn",
                        "invalid"
                      ]
                    },
                    "valid_format": {
                      "type": "boolean"
                    },
                    "checksum_valid": {
                      "type": "boolean"
                    },
                    "found_in_registry": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "terminating",
                        "terminated",
                        "unknown",
                        "invalid"
                      ]
                    },
                    "status_label": {
                      "type": "string"
                    },
                    "risk_level": {
                      "type": "string",
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "short_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "address": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "director": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kved_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kved_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "registration_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "termination_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "vat": {
                      "type": "object"
                    },
                    "single_tax": {
                      "type": "object"
                    },
                    "nbu_institution": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "person_meta": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "proforma_prefill": {
                      "type": "object"
                    },
                    "markdown_summary": {
                      "type": "string"
                    },
                    "human_tool_url": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing code or invalid JSON"
          }
        }
      }
    },
    "/api/statement": {
      "get": {
        "operationId": "getStatementConverterInfo",
        "summary": "Get supported Ukrainian bank statement formats & API guide, or pass ?sample=demo for a live multi-bank parsed output",
        "parameters": [
          {
            "name": "sample",
            "in": "query",
            "required": false,
            "description": "Pass \"demo\" to inspect live parsed multi-bank results (Privat24 + monobank + PUMB).",
            "schema": {
              "type": "string",
              "enum": [
                "demo"
              ]
            }
          },
          {
            "name": "target_format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "universal_csv",
                "fop_income_book_csv",
                "privat24_csv",
                "monobank_csv",
                "oschad_csv",
                "abank_csv",
                "pumb_csv",
                "raiffeisen_csv",
                "ukrgasbank_csv",
                "pivdenny_csv",
                "camt053_xml",
                "mt940_sta",
                "1c_txt",
                "json"
              ],
              "default": "fop_income_book_csv"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "API guide or parsed demo bank statement JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "convertBankStatementPost",
        "summary": "Parse, classify (FOP Income Book) and convert CSV / XML / JSON / SWIFT MT940 / camt.053 / 1C bank statements",
        "parameters": [
          {
            "name": "output",
            "in": "query",
            "required": false,
            "description": "Return \"json\" metadata + converted text (default) or \"file\" for raw file download.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "file"
              ],
              "default": "json"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "file_name": {
                    "type": "string",
                    "example": "privat24-fop.csv"
                  },
                  "content": {
                    "type": "string",
                    "description": "Raw CSV, XML, JSON, SWIFT MT940 or 1CClientBankExchange statement text."
                  },
                  "content_base64": {
                    "type": "string",
                    "description": "Optional Base64-encoded bytes (useful when source file is Windows-1251)."
                  },
                  "target_format": {
                    "type": "string",
                    "enum": [
                      "universal_csv",
                      "fop_income_book_csv",
                      "privat24_csv",
                      "monobank_csv",
                      "oschad_csv",
                      "abank_csv",
                      "pumb_csv",
                      "raiffeisen_csv",
                      "ukrgasbank_csv",
                      "pivdenny_csv",
                      "camt053_xml",
                      "mt940_sta",
                      "1c_txt",
                      "json"
                    ],
                    "default": "fop_income_book_csv"
                  },
                  "encoding": {
                    "type": "string",
                    "enum": [
                      "utf-8",
                      "windows-1251"
                    ],
                    "default": "utf-8"
                  },
                  "exclude_internal": {
                    "type": "boolean",
                    "default": true
                  },
                  "output": {
                    "type": "string",
                    "enum": [
                      "json",
                      "file"
                    ],
                    "default": "json"
                  },
                  "files": {
                    "type": "array",
                    "description": "Optional multi-bank batch array to merge multiple accounts at once.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "file_name": {
                          "type": "string"
                        },
                        "content": {
                          "type": "string"
                        },
                        "content_base64": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Normalized transactions, FOP Income Book totals and converted statement output",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              },
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Validation error when statement content is missing or invalid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/keyboard": {
      "get": {
        "operationId": "convertKeyboardLayoutGet",
        "summary": "Convert mistyped keyboard layout text (EN <-> UA/RU), clean homoglyphs, or transliterate KMU #55",
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": false,
            "description": "Mistyped or source text to convert (omit to receive API guide).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "auto",
                "en_to_uk",
                "uk_to_en",
                "en_to_ru",
                "ru_to_en",
                "translit_kmu55",
                "fix_homoglyphs_uk",
                "fix_homoglyphs_en"
              ],
              "default": "auto"
            }
          },
          {
            "name": "preserve_tokens",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "case_op",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "upper",
                "lower",
                "title",
                "sentence",
                "invert",
                "clean_spaces"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Converted output and diagnostics",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "is_free": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "string"
                    },
                    "output": {
                      "type": "string"
                    },
                    "requested_mode": {
                      "type": "string"
                    },
                    "detected_mode": {
                      "type": "string"
                    },
                    "changed_chars": {
                      "type": "integer"
                    },
                    "preserved_tokens_count": {
                      "type": "integer"
                    },
                    "mixed_homoglyphs_found": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "convertKeyboardLayoutPost",
        "summary": "Convert multi-line text between keyboard layouts or transliterate KMU #55 via JSON body",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "text"
                ],
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "Source text to convert or clean"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "en_to_uk",
                      "uk_to_en",
                      "en_to_ru",
                      "ru_to_en",
                      "translit_kmu55",
                      "fix_homoglyphs_uk",
                      "fix_homoglyphs_en"
                    ],
                    "default": "auto"
                  },
                  "preserve_tokens": {
                    "type": "boolean",
                    "default": true
                  },
                  "hint_lang": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "en",
                      "pl",
                      "ru"
                    ],
                    "default": "uk"
                  },
                  "case_op": {
                    "type": "string",
                    "enum": [
                      "upper",
                      "lower",
                      "title",
                      "sentence",
                      "invert",
                      "clean_spaces"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Converted output and diagnostics",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "is_free": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "string"
                    },
                    "output": {
                      "type": "string"
                    },
                    "requested_mode": {
                      "type": "string"
                    },
                    "detected_mode": {
                      "type": "string"
                    },
                    "changed_chars": {
                      "type": "integer"
                    },
                    "preserved_tokens_count": {
                      "type": "integer"
                    },
                    "mixed_homoglyphs_found": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing text input"
          }
        }
      }
    },
    "/api/calculator": {
      "get": {
        "operationId": "calculateAcquiringMarginGet",
        "summary": "Calculate net profit erosion from card acquiring fees & POS terminals (GET)",
        "description": "Computes how acquiring fees affect net profit margin on a 10x10 matrix, annual UAH loss, zero-profit orders per month, and P2P finmonitoring risks. Call with no parameters for API guide.",
        "parameters": [
          {
            "name": "preset",
            "in": "query",
            "required": false,
            "description": "Industry preset: rental, dental, ecom, tickets, horeca, b2b, retail, electronics, taxi, azs, postal, diy.",
            "schema": {
              "type": "string",
              "enum": [
                "rental",
                "dental",
                "ecom",
                "tickets",
                "horeca",
                "b2b",
                "retail",
                "electronics",
                "taxi",
                "azs",
                "postal",
                "diy"
              ]
            }
          },
          {
            "name": "check",
            "in": "query",
            "required": false,
            "description": "Average transaction check in UAH (e.g. 1800).",
            "schema": {
              "type": "number",
              "default": 1400
            }
          },
          {
            "name": "orders",
            "in": "query",
            "required": false,
            "description": "Number of payments per month (e.g. 250).",
            "schema": {
              "type": "integer",
              "default": 250
            }
          },
          {
            "name": "margin",
            "in": "query",
            "required": false,
            "description": "Net profit margin percentage before payment fees (e.g. 10).",
            "schema": {
              "type": "number",
              "default": 10
            }
          },
          {
            "name": "rate",
            "in": "query",
            "required": false,
            "description": "Card/online acquiring fee percentage (e.g. 1.5).",
            "schema": {
              "type": "number",
              "default": 1.5
            }
          },
          {
            "name": "pos",
            "in": "query",
            "required": false,
            "description": "Monthly POS terminal rental fee in UAH (e.g. 450 or 0).",
            "schema": {
              "type": "number",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculated profit erosion metrics, 10x10 grid breakdown, and direct invoice/share links."
          }
        }
      },
      "post": {
        "operationId": "calculateAcquiringMarginPost",
        "summary": "Calculate net profit erosion from card acquiring fees & POS terminals (POST JSON)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "preset": {
                    "type": "string",
                    "enum": [
                      "rental",
                      "dental",
                      "ecom",
                      "tickets",
                      "horeca",
                      "b2b",
                      "retail",
                      "electronics",
                      "taxi",
                      "azs",
                      "postal",
                      "diy"
                    ]
                  },
                  "avgCheckUah": {
                    "type": "number",
                    "example": 1800
                  },
                  "monthlyOrders": {
                    "type": "integer",
                    "example": 60
                  },
                  "marginPercent": {
                    "type": "number",
                    "example": 15
                  },
                  "acquiringPercent": {
                    "type": "number",
                    "example": 1.5
                  },
                  "posMonthlyFeeUah": {
                    "type": "number",
                    "example": 0
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculated profit erosion result."
          }
        }
      }
    },
    "/api/banks": {
      "get": {
        "operationId": "listUkrainianBanksGet",
        "summary": "List or search 47 Ukrainian banks, NBU leadership, founding dates & official mobile app links (GET)",
        "description": "Free stateless directory of 47 Ukrainian banks and digital banking apps sourced from the National Bank of Ukraine (bank.gov.ua). Returns logos, official App Store & Google Play links, MFO, EDRPOU, founding dates, current Chairpersons, and brief histories.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search query by bank name, MFO, EDRPOU, CEO name, or city.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Filter by category: state, foreign, private, digital, nonbank.",
            "schema": {
              "type": "string",
              "enum": [
                "state",
                "foreign",
                "private",
                "digital",
                "nonbank"
              ]
            }
          },
          {
            "name": "mfo",
            "in": "query",
            "required": false,
            "description": "Filter by exact 6-digit NBU MFO code (e.g. 305299).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "edrpou",
            "in": "query",
            "required": false,
            "description": "Filter by exact 8-digit EDRPOU code (e.g. 14360570).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON list of Ukrainian banks with NBU registry data and official store links."
          }
        }
      }
    }
  }
}