Core directories

Создать установку цен

Changed on

Заводит документ «Установка цен»: строки — товар, вид цены, цена и область (общая, контрагент, договор). post=true — сразу проводит, цены вступают в силу с даты документа.

post/api/v1/core/price-sets

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

Headers

X-Tenant, string required

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

Request body

CorePriceSetInput required
date, string date

Дата действия цен; пусто — сегодня кабинета.

comment, string
source, 'manual' | 'revaluation' | 'import' | 'card' | 'system'
lines, CorePriceSetLine[] required
post, boolean

Сразу провести: цены вступают в силу.

Response

Установка цен

CorePriceSet required

Документ «Установка цен»: цены вступают в силу с его даты после проведения; отмена проведения возвращает прежние.

id, string uuid required
number, string required
date, string date required
status, 'draft' | 'posted' | 'cancelled' required
source, string required

Откуда документ: manual, revaluation, import, card, system.

comment, string required
lines, CorePriceSetLine[] required
line_count, integer required
warnings, CorePriceWarning[]

Предупреждения: цены ниже минимальной или РРЦ. Проведению не мешают.

created_by, string
created_at, string required
posted_at, string
cancelled_at, string
updated_at, string 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

    9 more changes in this revision