{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-accountant-document-match-bulk-mutation-response-schema.json",
  "title": "AccountantDocumentMatchBulkMutationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-accountant-documents-api-openapi.yml#/components/schemas/AccountantDocumentMatchBulkMutationResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "success",
    "data"
  ],
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "matches",
        "replacementJeId",
        "voidedJeId"
      ],
      "properties": {
        "matches": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/AccountantDocumentMatchMutation"
          }
        },
        "replacementJeId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "voidedJeId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        }
      }
    }
  },
  "$defs": {
    "AccountantDocumentMatchMutation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "matchId",
        "documentId",
        "transactionId",
        "status",
        "method",
        "confidence",
        "amountCents",
        "currency",
        "minorUnitExponent"
      ],
      "properties": {
        "matchId": {
          "type": "string",
          "format": "uuid"
        },
        "documentId": {
          "type": "string",
          "format": "uuid"
        },
        "transactionId": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "const": "applied"
        },
        "method": {
          "type": [
            "string",
            "null"
          ]
        },
        "confidence": {
          "type": [
            "number",
            "null"
          ]
        },
        "amountCents": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "minorUnitExponent": {
          "type": "integer",
          "const": 2
        }
      }
    }
  }
}