Core directories

Подобрать цены строк

Changed on

Одна функция подбора цены для всех документов: продажа — договор, канал, контрагент, вид по умолчанию; закупка — договор, цена поставщика, «Закупочная». Отвечает ценой, видом, источником, датой и документом, минимальной ценой и РРЦ и списком других доступных цен. Ничего не пишет.

post/api/v1/core/prices/resolve

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

Headers

X-Tenant, string required

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

Request body

CorePriceQuery required

Вопрос подбора: какую цену поставит документ. Лестница продажи: договор → канал → контрагент → вид по умолчанию; закупки: договор → цена поставщика → «Закупочная».

side, 'sale' | 'purchase'
date, string date

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

currency, string

Валюта документа: цена вида в другой валюте пересчитывается по курсу на дату.

prices_include_vat, boolean

Режим НДС документа.

contact_id, string uuid
contract_id, string uuid
channel_id, string uuid

Канал продаж документа — запись справочника sales_channels.

company_id, string uuid
lines, CorePriceQueryLine[] required

Response

Подобранные цены

CorePriceResolution required
date, string date required
lines, CoreResolvedPrice[] 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

    5 more changes in this revision