{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frihet-io/json-schema/frihet-io-bank-match-schema.json",
  "title": "BankMatch",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frihet-io-banking-api-openapi.yml#/components/schemas/BankMatch",
  "type": "object",
  "required": [
    "documentId",
    "documentType"
  ],
  "properties": {
    "documentId": {
      "type": "string",
      "description": "ID of the invoice or expense to match. Must belong to your workspace."
    },
    "documentType": {
      "type": "string",
      "enum": [
        "invoice",
        "expense"
      ]
    },
    "notes": {
      "type": "string",
      "maxLength": 2000
    }
  }
}