---
title: "Create Gl Vat Code"
method: POST
path: "/companies/{company_id}/gl/vat-codes"
tags: ["gl-references"]
---

# Create Gl Vat Code

`POST /companies/{company_id}/gl/vat-codes`

## 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/vat-codes`
- Auth: none declared

Create a VAT code by hand.

Usually unnecessary: activating a declared rate
(`PATCH .../accounting/vat-rates/{id}` with `active=true`) materialises the
matching code itself, linked to that rate. Reach for this endpoint only for a
code the rate catalog does not derive — an unlinked code
(`company_vat_rate_id=null`) is not usable by the AI coder.

A `code` that already exists for the company is refused by name; it does not
overwrite the existing row.

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- GlVatCodeCreate
  - `code` string, nullable
  - `name` string, nullable
  - `direction` 'input' | 'output' | 'exempt' | 'out_of_scope', required
  - `vat_account_code` string, required
  - `company_vat_rate_id` string, nullable
  - `return_box_code` string, nullable
  - `default_deductibility_percent` union
    - number
    - string

## Response `201`

Successful Response

- GlVatCodeOut
  - `id` string, required
  - `company_id` string, required
  - `code` string, nullable
  - `name` string, nullable
  - `direction` string, required
  - `vat_account_code` string, required
  - `company_vat_rate_id` string, nullable
  - `return_box_code` string, nullable
  - `default_deductibility_percent` string
  - `deduction_ground` string, nullable
  - `is_active` boolean, 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)
