{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/forwardai/json-schema/forwardai-create-journal-schema.json",
  "title": "CreateJournal",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/forwardai-journal-entries-api-openapi.yml#/components/schemas/CreateJournal",
  "type": "object",
  "required": [
    "lines"
  ],
  "properties": {
    "refNumber": {
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "accountId",
          "debit",
          "credit"
        ],
        "properties": {
          "accountId": {
            "type": "string"
          },
          "debit": {
            "type": "number"
          },
          "credit": {
            "type": "number"
          },
          "description": {
            "type": "string"
          },
          "contactId": {
            "type": "string"
          }
        }
      }
    }
  }
}