OpenTrack · Schema

PartnerDataPayload

List of events on the shipment's journey.

Container VisibilityFreight TrackingLogistics SoftwareAPI IntegrationSupply Chain AnalyticsCustoms Data

Properties

Name Type Description
events array
View JSON Schema on GitHub

JSON Schema

opentrack-partner-data-payload-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opentrack/json-schema/opentrack-partner-data-payload-schema.json",
  "title": "PartnerDataPayload",
  "description": "List of events on the shipment's journey.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opentrack-partner-data-ingestion-api-openapi.yml#/components/schemas/PartnerDataPayload",
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "$ref": "#/$defs/equipmentEvent"
          },
          {
            "$ref": "#/$defs/shipmentEvent"
          },
          {
            "$ref": "#/$defs/positionEvent"
          }
        ]
      }
    }
  },
  "$defs": {
    "Point": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "longitude": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      }
    },
    "UNLocationCode": {
      "type": "string",
      "description": "The UN Location Code identifies a location in the sense of a city/town/village, being the smaller administrative area existing as defined by the competent national authority in each country."
    },
    "emptyIndicatorCode": {
      "type": "string",
      "description": "Code to denote whether the equipment is empty or laden.",
      "enum": [
        "EMPTY",
        "LADEN"
      ]
    },
    "equipmentEvent": {
      "description": "The equipment event entity is a specialization of the event entity to support specification of data that only applies to an equipment event. This is where to put all event data that applies to the container itself. It has a different set of event codes.",
      "allOf": [
        {
          "$ref": "#/$defs/event"
        },
        {
          "type": "object",
          "properties": {
            "eventType": {
              "type": "string",
              "nullable": false,
              "enum": [
                "equipmentEvent"
              ]
            },
            "eventTypeCode": {
              "$ref": "#/$defs/equipmentEventTypeCode"
            },
            "eventClassifierCode": {
              "$ref": "#/$defs/eventClassifierCode"
            },
            "equipmentReference": {
              "$ref": "#/$defs/equipmentReference"
            },
            "facilityTypeCode": {
              "$ref": "#/$defs/facilityTypeCode"
            },
            "facilityCode": {
              "$ref": "#/$defs/facilityCode"
            },
            "emptyIndicatorCode": {
              "$ref": "#/$defs/emptyIndicatorCode"
            },
            "modeOfTransportCode": {
              "$ref": "#/$defs/modeOfTransportCode"
            }
          },
          "oneOf": [
            {
              "properties": {
                "UNLocationCode": {
                  "$ref": "#/$defs/UNLocationCode"
                }
              },
              "required": [
                "eventType",
                "eventDateTime",
                "eventTypeCode",
                "emptyIndicatorCode",
                "eventClassifierCode",
                "equipmentReference",
                "UNLocationCode",
                "facilityCode",
                "facilityTypeCode"
              ]
            },
            {
              "properties": {
                "otherFacility": {
                  "$ref": "#/$defs/otherFacility"
                }
              },
              "required": [
                "eventType",
                "eventDateTime",
                "eventTypeCode",
                "emptyIndicatorCode",
                "eventClassifierCode",
                "equipmentReference",
                "otherFacility",
                "facilityCode",
                "facilityTypeCode"
              ]
            }
          ]
        }
      ]
    },
    "equipmentEventTypeCode": {
      "type": "string",
      "description": "Specifies the type of event.\n- LOAD = Loaded\n- DISC = Discharged\n- GTIN = Gated In\n- GTOT = Gated Out\n- STUF = Stuffed\n- STRP = Stripped\n- PICK = Picked Up\n- DROP = Dropped Off\n- HOLD = On Hold\n",
      "enum": [
        "LOAD",
        "DISC",
        "GTIN",
        "GTOT",
        "STUF",
        "STRP",
        "PICK",
        "DROP",
        "HOLD"
      ]
    },
    "equipmentReference": {
      "type": "string",
      "description": "The unique identifier for the equipment, which should follow the BIC ISO Container Identification Number standard where possible. If a container is not yet assigned to a shipment, the interface cannot return any information when an equipment reference is given as input. If a container is assigned to an (active) shipment, the interface returns information on the active shipment."
    },
    "event": {
      "description": "The event entity is described as a generalization of all the specific event categories. An event always takes place in relation to a shipment and can additionally be linked to a transport mode or an equipment entity.",
      "type": "object",
      "properties": {
        "eventType": {
          "$ref": "#/$defs/eventType"
        },
        "eventDateTime": {
          "$ref": "#/$defs/eventDateTime"
        }
      },
      "required": [
        "eventType",
        "eventDateTime",
        "eventTypeCode"
      ]
    },
    "eventClassifierCode": {
      "type": "string",
      "description": "Specifies whether the event is Actual, Planned or Estimated.\n- PLN = Planned. Used for future appointments agreed on by two parties.\n- ACT = Actual. Used for confirmed events that have happened in the past.\n- EST = Estimated. Used for future events that are forecasted but subject to change.\n",
      "enum": [
        "PLN",
        "ACT",
        "EST"
      ]
    },
    "eventDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The local date and time, where the event took place, in ISO 8601 format."
    },
    "eventType": {
      "description": "The Event Type of the object.",
      "nullable": false,
      "type": "string",
      "enum": [
        "equipmentEvent",
        "shipmentEvent",
        "positionEvent"
      ]
    },
    "facilityCode": {
      "type": "string",
      "description": "The code used for identifying the specific facility."
    },
    "facilityTypeCode": {
      "type": "string",
      "description": "Specifies the type of facility.\n- BOCR = Border Crossing. Border crossing is the point at a border between two countries where people, transports or goods can cross. This may or may not include a customs checkpoint.\n- CLOC = Customer Location. Customer location is the premise of the customer, who can be either the shipper or the consignee.\n- COFS = Container Freight Station. Container freight station is a facility where LCL (Less Than Container Load) shipments are consolidated or dispersed, cargo is stuffed into containers prior to shipment, or cargo is stripped from containers prior to release to the consignee.\n- COYA = Container Yard. A place where containers are stored on the terminal or dry port (rail ramp) before they are loaded or offloaded from a ship. Containers are either stored for loading to be transported elsewhere or offloaded as they arrive into the port, terminal or rail ramp.\n- OFFD = Off-Dock Storage. An interim storage facility where empty or full containers are stored in transit.\n- DEPO = Depot. Depot is a designated area where empty equipment is stored between use.\n- INTE = Inland Terminal. Inland terminal is a facility where containers are loaded, moved, or discharged. The inland terminal can be serviced by trucks, rail, and barges (at river terminals).\n- POTE = Port Terminal. Port terminal is a facility located adjacent to a waterway where containers are loaded, moved, or discharged onto/from sea-going vessels and barges.\n",
      "enum": [
        "BOCR",
        "CLOC",
        "COFS",
        "COYA",
        "OFFD",
        "DEPO",
        "INTE",
        "POTE"
      ]
    },
    "modeOfTransportCode": {
      "type": "string",
      "description": "Specifies the transport mode.",
      "enum": [
        "VESSEL",
        "RAIL",
        "TRUCK"
      ]
    },
    "otherFacility": {
      "type": "string",
      "description": "An alternative way to capture the facility when no standardized DCSA facility code can be found."
    },
    "positionEvent": {
      "description": "An event capturing the current position of a transport or equipment entity.",
      "allOf": [
        {
          "$ref": "#/$defs/event"
        },
        {
          "type": "object",
          "properties": {
            "eventType": {
              "type": "string",
              "nullable": false,
              "enum": [
                "positionEvent"
              ]
            },
            "equipmentReference": {
              "$ref": "#/$defs/equipmentReference"
            },
            "coordinates": {
              "$ref": "#/$defs/Point"
            }
          },
          "required": [
            "eventType",
            "equipmentReference",
            "coordinates"
          ]
        }
      ]
    },
    "shipmentDocumentInformationTypeCode": {
      "type": "string",
      "description": "Specifies the type of document.\n- SHI = Shipping Instruction (Delivery Order)\n",
      "enum": [
        "SHI"
      ]
    },
    "shipmentEvent": {
      "description": "The shipment event entity is a specialization of the event entity to support specification of data that only applies to a shipment event. This is where to put all event data that applies to the paperwork related to a shipment (e.g. a Delivery Order). It has a different set of event codes.",
      "allOf": [
        {
          "$ref": "#/$defs/event"
        },
        {
          "type": "object",
          "properties": {
            "eventType": {
              "type": "string",
              "nullable": false,
              "enum": [
                "shipmentEvent"
              ]
            },
            "eventTypeCode": {
              "$ref": "#/$defs/shipmentEventTypeCode"
            },
            "eventClassifierCode": {
              "$ref": "#/$defs/eventClassifierCode"
            },
            "equipmentReference": {
              "$ref": "#/$defs/equipmentReference"
            },
            "shipmentDocumentInformationTypeCode": {
              "$ref": "#/$defs/shipmentDocumentInformationTypeCode"
            }
          }
        }
      ]
    },
    "shipmentEventTypeCode": {
      "type": "string",
      "description": "Specifies the type of shipmentEvent.\n- ISSU = Issued\n- RECE = Received\n- REJE = Rejected\n",
      "enum": [
        "ISSU",
        "RECE",
        "REJE"
      ]
    }
  }
}

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/opentrack-partner-data-payload"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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