Stock documents

Обновить статусы отправлений у СДЭК

Changed on

Перечитать у СДЭК трек, статус и стоимость (ERP-2925), а у вызванного курьера — номер и статус заявки: названных ids или всех незавершённых заведённых отправлений, не больше 50 за раз. Сбой по одному отправлению не останавливает остальные. Право — stock.shipment, stock.writeoff или stock.transfer.

post/api/v1/stock/carrier-shipments/refresh

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

Headers

X-Tenant, string required

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

Request body

StockCarrierIDs required
ids, UUID[]

Response

Обновлённые отправления

StockCarrierRefreshResult required
items, StockCarrierShipment[] required
count, integer required

Changes

    • info

      added the required property items/items/shipment_point to the response with the status

    • info

      added the required property items/items/shipment_point_address to the response with the status

    • info

      added the optional property items/items/from_city_code to the response with the status

    6 more changes in this revision