Marketplace supplies

Получить поставки FBS площадки

Changed on

Поставки FBS (ERP-2491): открытые и переданные в доставку за три дня, с заданиями, отметкой «упаковано» и передачей марок. sync=1 перечитывает у площадки ключом магазина на запись: поставки, заведённые в кабинете площадки вручную, появляются с origin=platform. Поставки, известные по выгрузке заданий (supply_id заказа), заводит фоновый обход (раз в 10 минут, у всех магазинов) или sync=1, и без ключа; чтение без sync ничего не пишет. Магазин без годного ключа площадку не спрашивает: stores[].write_key_issue называет причину. У Ozon (ERP-2885) это отгрузки (перевозки), заведённые в Akeda: sync=1 сверяет статус перевозки и акта приёма-передачи. Создание поставки (POST) — только Wildberries. Пускает и просмотр склада (stock:read или stock.shipment:read): сборку FBS и поставки ведёт склад (ERP-2896).

get/api/v1/marketplace/{platform}/fbs-supplies

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

platform, 'ozon' | 'wildberries' required

Query parameters

store_id, string uuid

Магазин; пусто — все

sync, '0' | '1'

1 — перечитать поставки у площадки

Headers

X-Tenant, string required

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

Response

Поставки

MarketplaceFbsSuppliesView required
platform, 'ozon' | 'wildberries' required
supplies, MarketplaceFbsSupply[] required
stores, MarketplaceFbsStoreRef[] required
sync_error, string
sync_reason, string

Changes

    • info

      added the optional property supplies/items/closed_by to the response with the status

    • info

      added the optional property supplies/items/day_on to the response with the status

    • info

      added the optional property supplies/items/handover_error to the response with the status

    2 more changes in this revision