Finance counterparty terms

Создать новую версию коммерческих условий

Changed on

Старую версию не изменяет; новый период действует на полуинтервале valid_from включительно, valid_to исключительно.

post/api/v1/finance/counterparties/{contactId}/terms

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

contactId, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

FinanceCounterpartyTermsCreate required
company_id, string uuid
currency, string required
credit_limit, string

Неотрицательная decimal string

payment_delay_days, integer required
prepayment_percent, string required

Decimal string от 0 до 100

valid_from, string required

Дата ГГГГ-ММ-ДД (полночь в поясе кабинета) или момент RFC3339

valid_to, string

Дата ГГГГ-ММ-ДД или момент RFC3339; не входит в период

reason, string

Example request

{
  "valid_from": "2026-01-01"
}

Response

Новая версия условий

FinanceCounterpartyTerms required
id, string uuid nullable required

Версия условий; null при configured=false — настройки нет, а не запись с нулевым id

contact_id, string uuid required
company_id, string uuid
currency, string required
credit_limit, string

Decimal string; отсутствие означает, что лимит не задан

payment_delay_days, integer required
prepayment_percent, string required

Decimal string от 0 до 100

valid_from, string date-time nullable required

Момент начала действия; null при configured=false

valid_from_date, string date

Дата начала действия в поясе кабинета: 01.01.2026 по Москве — 2026-01-01, хотя valid_from — 2025-12-31T21:00:00Z

valid_to, string date-time
valid_to_date, string date

Первый день в поясе кабинета, когда версия уже не действует

reason, string required
created_by, integer
created_at, string date-time nullable required

null при configured=false

configured, boolean required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    7 more changes in this revision