Marketplace supplies

Создать и подтвердить отгрузку Ozon

Changed on

«Создать и подтвердить отгрузку» Ozon (ERP-2885): в отгрузке — только наши отправления, упакованные в Akeda и собранные у Ozon, не отменённые и ещё не уехавшие (postings — явный выбор, пусто — все готовые). По методу доставки: /v2/carriage/delivery/list → /v1/carriage/create → /v1/carriage/set-postings (чужие отправления вон) → /v1/carriage/approve ключом магазина на запись. Отгрузка ложится в список «поставок» (platform=ozon) и ждёт «Отгружено». Склад не двигает. Готовых нет — 409 marketplace.fbs_supply.no_orders; Ozon не дал отгрузку — 409 marketplace.fbs_ozon.no_carriage. Читает Idempotency-Key. Пускает и право склада «Отгрузка» (stock.shipment:write, его покрывает stock:write): сборку FBS и поставки ведёт склад (ERP-2896).

post/api/v1/marketplace/{platform}/fbs-carriages

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' required

Headers

X-Tenant, string required

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

Request body

MarketplaceFbsPostingsInput required
store_id, string uuid required
postings, string[]

Номера отправлений; пусто — все готовые

Response

Подтверждённые отгрузки

MarketplaceFbsCarriageResult required
supplies, MarketplaceFbsSupply[] required
skipped, string[] required

Наши готовые отправления, которые Ozon в отгрузку не взял

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