{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/navision/json-schema/navision-journal-line-schema.json",
  "title": "JournalLine",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/navision-journals-api-openapi.yml#/components/schemas/JournalLine",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "journalId": {
      "type": "string",
      "format": "uuid"
    },
    "journalDisplayName": {
      "type": "string",
      "maxLength": 100
    },
    "lineNumber": {
      "type": "integer"
    },
    "accountType": {
      "type": "string",
      "enum": [
        "G/L Account",
        "Customer",
        "Vendor",
        "Bank Account",
        "Fixed Asset",
        "Employee"
      ]
    },
    "accountId": {
      "type": "string",
      "format": "uuid"
    },
    "accountNumber": {
      "type": "string",
      "maxLength": 20
    },
    "postingDate": {
      "type": "string",
      "format": "date"
    },
    "documentNumber": {
      "type": "string",
      "maxLength": 20
    },
    "externalDocumentNumber": {
      "type": "string",
      "maxLength": 35
    },
    "amount": {
      "type": "number",
      "format": "decimal"
    },
    "description": {
      "type": "string",
      "maxLength": 100
    },
    "comment": {
      "type": "string"
    },
    "taxCode": {
      "type": "string",
      "maxLength": 20
    },
    "balanceAccountType": {
      "type": "string"
    },
    "balanceAccountNumber": {
      "type": "string",
      "maxLength": 20
    },
    "lastModifiedDateTime": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}