ImportOS · Docs
API reference

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.

  • Authentication: header Authorization: Bearer rv_live_... (API keys and scopes)
  • Required scope: write:deals
Descriptions of the operation, parameters and fields come from the OpenAPI specification (openapi.json).

Parameters

FieldInTypeRequiredDescription
idpathstring (uuid)yesResource id (UUID).

Responses

200

The refreshed shipment.

application/json · Schema: Shipment

FieldTypeRequiredDescription
idstring (uuid)yes
dealIdstring (uuid)yes
status"planned" | "booked" | "loaded" | "in_transit" | "at_port" | "discharged" | "released" | "delivered"yes
containerNostring | nullyes
billOfLadingstring | nullyes
vesselstring | nullyes
portFromstring | nullyes
portTostring | nullyes
etdstring | nullyesISO 8601 date-time (UTC).
etastring | nullyesISO 8601 date-time (UTC).
atastring | nullyesISO 8601 date-time (UTC).
eventsobject[]yes
events[].atstringno
events[].codestringno
events[].descriptionstringno
events[].locationstringno
events[].vesselstringno
lastTrackedAtstring | nullyesISO 8601 date-time (UTC).
warningsstring[]yes

400

Invalid request parameters or body (code validation_error).

application/problem+json · Schema: Problem

401

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

application/problem+json · Schema: Problem

403

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

application/problem+json · Schema: Problem

404

Not found in this tenant.

application/problem+json · Schema: Problem

422

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

application/problem+json · Schema: Problem

429

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

application/problem+json · Schema: Problem

502

Tracker unavailable.

application/problem+json · Schema: Problem

On this page