---
updatedAt: 2026-08-19T08:10:30.000Z
agentTools:
  projectIndex: https://documentation.safecube.ai/llms.txt
---

# Retrieve shipment tracking data in a Searates-compatible format

<p>Returns the same tracking data as <strong>GET /shipment</strong>, formatted to be compatible with the Searates "Tracking by any number" response.</p> <p>Enables a field-by-field comparison with Searates formatted data.</p> <p>By default the payload follows the Searates format. Set <strong>safecubeFields=true</strong> to additionally expose SafeCube-specific fields (currently metadata.warnings); those fields are omitted from the response when null.</p>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "API Container Tracking",
    "version": "PROJECT_VERSION",
    "description": "Welcome to the documentation of the Container Tracking API\n<h1>Compatibility guidelines</h1> <p>The HTTP API is versioned with a single number, which is currently 2</p> <p>This number symbolizes the major version number. New features can be added to the API in the same version number if there is no breaking change.</p> <p>The version number is present in the url, for instance <strong>/container-tracking/api/v2</strong> for the current version.\n<h1>Documentation, Pricing and Key generation</h1> <p>You can find the complete documentation for our API at <a href='https://developers.sinay.ai/'>Developers Platform</a>.</p> <p>Create an account to receive your FREE key in under a minute!</p> <p>Additionally, explore our pricing plans, access support, view detailed documentation, and follow our comprehensive tutorials.</p>\n<h1>Authentication</h1> <p>Every endpoints of this API require authentication using an API key.</p> <p>If you don't have an API Key and you need to use the Container Tracking API, you need to ask Sinay to have one.</p> <p>To use the API Key, you must add a header named <strong>API_KEY</strong> with your API Key as a value.</p> <h1>Test the API with Swagger-ui</h1> <p>To test the API using Swagger-ui, you must click on the button <strong>Authorize</strong> and then fill the <strong>apiKey</strong> field and click on <strong>Authorize</strong>.</p> <p>Swagger-ui will then use the api key automatically in each request.</p> <p>On every endpoints, you can click on <strong>Try it out</strong>, you can modify the body and then click on <strong>Execute</strong></p> <p>You will be able to see the response.</p>\n<h1>Release note</h1> <h2>2.8.0</h2> <ul> <li>Add the /shipment-format/searates endpoint returning a Searates-compatible output, with an optional safecubeFields flag to expose SafeCube-specific fields</li> </ul> <h2>2.1.0</h2> <ul> <li>Fix null entries</li> </ul> <h2>2.0.2</h2> <ul> <li>Set route and ais fields as default true in shipment request parameters</li> </ul> <h2>2.0.0</h2> <ul> <li>Replace all existing tracking endpoints with a single one</li> <li>Add additional information such as: vessel, facilities or route segments</li> </ul> <h2>1.5.0</h2> <ul> <li>Default AUTO for Sealine with BL</li> </ul> <h2>1.4.0</h2> <ul> <li>Retrieve all events</li> </ul> <h2>1.3.0</h2> <ul> <li>Retrieve supported sealines</li> </ul> <h2>1.2.0</h2> <ul> <li>Retrieve container eta</li> <li>Retrieve eta for every container in BK or BL</li> </ul> <h2>1.1.0</h2> <ul> <li>Retrieve container location</li> <li>Retrieve location for every container in BK or BL</li> </ul> <h2>1.0.0</h2> <ul> <li>Retrieve Container Status</li> <li>Retrieve status for every container in BK or BL</li> </ul>"
  },
  "servers": [
    {
      "url": "api.sinay.ai/container-tracking/api/v2"
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Shipment Format",
      "description": "<p>Retrieve the same shipment tracking data in a format compatible with a competitor's API, to ease migration and simplify data comparison.</p>"
    }
  ],
  "paths": {
    "/shipment-format/searates": {
      "get": {
        "tags": [
          "Shipment Format"
        ],
        "operationId": "getShipmentSearatesFormat",
        "summary": "Retrieve shipment tracking data in a Searates-compatible format",
        "description": "<p>Returns the same tracking data as <strong>GET /shipment</strong>, formatted to be compatible with the Searates \"Tracking by any number\" response.</p> <p>Enables a field-by-field comparison with Searates formatted data.</p> <p>By default the payload follows the Searates format. Set <strong>safecubeFields=true</strong> to additionally expose SafeCube-specific fields (currently metadata.warnings); those fields are omitted from the response when null.</p>",
        "parameters": [
          {
            "name": "shipmentNumber",
            "description": "Bill of Lading Number, Booking number or Container Tracking Number",
            "in": "query",
            "required": true,
            "example": "ZZZZ0000000",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sealine",
            "description": "<p>Sealine 4 letters scac code. Find the code corresponding to your sealine using the GET /sealines endpoint</p> <p>This parameter is strongly recommended to improve response time and avoid wrong sealine detection</p>",
            "in": "query",
            "required": false,
            "example": "ONEY",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "shipmentType",
            "description": "Shipment type. CT for container, BL for Booking and BL for Bill of Lading",
            "in": "query",
            "required": false,
            "example": "CT",
            "schema": {
              "type": "string",
              "enum": [
                "CT",
                "BL",
                "BK"
              ]
            }
          },
          {
            "name": "route",
            "description": "<p>Set this to true if you wish to receive the route segments or AIS data</p> <p>Using this option will increase the response time</p>",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "ais",
            "description": "<p>Set this to true if you wish to receive AIS data - will only work if route is also set to true</p> <p>Using this option will increase the response time</p>",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "safecubeFields",
            "description": "<p>Set to true to include SafeCube-specific fields in addition to the Searates-compatible format.</p> <p>These fields have no equivalent in the native Searates response (currently metadata.warnings) and are omitted when null.</p>",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearatesShipmentFormat"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - the required API_KEY header is missing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorInfo"
                }
              }
            }
          },
          "404": {
            "description": "Shipment not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorInfo"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "API_KEY"
      }
    },
    "schemas": {
      "errorInfo": {
        "type": "object",
        "required": [
          "errorCode",
          "message",
          "details",
          "time"
        ],
        "properties": {
          "errorCode": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "time": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SearatesShipmentFormat": {
        "type": "object",
        "description": "Shipment tracking data formatted to be compatible with the Searates \"Tracking by any number\" response.",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/SearatesRequestStatus"
          },
          "message": {
            "type": "string",
            "description": "Request status description (see Searates request statuses)",
            "enum": [
              "OK",
              "SEALINE_HASNT_PROVIDE_INFO",
              "NO_CONTAINERS",
              "NO_EVENTS",
              "WRONG_PARAMETERS",
              "WRONG_NUMBER",
              "WRONG_SEALINE",
              "WRONG_TYPE",
              "SEALINE_NO_RESPONSE",
              "SEALINE_NOT_SUPPORTED",
              "SEALINE_TEMPORARY_DISABLED",
              "SEALINE_UNDER_MAINTENANCE",
              "AUTO_CANT_DETECT_SEALINE",
              "AUTO_CANT_DETECT_TYPE",
              "AUTO_CANT_FIND_INFO",
              "SEALINE_CANCELED_SHIPMENT",
              "UNEXPECTED_ERROR"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/SearatesShipmentData"
          }
        }
      },
      "SearatesRequestStatus": {
        "type": "string",
        "description": "Request status (success on completion, error otherwise)",
        "enum": [
          "success",
          "error"
        ]
      },
      "SearatesShipmentData": {
        "type": "object",
        "description": "Data on request",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/SearatesMetadata"
          },
          "locations": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SearatesLocation"
            }
          },
          "route": {
            "$ref": "#/components/schemas/SearatesRoute"
          },
          "vessels": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SearatesVessel"
            }
          },
          "containers": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SearatesContainer"
            }
          },
          "facilities": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SearatesFacility"
            }
          },
          "route_data": {
            "$ref": "#/components/schemas/SearatesRouteData"
          }
        }
      },
      "SearatesMetadata": {
        "type": "object",
        "description": "Additional data on request",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "CT",
              "BL",
              "BK"
            ]
          },
          "number": {
            "type": "string",
            "description": "Shipment number"
          },
          "sealine": {
            "type": "string",
            "description": "Standard Carrier Alpha Code (SCAC)",
            "nullable": true
          },
          "sealine_name": {
            "type": "string",
            "description": "Carrier name",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/SearatesShippingStatus"
          },
          "updated_at": {
            "type": "string",
            "description": "The date the data was received from the carrier (UTC), format 'yyyy-MM-dd HH:mm:ss'",
            "nullable": true,
            "example": "2023-06-06 08:15:15"
          },
          "api_calls": {
            "$ref": "#/components/schemas/SearatesApiCalls"
          },
          "unique_shipments": {
            "$ref": "#/components/schemas/SearatesUniqueShipments"
          },
          "warnings": {
            "description": "SafeCube-specific field, not part of the native Searates format. Data-quality warnings computed by SafeCube. Present only when safecubeFields=true; omitted from the response when null.",
            "type": "array",
            "nullable": true,
            "x-safecube": true,
            "items": {
              "type": "string",
              "enum": [
                "OBSOLETE_DATA",
                "NO_POL",
                "NO_POD",
                "MISSING_DATE",
                "STATUS_MISMATCH",
                "NO_EVENTS",
                "NO_CONTAINERS",
                "SPLIT_BL"
              ]
            }
          }
        }
      },
      "SearatesShippingStatus": {
        "type": "string",
        "description": "Shipping status",
        "default": "UNKNOWN",
        "enum": [
          "PLANNED",
          "IN_TRANSIT",
          "DELIVERED",
          "UNKNOWN",
          "CANCELLED"
        ]
      },
      "SearatesApiCalls": {
        "type": "object",
        "description": "Data on the number of api calls (Searates account metrics, not populated by SafeCube)",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "used": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "remaining": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "SearatesUniqueShipments": {
        "type": "object",
        "description": "Data on the number of unique shipments (Searates account metrics, not populated by SafeCube)",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "used": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "remaining": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "SearatesLocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier referenced by events and route"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "country_code": {
            "type": "string",
            "nullable": true
          },
          "locode": {
            "type": "string",
            "nullable": true
          },
          "lat": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "lng": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "timezone": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearatesFacility": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier referenced by events"
          },
          "name": {
            "type": "string"
          },
          "country_code": {
            "type": "string",
            "nullable": true
          },
          "locode": {
            "type": "string",
            "nullable": true
          },
          "bic_code": {
            "type": "string",
            "nullable": true
          },
          "smdg_code": {
            "type": "string",
            "nullable": true
          },
          "lat": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "lng": {
            "type": "number",
            "format": "float",
            "nullable": true
          }
        }
      },
      "SearatesVessel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier referenced by events"
          },
          "name": {
            "type": "string"
          },
          "imo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "call_sign": {
            "type": "string",
            "nullable": true
          },
          "mmsi": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "flag": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearatesRoute": {
        "type": "object",
        "description": "Information on the route",
        "properties": {
          "prepol": {
            "$ref": "#/components/schemas/SearatesRoutePoint"
          },
          "pol": {
            "$ref": "#/components/schemas/SearatesRoutePoint"
          },
          "pod": {
            "$ref": "#/components/schemas/SearatesRoutePod"
          },
          "postpod": {
            "$ref": "#/components/schemas/SearatesRoutePoint"
          }
        }
      },
      "SearatesRoutePoint": {
        "type": "object",
        "properties": {
          "location": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier (id) from the locations array",
            "nullable": true
          },
          "date": {
            "type": "string",
            "nullable": true,
            "example": "2023-05-24 13:25:00"
          },
          "actual": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "SearatesRoutePod": {
        "type": "object",
        "properties": {
          "location": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier (id) from the locations array",
            "nullable": true
          },
          "date": {
            "type": "string",
            "nullable": true,
            "example": "2023-07-09 22:30:00"
          },
          "actual": {
            "type": "boolean",
            "nullable": true
          },
          "predictive_eta": {
            "type": "string",
            "description": "If the carrier did not provide an arrival date, SafeCube may calculate it",
            "nullable": true
          }
        }
      },
      "SearatesContainer": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string"
          },
          "iso_code": {
            "type": "string",
            "nullable": true
          },
          "size_type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/SearatesShippingStatus"
          },
          "events": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SearatesEvent"
            }
          }
        }
      },
      "SearatesEvent": {
        "type": "object",
        "properties": {
          "order_id": {
            "type": "integer",
            "format": "int32",
            "description": "The sequence number of the event"
          },
          "location": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier (id) from the locations array",
            "nullable": true
          },
          "facility": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier (id) from the facilities array",
            "nullable": true
          },
          "description": {
            "type": "string"
          },
          "event_type": {
            "type": "string",
            "nullable": true,
            "enum": [
              "SHIPMENT",
              "TRANSPORT",
              "EQUIPMENT"
            ]
          },
          "event_code": {
            "type": "string",
            "nullable": true,
            "enum": [
              "ARRI",
              "DEPA",
              "LOAD",
              "DISC",
              "GTIN",
              "GTOT",
              "STUF",
              "STRP",
              "PICK",
              "AVPU",
              "DROP",
              "AVDO",
              "INSP",
              "RSEA",
              "RMVD",
              "CUSS",
              "CUSI",
              "CUSR",
              "CROS",
              "RECE",
              "DRFT",
              "PENA",
              "PENU",
              "PENC",
              "CONF",
              "REJE",
              "APPR",
              "ISSU",
              "SURR",
              "SUBM",
              "VOID",
              "REQS",
              "CMPL",
              "HOLD",
              "RELS",
              "CANC"
            ]
          },
          "status": {
            "type": "string",
            "default": "UNK",
            "enum": [
              "CEP",
              "CPS",
              "CGI",
              "CLL",
              "VDL",
              "VAT",
              "CDT",
              "TSD",
              "CLT",
              "VDT",
              "VAD",
              "CDD",
              "CGO",
              "CDC",
              "CER",
              "LTS",
              "BTS",
              "UNK"
            ]
          },
          "date": {
            "type": "string",
            "description": "Event date, format 'yyyy-MM-dd HH:mm:ss'",
            "example": "2023-05-24 13:25:00"
          },
          "actual": {
            "type": "boolean",
            "nullable": true
          },
          "is_additional_event": {
            "type": "boolean",
            "description": "True if the event was calculated by SafeCube rather than provided by the carrier"
          },
          "type": {
            "type": "string",
            "description": "sea for sea-related events, land for land-related events",
            "enum": [
              "sea",
              "land"
            ]
          },
          "transport_type": {
            "type": "string",
            "nullable": true,
            "enum": [
              "VESSEL",
              "BARGE",
              "FEEDER",
              "TRUCK",
              "RAIL",
              "AIR"
            ]
          },
          "vessel": {
            "type": "integer",
            "format": "int32",
            "description": "Unique identifier (id) from the vessels array",
            "nullable": true
          },
          "voyage": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearatesRouteData": {
        "type": "object",
        "nullable": true,
        "properties": {
          "route": {
            "type": "array",
            "nullable": true,
            "description": "Array of route segments",
            "items": {
              "$ref": "#/components/schemas/SearatesRouteItem"
            }
          },
          "pin": {
            "type": "array",
            "description": "Current container position [latitude, longitude]",
            "nullable": true,
            "minItems": 2,
            "maxItems": 2,
            "items": {
              "type": "number",
              "format": "float"
            }
          },
          "ais": {
            "$ref": "#/components/schemas/SearatesAis"
          }
        }
      },
      "SearatesRouteItem": {
        "type": "object",
        "properties": {
          "path": {
            "type": "array",
            "description": "Array of route coordinates, each item being a [latitude, longitude] pair",
            "items": {
              "type": "array",
              "minItems": 2,
              "maxItems": 2,
              "items": {
                "type": "number",
                "format": "float"
              }
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "SEA",
              "LAND"
            ]
          }
        }
      },
      "SearatesAis": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "OK",
              "NOT_ON_BOARD",
              "NO_AIS_DATA"
            ]
          },
          "data": {
            "$ref": "#/components/schemas/SearatesAisData"
          }
        }
      },
      "SearatesAisData": {
        "type": "object",
        "nullable": true,
        "properties": {
          "last_event": {
            "$ref": "#/components/schemas/SearatesAisLastEvent"
          },
          "discharge_port": {
            "$ref": "#/components/schemas/SearatesAisDischargePort"
          },
          "vessel": {
            "$ref": "#/components/schemas/SearatesAisVessel"
          },
          "last_vessel_position": {
            "$ref": "#/components/schemas/SearatesAisVesselPosition"
          },
          "departure_port": {
            "$ref": "#/components/schemas/SearatesAisDeparturePort"
          },
          "arrival_port": {
            "$ref": "#/components/schemas/SearatesAisArrivalPort"
          },
          "updated_at": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearatesAisLastEvent": {
        "type": "object",
        "description": "The latest event provided by the shipping line",
        "properties": {
          "description": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "voyage": {
            "type": "string"
          }
        }
      },
      "SearatesAisDischargePort": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "country_code": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "date": {
            "type": "string",
            "nullable": true
          },
          "date_label": {
            "type": "string",
            "nullable": true,
            "enum": [
              "ETA",
              "ATA"
            ]
          }
        }
      },
      "SearatesAisVessel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "imo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "call_sign": {
            "type": "string",
            "nullable": true
          },
          "mmsi": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "flag": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearatesAisVesselPosition": {
        "type": "object",
        "description": "AIS data of the vessel position",
        "properties": {
          "lat": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "lng": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "updated_at": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SearatesAisDeparturePort": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "date": {
            "type": "string",
            "nullable": true
          },
          "date_label": {
            "type": "string",
            "nullable": true,
            "enum": [
              "ETD",
              "ATD"
            ]
          }
        }
      },
      "SearatesAisArrivalPort": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "date": {
            "type": "string",
            "nullable": true
          },
          "date_label": {
            "type": "string",
            "nullable": true,
            "enum": [
              "ETA",
              "ATA"
            ]
          }
        }
      }
    }
  }
}
```