{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/credit-issuance-block",
    "title": "Credit Issuance Block",
    "type": "object",
    "required": [
        "project_doi",
        "registry",
        "serial_start",
        "serial_end",
        "quantity",
        "vintage",
        "issuance_date"
    ],
    "properties": {
        "project_doi": {
            "title": "Project ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "verification_doi": {
            "title": "Verification report ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "registry": {
            "title": "Registry",
            "type": "string",
            "maxLength": 1000
        },
        "serial_start": {
            "title": "Serial number start",
            "type": "string",
            "maxLength": 1000
        },
        "serial_end": {
            "title": "Serial number end",
            "type": "string",
            "maxLength": 1000
        },
        "quantity": {
            "title": "Quantity (credits)",
            "type": "integer"
        },
        "vintage": {
            "title": "Vintage",
            "type": "integer"
        },
        "issuance_date": {
            "title": "Issuance date",
            "type": "string",
            "format": "date"
        },
        "unit_type": {
            "title": "Unit type",
            "type": "string",
            "enum": [
                "VCU",
                "VER",
                "CER",
                "A6.4ER",
                "ITMO",
                "CCC",
                "other"
            ]
        }
    },
    "additionalProperties": true
}