ImportOS · Документація
Довідник API

POST /v1/shipments/{id}/refresh

Poll the tracker now

Poll the tracker now

Queries the container tracker (Terminal49 / ShipsGo) and applies status, ETA and events to the shipment (and to all deals sharing the container). Requires scope write:deals.

  • Автентифікація: заголовок Authorization: Bearer rv_live_... (API-ключі та scopes)
  • Потрібний scope: write:deals
Опис операції, параметрів і полів походить зі специфікації OpenAPI (openapi.json) і подається англійською, як у самому API.

Параметри

ПолеДеТипОбов’язк.Опис
idpathstring (uuid)такResource id (UUID).

Відповіді

200

The refreshed shipment.

application/json · Схема: Shipment

ПолеТипОбов’язк.Опис
idstring (uuid)так
dealIdstring (uuid)так
status"planned" | "booked" | "loaded" | "in_transit" | "at_port" | "discharged" | "released" | "delivered"так
containerNostring | nullтак
billOfLadingstring | nullтак
vesselstring | nullтак
portFromstring | nullтак
portTostring | nullтак
etdstring | nullтакISO 8601 date-time (UTC).
etastring | nullтакISO 8601 date-time (UTC).
atastring | nullтакISO 8601 date-time (UTC).
eventsobject[]так
events[].atstringні
events[].codestringні
events[].descriptionstringні
events[].locationstringні
events[].vesselstringні
lastTrackedAtstring | nullтакISO 8601 date-time (UTC).
warningsstring[]так

400

Invalid request parameters or body (code validation_error).

application/problem+json · Схема: Problem

401

Missing, malformed, unknown, revoked or expired API key (code unauthorized).

application/problem+json · Схема: Problem

403

The API key lacks the scope required by this endpoint (code insufficient_scope).

application/problem+json · Схема: Problem

404

Not found in this tenant.

application/problem+json · Схема: Problem

422

The shipment has no container/B/L number to track.

application/problem+json · Схема: Problem

429

Rate limit exceeded for the tenant plan (code rate_limited). Wait Retry-After seconds.

application/problem+json · Схема: Problem

502

Tracker unavailable.

application/problem+json · Схема: Problem

На цій сторінці