Stock documents

Узнать остаток прежнего товара после перепривязки карточки

Changed on

После перепривязки карточки площадки к другому товару (ERP-2198) — сколько прежнего товара лежит на складах внешней стороны (склад площадки) по юрлицам. Непустой ответ — повод «Перенести остаток» пересортицей той же стоимостью (stockApplyRegradeOffer). Ничего не пишет.

get/api/v1/stock/regrade/offer

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

Query parameters

from_product_id, string uuid required

Прежний товар карточки

to_product_id, string uuid required

Новый товар карточки

company_id, string uuid

Юрлицо магазина; пусто — все юрлица

Headers

X-Tenant, string required

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

Response

Остаток прежнего товара на складах площадок

StockRegradeOffer required
from_product_id, string uuid required
to_product_id, string uuid required
company_id, string uuid
rows, StockRegradeOfferRow[] 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

    3 more changes in this revision