{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarafintech/json-schema/clarafintech-transaction-invoice-response-v3-schema.json",
  "title": "TransactionInvoiceResponseV3",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarafintech-invoices-api-openapi.yml#/components/schemas/TransactionInvoiceResponseV3",
  "type": "object",
  "properties": {
    "transactionUuid": {
      "type": "string",
      "format": "uuid"
    },
    "invoices": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvoiceV3"
      }
    },
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvoiceV3"
      }
    },
    "totalElements": {
      "type": "integer"
    },
    "totalPages": {
      "type": "integer"
    },
    "size": {
      "type": "integer"
    },
    "number": {
      "type": "integer"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "InvoiceV3": {
      "type": "object",
      "properties": {
        "invoiceId": {
          "type": "string"
        },
        "invoiceNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "taxRegime": {
          "type": "string"
        },
        "issuer": {
          "type": "object",
          "properties": {
            "rfc": {
              "type": "string"
            },
            "businessName": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "taxReceipts": {
          "type": "object",
          "additionalProperties": true
        },
        "tax": {
          "type": "object",
          "additionalProperties": true
        },
        "amount": {
          "type": "object",
          "properties": {
            "total": {
              "type": "number"
            },
            "subTotal": {
              "type": "number"
            },
            "currency": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "documentDate": {
          "type": "string",
          "format": "date"
        },
        "xmlStatus": {
          "type": "string"
        },
        "xmlCode": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}