---
title: "Create Gl Document"
method: POST
path: "/companies/{company_id}/gl/documents"
tags: ["gl-references"]
---

# Create Gl Document

`POST /companies/{company_id}/gl/documents`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/gl/documents`
- Auth: none declared

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- GlDocumentCreate
  - `document_type` 'invoice_pdf' | 'receipt' | 'contract' | 'bank_statement' | 'salary_slip' | 'lohnausweis_pdf' | 'payroll_filing' | 'asset_invoice' | 'delivery_note' | 'other', required
  - `file_id` string, nullable
  - `filename` string, nullable
  - `sha256_hash` string, nullable
  - `issue_date` string, date, nullable

## Response `201`

Successful Response

- GlDocumentOut
  - `id` string, required
  - `company_id` string, required
  - `document_type` string, required
  - `file_id` string, nullable
  - `filename` string, nullable
  - `issue_date` string, date, nullable
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
