CargoSmart · Schema

CargoSmart Container Tracking

JSON Schema for a CargoSmart container tracking record including event history and vessel information.

BookingContainerDocumentationGSBNIQAXLogisticsMaritimeOcean FreightScheduleShippingSupply ChainTrackingVisibilityVessel

Properties

Name Type Description
containerId string ISO 6346 container number (e.g., MSCU1234567)
containerType string ISO container type code
carrierCode string Ocean carrier SCAC code
vesselName string
voyageNumber string
currentStatus string
originPort object
destinationPort object
estimatedArrival string Estimated arrival at destination port
actualArrival string Actual arrival at destination port
events array Chronological list of tracking events
lastUpdated string
View JSON Schema on GitHub

JSON Schema

cargosmart-container-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cargosmart/refs/heads/main/json-schema/cargosmart-container-schema.json",
  "title": "CargoSmart Container Tracking",
  "description": "JSON Schema for a CargoSmart container tracking record including event history and vessel information.",
  "type": "object",
  "required": ["containerId", "currentStatus"],
  "properties": {
    "containerId": {
      "type": "string",
      "description": "ISO 6346 container number (e.g., MSCU1234567)",
      "pattern": "^[A-Z]{4}\\d{7}$"
    },
    "containerType": {
      "type": "string",
      "description": "ISO container type code",
      "enum": ["20GP", "40GP", "40HC", "20RF", "40RF", "45HC"]
    },
    "carrierCode": {
      "type": "string",
      "description": "Ocean carrier SCAC code"
    },
    "vesselName": {
      "type": "string"
    },
    "voyageNumber": {
      "type": "string"
    },
    "currentStatus": {
      "type": "string",
      "enum": ["Empty", "Loaded", "OnVessel", "AtPort", "InTransit", "Delivered"]
    },
    "originPort": {
      "$ref": "#/$defs/Port"
    },
    "destinationPort": {
      "$ref": "#/$defs/Port"
    },
    "estimatedArrival": {
      "type": "string",
      "format": "date-time",
      "description": "Estimated arrival at destination port"
    },
    "actualArrival": {
      "type": "string",
      "format": "date-time",
      "description": "Actual arrival at destination port"
    },
    "events": {
      "type": "array",
      "description": "Chronological list of tracking events",
      "items": {
        "$ref": "#/$defs/TrackingEvent"
      }
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "Port": {
      "type": "object",
      "properties": {
        "locode": {
          "type": "string",
          "description": "UN/LOCODE (e.g., USNYC, CNSHA)",
          "pattern": "^[A-Z]{5}$"
        },
        "portName": {
          "type": "string"
        },
        "countryCode": {
          "type": "string",
          "pattern": "^[A-Z]{2}$"
        },
        "terminalName": {
          "type": "string"
        }
      }
    },
    "TrackingEvent": {
      "type": "object",
      "required": ["eventType", "eventTime"],
      "properties": {
        "eventId": {
          "type": "string"
        },
        "eventType": {
          "type": "string",
          "enum": ["GateIn", "GateOut", "Load", "Discharge", "Departure", "Arrival", "Customs", "Delivery", "EmptyReturn"]
        },
        "description": {
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/Port"
        },
        "vesselName": {
          "type": "string"
        },
        "voyageNumber": {
          "type": "string"
        },
        "eventTime": {
          "type": "string",
          "format": "date-time"
        },
        "isActual": {
          "type": "boolean",
          "description": "true = actual event, false = estimated event"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cargosmart-container"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.