Docflow Yandex KIT

Опросить Яндекс KIT сейчас

Changed on

Опрашивает API Яндекс KIT без ожидания срока и приводит заказы покупателя к сайту: новые заказы заводятся, изменённые обновляются, отменённые отменяются. Затем пишет в KIT: коды «Честного знака» собранных или отгруженных заказов, подтверждение заказа (режим подтверждения akeda — после «Собрано» и всех кодов) и, если включена передача остатков (options.stock_sync), свободный остаток склада. Отгрузки не трогает. Не подключено — 404 yandex_kit_not_connected.

post/api/v1/docflow/yandex-kit/sync

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 выбранного кабинета; кабинет не является юрлицом

Response

Итог опроса

DocflowYandexKitStateEnvelope required
state, DocflowYandexKitSyncState required

Changes

    • info

      added the required property state/stock_code to the response with the status

    • info

      added the required property state/stock_run_at to the response with the status

    • info

      added the required property state/stock_sent to the response with the status

    2 more changes in this revision