---
title: "PATCH /v1/crm/counterparties/{id}/"
method: PATCH
path: "/v1/crm/counterparties/{id}/"
tags: ["v1"]
---

# PATCH /v1/crm/counterparties/{id}/

`PATCH /v1/crm/counterparties/{id}/`

## Path parameters

- `id` integer, required

## Request body

- PatchedCounterparty
  - `id` integer
  - `access` integer[], nullable
  - `name` string
  - `side` 0 | 1 — * `0` - self * `1` - foreign
  - `source` 0 | 1 — * `0` - shop * `1` - expense
  - `type` 0 | 1 | 2 | 3 — * `0` - ИП * `1` - ТОО * `2` - АО * `3` - ПК
  - `category` 0 | 1 — * `0` - CREDIT * `1` - DEBIT
  - `iin` string, nullable
  - `bin` string, nullable
  - `iban` string, nullable
  - `bank` string, nullable
  - `phone` string, nullable
  - `owner` string, nullable
  - `address` string, nullable
  - `email` string, email, nullable
  - `order` integer, nullable
  - `extra` unknown
  - `deleted` boolean
  - `deleted_at` string, date-time, nullable
  - `tenant` integer

## Response `200`

- Counterparty
  - `id` integer, required
  - `access` integer[], nullable
  - `name` string, required
  - `side` 0 | 1 — * `0` - self * `1` - foreign
  - `source` 0 | 1 — * `0` - shop * `1` - expense
  - `type` 0 | 1 | 2 | 3 — * `0` - ИП * `1` - ТОО * `2` - АО * `3` - ПК
  - `category` 0 | 1 — * `0` - CREDIT * `1` - DEBIT
  - `iin` string, nullable
  - `bin` string, nullable
  - `iban` string, nullable
  - `bank` string, nullable
  - `phone` string, nullable
  - `owner` string, nullable
  - `address` string, nullable
  - `email` string, email, nullable
  - `order` integer, nullable
  - `extra` unknown
  - `deleted` boolean
  - `deleted_at` string, date-time, nullable
  - `tenant` integer

---

[API](https://skmtc.net/yume-cloud/apis/yume-api.md) · [All operations](https://skmtc.net/yume-cloud/apis/yume-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yume-cloud/yume-api/versions/90700f5abfcc/schema)
