{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-batch-journal-request-schema.json",
  "title": "BatchJournalRequest",
  "description": "Journals API allows you to move cash or securities from one account to another.\n\nThis model represents the fields you can specify when creating a request of many Journals out of one account to many others at once.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpaca-journals-api-openapi.yml#/components/schemas/BatchJournalRequest",
  "type": "object",
  "properties": {
    "entry_type": {
      "type": "string",
      "enum": [
        "JNLC"
      ],
      "description": "Only supports `JNLC` for now"
    },
    "from_account": {
      "type": "string",
      "format": "uuid",
      "description": "The account id that is the originator of the funds being moved. Most likely is your Sweep Firm Account"
    },
    "description": {
      "type": "string",
      "description": "Journal description, gets returned in the response"
    },
    "entries": {
      "type": "array",
      "minItems": 1,
      "description": "An array of objects describing to what accounts you want to move funds into and how much to move into for each account",
      "items": {
        "type": "object",
        "properties": {
          "to_account": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of the account that you want to journal funds into"
          },
          "amount": {
            "type": "string",
            "description": "Journal amount in USD"
          }
        },
        "required": [
          "to_account",
          "amount"
        ]
      }
    }
  },
  "required": [
    "entry_type",
    "from_account",
    "entries"
  ]
}