---
title: "Create StatisticalJournal record"
method: POST
path: "/public/v1/statistical-journals/"
tags: ["Statistical Journals"]
---

# Create StatisticalJournal record

`POST /public/v1/statistical-journals/`

Create a new StatisticalJournal record with the provided data. Validates all required fields and business rules.

## Request body

- PublicStatisticalJournalSchemaCreateIn
  - `account_id` integer, required
  - `date` string, date, nullable
  - `memo` string
  - `items` PublicStatisticalJournalLineSchemaIn[]
    - `id` integer, nullable
    - `company_id` integer, nullable
    - `account_id` integer, nullable
    - `value` union, required
      - number
      - string
    - `position` integer
    - `memo` string
    - `classifications` PublicStatisticalJournalClassificationSchemaIn[]
      - `id` integer, nullable
      - `line_id` integer, nullable
  - `attachments` AttachmentSchemaOut[]
    - `id` integer, required
    - `file_name` string, required
    - `file_size` integer, required
    - `download_url` string, nullable
    - `upload_url` string, nullable
    - `category` string
  - `record_status` 'draft' | 'posted' | 'archived'

## Response `200`

OK

- PublicStatisticalJournalSchemaOut
  - `id` integer, required
  - `number` integer, required
  - `account_id` integer, required
  - `account_name` string, required
  - `account_number` integer, required
  - `period` string, date, required
  - `date` string, date, required
  - `memo` string, required
  - `record_status` 'draft' | 'posted' | 'archived', required
  - `total_quantity` string, required
  - `attachments` PublicAttachmentSchemaOut[]
    - `id` integer, required
    - `file_name` string, required
    - `file_size` integer, required
    - `download_url` string, nullable
  - `items` PublicStatisticalJournalLineSchemaOut[], required
    - `id` integer, required
    - `company_id` integer, nullable
    - `company_name` string, nullable
    - `account_id` integer, nullable
    - `account_name` string, nullable
    - `account_number` integer, nullable
    - `value` string, required
    - `position` integer, required
    - `memo` string, required
    - `classifications` PublicStatisticalJournalLineClassificationSchemaOut[], required
      - `id` integer, required
      - `name` string, required
      - `line_id` integer, nullable
      - `line_name` string, nullable
  - `created_at` string, date-time, required — Date and time the record was created
  - `updated_at` string, date-time, required — Date and time the record was last updated

## Other responses

- `404` — Not Found
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

[API](https://skmtc.net/dualentry/apis/dualentry-public-api-2.md) · [All operations](https://skmtc.net/dualentry/apis/dualentry-public-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dualentry/dualentry-public-api-2/versions/77cd3c6ec719/schema)
