{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mynto-no/json-schema/mynto-no-publicapi-create-invoice-line-schema.json",
  "title": "publicapi.CreateInvoiceLine",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mynto-no-openapi.yml#/components/schemas/publicapi.CreateInvoiceLine",
  "properties": {
    "description": {
      "type": "string"
    },
    "quantity": {
      "type": "number"
    },
    "unitCode": {
      "title": "UnitCode is a UN/ECE rec 20 unit; defaults to EA.\n",
      "type": "string"
    },
    "unitPriceMinor": {
      "format": "int64",
      "type": "integer"
    },
    "vatRate": {
      "description": "A company outside the MVA register always gets 0 regardless of what is sent here — it may not charge MVA, and honouring the caller would produce an illegal invoice.\n",
      "format": "int64",
      "title": "VATRate is the MVA percentage: 0, 12, 15 or 25. Omit to default to 25.\n",
      "type": "integer"
    }
  },
  "required": [
    "description",
    "quantity",
    "unitPriceMinor",
    "vatRate",
    "unitCode"
  ],
  "type": "object"
}