---
title: "Add Gl Counterparty Role"
method: POST
path: "/companies/{company_id}/gl/counterparty-roles"
tags: ["gl-references"]
---

# Add Gl Counterparty Role

`POST /companies/{company_id}/gl/counterparty-roles`

## 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/counterparty-roles`
- Auth: none declared

## Path parameters

- `company_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- GlCounterpartyRoleCreate
  - `counterparty_id` string, required
  - `role` 'customer' | 'supplier' | 'employee' | 'authority' | 'other', required

## Response `201`

Successful Response

- GlCounterpartyRoleOut
  - `id` string, required
  - `company_id` string, required
  - `counterparty_id` string, required
  - `role` string, required
  - `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)
