TimeToCargo

API changelog

Changes in v2 and migration from v1

2.1

The current API version. See the API reference for operations, parameters, and response formats.

2.0

The first major update after v1 redesigned tracking requests and shipment management, and added document-based tracking and webhooks.

ChangeWhat v2 introduced
Endpoints and methodsRequests moved to /v2/tracking, /v2/tracking/batch, and /v2/shipments. Deletion uses DELETE. See the migration table below for the full mapping.
Document-based trackingTrack by bill of lading (bl) or booking (bk) number, as well as by container number.
Request parametersvalue and type replace container_number. For example, container_number=MSDU8368827 becomes value=MSDU8368827&type=container.
Batch requestsThe tracked_items array contains objects with company and track_number: { value, type }. Each task accepts up to 500 numbers of different types.
Response formatContainer data uses a consistent data.containers array. Responses also include related numbers in data.references, tracking details in data.tracking_metadata, and original parameters in request.
Shipment managementPaginated lists, notes, and operations to archive or delete tracked shipments.
Supported companiesGET /v2/companies returns carrier SCAC codes and supported tracking types.
WebhooksReceive tracking events as updates become available. See Webhooks.

Continue to pass your API key in the api_key query parameter. Responses include success, status, status_description, and data where those fields are defined for the operation.

Migrating from v1

Do not switch a production client to v2 without validating responses and error handling. You can migrate incrementally.

v1v2
GET /v1/containerGET /v2/tracking
POST /v1/containersPOST /v2/tracking/batch
GET /v1/containersGET /v2/tracking/batch
GET /v1/apikeyGET /v2/apikey
GET /v1/subscriptions/getGET /v2/shipments
POST /v1/subscriptions/removeDELETE /v2/shipments
noneGET /v2/companies
nonewebhooks: /v2/webhooks, /v2/webhook-event-types, /v2/webhook-notifications

v1

v1 is for existing integrations only. Documentation: Swagger UI.

It supports containers only: GET /v1/container, batch POST/GET /v1/containers, GET /v1/apikey, and GET /v1/subscriptions/get / POST /v1/subscriptions/remove. Do not use v1 for new work.

Last updated on

On this page