PortConnect API

API change history

Container visit (search)

Returns all container visits match the supplied criteria

Try it

Request

Request URL

Request parameters

  • array

    Array of container numbers to search

  • (optional)
    string

    UN port code to search

Request headers

  • string
    Subscription key which provides access to this API. Found in your Profile.

Request body

Responses

200 OK

OK

Representations

[
  {
    "containerVisitId": 0,
    "portCode": "string",
    "category": "string",
    "containerNumber": "string",
    "shipmentDirection": "string",
    "inboundVesselRef": "string",
    "inboundVesselName": "string",
    "inboundVesselPublishedArrivalDatetime": "string",
    "inboundVesselActualArrivalDatetime": "string",
    "inboundVesselPublishedDepartureDatetime": "string",
    "inboundVesselActualDepartureDatetime": "string",
    "outboundVesselRef": "string",
    "outboundVesselName": "string",
    "outboundVesselPublishedArrivalDatetime": "string",
    "outboundVesselActualArrivalDatetime": "string",
    "outboundVesselPublishedDepartureDatetime": "string",
    "outboundVesselActualDepartureDatetime": "string",
    "containerIsoTypeCode": "string",
    "containerIsoTypeDescription": "string",
    "declaredWeight": 0.0,
    "declaredWeightVgm": true,
    "commodityCode": "string",
    "containerStatus": "string",
    "requiredTemperature": 0.0,
    "ventSetting": "string",
    "o2Percent": 0.0,
    "cO2Percent": 0.0,
    "humidityPercent": 0.0,
    "packedOffPowerDatetime": "string",
    "packedOffPowerTemp": 0.0,
    "maxHoursAllowedOffPower": 0.0,
    "containerOperatorCode": "string",
    "containerOperatorName": "string",
    "containerOperatorVoyageId": "string",
    "loadPortCode": "string",
    "loadPortName": "string",
    "dischargePortCode": "string",
    "dischargePortName": "string",
    "destinationPortCode": "string",
    "destinationPortName": "string",
    "inlandPortArrivalDatetime": "string",
    "inlandPortCarrier": "string",
    "seaPortCarrier": "string",
    "loadDatetime": "string",
    "receivedDatetime": "string",
    "inlandPortInboundCarrier": "string",
    "seaPortArrivalDatetime": "string",
    "seaPortInboundCarrier": "string",
    "bookingReference": "string",
    "cedoNumberCode": "string",
    "dischargedDatetime": "string",
    "deliveredDatetime": "string",
    "securityCheck": "string",
    "lastFreeDatetime": "string",
    "lineReleaseDatetime": "string",
    "customsReleaseDatetime": "string",
    "mpiReleaseDatetime": "string",
    "containerLocation": "string",
    "emptyReturnDepotCode": "string",
    "emptyReturnDepotName": "string",
    "sealCount": 0,
    "hazardCount": 0,
    "stopCount": 0,
    "oversizeCount": 0,
    "seals": [
      {
        "containerSealTypeCode": "string",
        "containerSealValue": "string"
      }
    ],
    "hazards": [
      {
        "unHazardousCode": "string",
        "unHazardousDescription": "string",
        "unHazardousClassCode": "string"
      }
    ],
    "stops": [
      {
        "stopTypeCode": "string"
      }
    ],
    "oversizes": [
      {
        "dimensionCode": "string",
        "oversizeValueCm": 0.0
      }
    ]
  }
]
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "containerVisitId": {
        "format": "int32",
        "type": "integer"
      },
      "portCode": {
        "type": "string"
      },
      "category": {
        "type": "string"
      },
      "containerNumber": {
        "type": "string"
      },
      "shipmentDirection": {
        "type": "string"
      },
      "inboundVesselRef": {
        "type": "string"
      },
      "inboundVesselName": {
        "type": "string"
      },
      "inboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselRef": {
        "type": "string"
      },
      "outboundVesselName": {
        "type": "string"
      },
      "outboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerIsoTypeCode": {
        "type": "string"
      },
      "containerIsoTypeDescription": {
        "type": "string"
      },
      "declaredWeight": {
        "format": "float",
        "type": "number"
      },
      "declaredWeightVgm": {
        "type": "boolean"
      },
      "commodityCode": {
        "type": "string"
      },
      "containerStatus": {
        "type": "string"
      },
      "requiredTemperature": {
        "format": "float",
        "type": "number"
      },
      "ventSetting": {
        "type": "string"
      },
      "o2Percent": {
        "format": "float",
        "type": "number"
      },
      "cO2Percent": {
        "format": "float",
        "type": "number"
      },
      "humidityPercent": {
        "format": "float",
        "type": "number"
      },
      "packedOffPowerDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "packedOffPowerTemp": {
        "format": "float",
        "type": "number"
      },
      "maxHoursAllowedOffPower": {
        "format": "float",
        "type": "number"
      },
      "containerOperatorCode": {
        "type": "string"
      },
      "containerOperatorName": {
        "type": "string"
      },
      "containerOperatorVoyageId": {
        "type": "string"
      },
      "loadPortCode": {
        "type": "string"
      },
      "loadPortName": {
        "type": "string"
      },
      "dischargePortCode": {
        "type": "string"
      },
      "dischargePortName": {
        "type": "string"
      },
      "destinationPortCode": {
        "type": "string"
      },
      "destinationPortName": {
        "type": "string"
      },
      "inlandPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortCarrier": {
        "type": "string"
      },
      "seaPortCarrier": {
        "type": "string"
      },
      "loadDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "receivedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortInboundCarrier": {
        "type": "string"
      },
      "seaPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "seaPortInboundCarrier": {
        "type": "string"
      },
      "bookingReference": {
        "type": "string"
      },
      "cedoNumberCode": {
        "type": "string"
      },
      "dischargedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "deliveredDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "securityCheck": {
        "type": "string"
      },
      "lastFreeDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "lineReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "customsReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "mpiReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerLocation": {
        "type": "string"
      },
      "emptyReturnDepotCode": {
        "type": "string"
      },
      "emptyReturnDepotName": {
        "type": "string"
      },
      "sealCount": {
        "format": "int32",
        "type": "integer"
      },
      "hazardCount": {
        "format": "int32",
        "type": "integer"
      },
      "stopCount": {
        "format": "int32",
        "type": "integer"
      },
      "oversizeCount": {
        "format": "int32",
        "type": "integer"
      },
      "seals": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "containerSealTypeCode": {
              "type": "string"
            },
            "containerSealValue": {
              "type": "string"
            }
          }
        }
      },
      "hazards": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "unHazardousCode": {
              "type": "string"
            },
            "unHazardousDescription": {
              "type": "string"
            },
            "unHazardousClassCode": {
              "type": "string"
            }
          }
        }
      },
      "stops": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "stopTypeCode": {
              "type": "string"
            }
          }
        }
      },
      "oversizes": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "dimensionCode": {
              "type": "string"
            },
            "oversizeValueCm": {
              "format": "float",
              "type": "number"
            }
          }
        }
      }
    }
  }
}
[
  {
    "containerVisitId": 0,
    "portCode": "string",
    "category": "string",
    "containerNumber": "string",
    "shipmentDirection": "string",
    "inboundVesselRef": "string",
    "inboundVesselName": "string",
    "inboundVesselPublishedArrivalDatetime": "string",
    "inboundVesselActualArrivalDatetime": "string",
    "inboundVesselPublishedDepartureDatetime": "string",
    "inboundVesselActualDepartureDatetime": "string",
    "outboundVesselRef": "string",
    "outboundVesselName": "string",
    "outboundVesselPublishedArrivalDatetime": "string",
    "outboundVesselActualArrivalDatetime": "string",
    "outboundVesselPublishedDepartureDatetime": "string",
    "outboundVesselActualDepartureDatetime": "string",
    "containerIsoTypeCode": "string",
    "containerIsoTypeDescription": "string",
    "declaredWeight": 0.0,
    "declaredWeightVgm": true,
    "commodityCode": "string",
    "containerStatus": "string",
    "requiredTemperature": 0.0,
    "ventSetting": "string",
    "o2Percent": 0.0,
    "cO2Percent": 0.0,
    "humidityPercent": 0.0,
    "packedOffPowerDatetime": "string",
    "packedOffPowerTemp": 0.0,
    "maxHoursAllowedOffPower": 0.0,
    "containerOperatorCode": "string",
    "containerOperatorName": "string",
    "containerOperatorVoyageId": "string",
    "loadPortCode": "string",
    "loadPortName": "string",
    "dischargePortCode": "string",
    "dischargePortName": "string",
    "destinationPortCode": "string",
    "destinationPortName": "string",
    "inlandPortArrivalDatetime": "string",
    "inlandPortCarrier": "string",
    "seaPortCarrier": "string",
    "loadDatetime": "string",
    "receivedDatetime": "string",
    "inlandPortInboundCarrier": "string",
    "seaPortArrivalDatetime": "string",
    "seaPortInboundCarrier": "string",
    "bookingReference": "string",
    "cedoNumberCode": "string",
    "dischargedDatetime": "string",
    "deliveredDatetime": "string",
    "securityCheck": "string",
    "lastFreeDatetime": "string",
    "lineReleaseDatetime": "string",
    "customsReleaseDatetime": "string",
    "mpiReleaseDatetime": "string",
    "containerLocation": "string",
    "emptyReturnDepotCode": "string",
    "emptyReturnDepotName": "string",
    "sealCount": 0,
    "hazardCount": 0,
    "stopCount": 0,
    "oversizeCount": 0,
    "seals": [
      {
        "containerSealTypeCode": "string",
        "containerSealValue": "string"
      }
    ],
    "hazards": [
      {
        "unHazardousCode": "string",
        "unHazardousDescription": "string",
        "unHazardousClassCode": "string"
      }
    ],
    "stops": [
      {
        "stopTypeCode": "string"
      }
    ],
    "oversizes": [
      {
        "dimensionCode": "string",
        "oversizeValueCm": 0.0
      }
    ]
  }
]
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "containerVisitId": {
        "format": "int32",
        "type": "integer"
      },
      "portCode": {
        "type": "string"
      },
      "category": {
        "type": "string"
      },
      "containerNumber": {
        "type": "string"
      },
      "shipmentDirection": {
        "type": "string"
      },
      "inboundVesselRef": {
        "type": "string"
      },
      "inboundVesselName": {
        "type": "string"
      },
      "inboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselRef": {
        "type": "string"
      },
      "outboundVesselName": {
        "type": "string"
      },
      "outboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerIsoTypeCode": {
        "type": "string"
      },
      "containerIsoTypeDescription": {
        "type": "string"
      },
      "declaredWeight": {
        "format": "float",
        "type": "number"
      },
      "declaredWeightVgm": {
        "type": "boolean"
      },
      "commodityCode": {
        "type": "string"
      },
      "containerStatus": {
        "type": "string"
      },
      "requiredTemperature": {
        "format": "float",
        "type": "number"
      },
      "ventSetting": {
        "type": "string"
      },
      "o2Percent": {
        "format": "float",
        "type": "number"
      },
      "cO2Percent": {
        "format": "float",
        "type": "number"
      },
      "humidityPercent": {
        "format": "float",
        "type": "number"
      },
      "packedOffPowerDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "packedOffPowerTemp": {
        "format": "float",
        "type": "number"
      },
      "maxHoursAllowedOffPower": {
        "format": "float",
        "type": "number"
      },
      "containerOperatorCode": {
        "type": "string"
      },
      "containerOperatorName": {
        "type": "string"
      },
      "containerOperatorVoyageId": {
        "type": "string"
      },
      "loadPortCode": {
        "type": "string"
      },
      "loadPortName": {
        "type": "string"
      },
      "dischargePortCode": {
        "type": "string"
      },
      "dischargePortName": {
        "type": "string"
      },
      "destinationPortCode": {
        "type": "string"
      },
      "destinationPortName": {
        "type": "string"
      },
      "inlandPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortCarrier": {
        "type": "string"
      },
      "seaPortCarrier": {
        "type": "string"
      },
      "loadDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "receivedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortInboundCarrier": {
        "type": "string"
      },
      "seaPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "seaPortInboundCarrier": {
        "type": "string"
      },
      "bookingReference": {
        "type": "string"
      },
      "cedoNumberCode": {
        "type": "string"
      },
      "dischargedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "deliveredDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "securityCheck": {
        "type": "string"
      },
      "lastFreeDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "lineReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "customsReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "mpiReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerLocation": {
        "type": "string"
      },
      "emptyReturnDepotCode": {
        "type": "string"
      },
      "emptyReturnDepotName": {
        "type": "string"
      },
      "sealCount": {
        "format": "int32",
        "type": "integer"
      },
      "hazardCount": {
        "format": "int32",
        "type": "integer"
      },
      "stopCount": {
        "format": "int32",
        "type": "integer"
      },
      "oversizeCount": {
        "format": "int32",
        "type": "integer"
      },
      "seals": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "containerSealTypeCode": {
              "type": "string"
            },
            "containerSealValue": {
              "type": "string"
            }
          }
        }
      },
      "hazards": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "unHazardousCode": {
              "type": "string"
            },
            "unHazardousDescription": {
              "type": "string"
            },
            "unHazardousClassCode": {
              "type": "string"
            }
          }
        }
      },
      "stops": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "stopTypeCode": {
              "type": "string"
            }
          }
        }
      },
      "oversizes": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "dimensionCode": {
              "type": "string"
            },
            "oversizeValueCm": {
              "format": "float",
              "type": "number"
            }
          }
        }
      }
    }
  }
}
<ContainerVisitArray>
  <containerVisitId>0</containerVisitId>
  <portCode>string</portCode>
  <category>string</category>
  <containerNumber>string</containerNumber>
  <shipmentDirection>string</shipmentDirection>
  <inboundVesselRef>string</inboundVesselRef>
  <inboundVesselName>string</inboundVesselName>
  <inboundVesselPublishedArrivalDatetime>string</inboundVesselPublishedArrivalDatetime>
  <inboundVesselActualArrivalDatetime>string</inboundVesselActualArrivalDatetime>
  <inboundVesselPublishedDepartureDatetime>string</inboundVesselPublishedDepartureDatetime>
  <inboundVesselActualDepartureDatetime>string</inboundVesselActualDepartureDatetime>
  <outboundVesselRef>string</outboundVesselRef>
  <outboundVesselName>string</outboundVesselName>
  <outboundVesselPublishedArrivalDatetime>string</outboundVesselPublishedArrivalDatetime>
  <outboundVesselActualArrivalDatetime>string</outboundVesselActualArrivalDatetime>
  <outboundVesselPublishedDepartureDatetime>string</outboundVesselPublishedDepartureDatetime>
  <outboundVesselActualDepartureDatetime>string</outboundVesselActualDepartureDatetime>
  <containerIsoTypeCode>string</containerIsoTypeCode>
  <containerIsoTypeDescription>string</containerIsoTypeDescription>
  <declaredWeight>0</declaredWeight>
  <declaredWeightVgm>true</declaredWeightVgm>
  <commodityCode>string</commodityCode>
  <containerStatus>string</containerStatus>
  <requiredTemperature>0</requiredTemperature>
  <ventSetting>string</ventSetting>
  <o2Percent>0</o2Percent>
  <cO2Percent>0</cO2Percent>
  <humidityPercent>0</humidityPercent>
  <packedOffPowerDatetime>string</packedOffPowerDatetime>
  <packedOffPowerTemp>0</packedOffPowerTemp>
  <maxHoursAllowedOffPower>0</maxHoursAllowedOffPower>
  <containerOperatorCode>string</containerOperatorCode>
  <containerOperatorName>string</containerOperatorName>
  <containerOperatorVoyageId>string</containerOperatorVoyageId>
  <loadPortCode>string</loadPortCode>
  <loadPortName>string</loadPortName>
  <dischargePortCode>string</dischargePortCode>
  <dischargePortName>string</dischargePortName>
  <destinationPortCode>string</destinationPortCode>
  <destinationPortName>string</destinationPortName>
  <inlandPortArrivalDatetime>string</inlandPortArrivalDatetime>
  <inlandPortCarrier>string</inlandPortCarrier>
  <seaPortCarrier>string</seaPortCarrier>
  <loadDatetime>string</loadDatetime>
  <receivedDatetime>string</receivedDatetime>
  <inlandPortInboundCarrier>string</inlandPortInboundCarrier>
  <seaPortArrivalDatetime>string</seaPortArrivalDatetime>
  <seaPortInboundCarrier>string</seaPortInboundCarrier>
  <bookingReference>string</bookingReference>
  <cedoNumberCode>string</cedoNumberCode>
  <dischargedDatetime>string</dischargedDatetime>
  <deliveredDatetime>string</deliveredDatetime>
  <securityCheck>string</securityCheck>
  <lastFreeDatetime>string</lastFreeDatetime>
  <lineReleaseDatetime>string</lineReleaseDatetime>
  <customsReleaseDatetime>string</customsReleaseDatetime>
  <mpiReleaseDatetime>string</mpiReleaseDatetime>
  <containerLocation>string</containerLocation>
  <emptyReturnDepotCode>string</emptyReturnDepotCode>
  <emptyReturnDepotName>string</emptyReturnDepotName>
  <sealCount>0</sealCount>
  <hazardCount>0</hazardCount>
  <stopCount>0</stopCount>
  <oversizeCount>0</oversizeCount>
  <seals>
    <containerSealTypeCode>string</containerSealTypeCode>
    <containerSealValue>string</containerSealValue>
  </seals>
  <hazards>
    <unHazardousCode>string</unHazardousCode>
    <unHazardousDescription>string</unHazardousDescription>
    <unHazardousClassCode>string</unHazardousClassCode>
  </hazards>
  <stops>
    <stopTypeCode>string</stopTypeCode>
  </stops>
  <oversizes>
    <dimensionCode>string</dimensionCode>
    <oversizeValueCm>0</oversizeValueCm>
  </oversizes>
</ContainerVisitArray>
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "containerVisitId": {
        "format": "int32",
        "type": "integer"
      },
      "portCode": {
        "type": "string"
      },
      "category": {
        "type": "string"
      },
      "containerNumber": {
        "type": "string"
      },
      "shipmentDirection": {
        "type": "string"
      },
      "inboundVesselRef": {
        "type": "string"
      },
      "inboundVesselName": {
        "type": "string"
      },
      "inboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselRef": {
        "type": "string"
      },
      "outboundVesselName": {
        "type": "string"
      },
      "outboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerIsoTypeCode": {
        "type": "string"
      },
      "containerIsoTypeDescription": {
        "type": "string"
      },
      "declaredWeight": {
        "format": "float",
        "type": "number"
      },
      "declaredWeightVgm": {
        "type": "boolean"
      },
      "commodityCode": {
        "type": "string"
      },
      "containerStatus": {
        "type": "string"
      },
      "requiredTemperature": {
        "format": "float",
        "type": "number"
      },
      "ventSetting": {
        "type": "string"
      },
      "o2Percent": {
        "format": "float",
        "type": "number"
      },
      "cO2Percent": {
        "format": "float",
        "type": "number"
      },
      "humidityPercent": {
        "format": "float",
        "type": "number"
      },
      "packedOffPowerDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "packedOffPowerTemp": {
        "format": "float",
        "type": "number"
      },
      "maxHoursAllowedOffPower": {
        "format": "float",
        "type": "number"
      },
      "containerOperatorCode": {
        "type": "string"
      },
      "containerOperatorName": {
        "type": "string"
      },
      "containerOperatorVoyageId": {
        "type": "string"
      },
      "loadPortCode": {
        "type": "string"
      },
      "loadPortName": {
        "type": "string"
      },
      "dischargePortCode": {
        "type": "string"
      },
      "dischargePortName": {
        "type": "string"
      },
      "destinationPortCode": {
        "type": "string"
      },
      "destinationPortName": {
        "type": "string"
      },
      "inlandPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortCarrier": {
        "type": "string"
      },
      "seaPortCarrier": {
        "type": "string"
      },
      "loadDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "receivedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortInboundCarrier": {
        "type": "string"
      },
      "seaPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "seaPortInboundCarrier": {
        "type": "string"
      },
      "bookingReference": {
        "type": "string"
      },
      "cedoNumberCode": {
        "type": "string"
      },
      "dischargedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "deliveredDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "securityCheck": {
        "type": "string"
      },
      "lastFreeDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "lineReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "customsReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "mpiReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerLocation": {
        "type": "string"
      },
      "emptyReturnDepotCode": {
        "type": "string"
      },
      "emptyReturnDepotName": {
        "type": "string"
      },
      "sealCount": {
        "format": "int32",
        "type": "integer"
      },
      "hazardCount": {
        "format": "int32",
        "type": "integer"
      },
      "stopCount": {
        "format": "int32",
        "type": "integer"
      },
      "oversizeCount": {
        "format": "int32",
        "type": "integer"
      },
      "seals": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "containerSealTypeCode": {
              "type": "string"
            },
            "containerSealValue": {
              "type": "string"
            }
          }
        }
      },
      "hazards": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "unHazardousCode": {
              "type": "string"
            },
            "unHazardousDescription": {
              "type": "string"
            },
            "unHazardousClassCode": {
              "type": "string"
            }
          }
        }
      },
      "stops": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "stopTypeCode": {
              "type": "string"
            }
          }
        }
      },
      "oversizes": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "dimensionCode": {
              "type": "string"
            },
            "oversizeValueCm": {
              "format": "float",
              "type": "number"
            }
          }
        }
      }
    }
  }
}
<ContainerVisitArray>
  <containerVisitId>0</containerVisitId>
  <portCode>string</portCode>
  <category>string</category>
  <containerNumber>string</containerNumber>
  <shipmentDirection>string</shipmentDirection>
  <inboundVesselRef>string</inboundVesselRef>
  <inboundVesselName>string</inboundVesselName>
  <inboundVesselPublishedArrivalDatetime>string</inboundVesselPublishedArrivalDatetime>
  <inboundVesselActualArrivalDatetime>string</inboundVesselActualArrivalDatetime>
  <inboundVesselPublishedDepartureDatetime>string</inboundVesselPublishedDepartureDatetime>
  <inboundVesselActualDepartureDatetime>string</inboundVesselActualDepartureDatetime>
  <outboundVesselRef>string</outboundVesselRef>
  <outboundVesselName>string</outboundVesselName>
  <outboundVesselPublishedArrivalDatetime>string</outboundVesselPublishedArrivalDatetime>
  <outboundVesselActualArrivalDatetime>string</outboundVesselActualArrivalDatetime>
  <outboundVesselPublishedDepartureDatetime>string</outboundVesselPublishedDepartureDatetime>
  <outboundVesselActualDepartureDatetime>string</outboundVesselActualDepartureDatetime>
  <containerIsoTypeCode>string</containerIsoTypeCode>
  <containerIsoTypeDescription>string</containerIsoTypeDescription>
  <declaredWeight>0</declaredWeight>
  <declaredWeightVgm>true</declaredWeightVgm>
  <commodityCode>string</commodityCode>
  <containerStatus>string</containerStatus>
  <requiredTemperature>0</requiredTemperature>
  <ventSetting>string</ventSetting>
  <o2Percent>0</o2Percent>
  <cO2Percent>0</cO2Percent>
  <humidityPercent>0</humidityPercent>
  <packedOffPowerDatetime>string</packedOffPowerDatetime>
  <packedOffPowerTemp>0</packedOffPowerTemp>
  <maxHoursAllowedOffPower>0</maxHoursAllowedOffPower>
  <containerOperatorCode>string</containerOperatorCode>
  <containerOperatorName>string</containerOperatorName>
  <containerOperatorVoyageId>string</containerOperatorVoyageId>
  <loadPortCode>string</loadPortCode>
  <loadPortName>string</loadPortName>
  <dischargePortCode>string</dischargePortCode>
  <dischargePortName>string</dischargePortName>
  <destinationPortCode>string</destinationPortCode>
  <destinationPortName>string</destinationPortName>
  <inlandPortArrivalDatetime>string</inlandPortArrivalDatetime>
  <inlandPortCarrier>string</inlandPortCarrier>
  <seaPortCarrier>string</seaPortCarrier>
  <loadDatetime>string</loadDatetime>
  <receivedDatetime>string</receivedDatetime>
  <inlandPortInboundCarrier>string</inlandPortInboundCarrier>
  <seaPortArrivalDatetime>string</seaPortArrivalDatetime>
  <seaPortInboundCarrier>string</seaPortInboundCarrier>
  <bookingReference>string</bookingReference>
  <cedoNumberCode>string</cedoNumberCode>
  <dischargedDatetime>string</dischargedDatetime>
  <deliveredDatetime>string</deliveredDatetime>
  <securityCheck>string</securityCheck>
  <lastFreeDatetime>string</lastFreeDatetime>
  <lineReleaseDatetime>string</lineReleaseDatetime>
  <customsReleaseDatetime>string</customsReleaseDatetime>
  <mpiReleaseDatetime>string</mpiReleaseDatetime>
  <containerLocation>string</containerLocation>
  <emptyReturnDepotCode>string</emptyReturnDepotCode>
  <emptyReturnDepotName>string</emptyReturnDepotName>
  <sealCount>0</sealCount>
  <hazardCount>0</hazardCount>
  <stopCount>0</stopCount>
  <oversizeCount>0</oversizeCount>
  <seals>
    <containerSealTypeCode>string</containerSealTypeCode>
    <containerSealValue>string</containerSealValue>
  </seals>
  <hazards>
    <unHazardousCode>string</unHazardousCode>
    <unHazardousDescription>string</unHazardousDescription>
    <unHazardousClassCode>string</unHazardousClassCode>
  </hazards>
  <stops>
    <stopTypeCode>string</stopTypeCode>
  </stops>
  <oversizes>
    <dimensionCode>string</dimensionCode>
    <oversizeValueCm>0</oversizeValueCm>
  </oversizes>
</ContainerVisitArray>
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "containerVisitId": {
        "format": "int32",
        "type": "integer"
      },
      "portCode": {
        "type": "string"
      },
      "category": {
        "type": "string"
      },
      "containerNumber": {
        "type": "string"
      },
      "shipmentDirection": {
        "type": "string"
      },
      "inboundVesselRef": {
        "type": "string"
      },
      "inboundVesselName": {
        "type": "string"
      },
      "inboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselRef": {
        "type": "string"
      },
      "outboundVesselName": {
        "type": "string"
      },
      "outboundVesselPublishedArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselPublishedDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "outboundVesselActualDepartureDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerIsoTypeCode": {
        "type": "string"
      },
      "containerIsoTypeDescription": {
        "type": "string"
      },
      "declaredWeight": {
        "format": "float",
        "type": "number"
      },
      "declaredWeightVgm": {
        "type": "boolean"
      },
      "commodityCode": {
        "type": "string"
      },
      "containerStatus": {
        "type": "string"
      },
      "requiredTemperature": {
        "format": "float",
        "type": "number"
      },
      "ventSetting": {
        "type": "string"
      },
      "o2Percent": {
        "format": "float",
        "type": "number"
      },
      "cO2Percent": {
        "format": "float",
        "type": "number"
      },
      "humidityPercent": {
        "format": "float",
        "type": "number"
      },
      "packedOffPowerDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "packedOffPowerTemp": {
        "format": "float",
        "type": "number"
      },
      "maxHoursAllowedOffPower": {
        "format": "float",
        "type": "number"
      },
      "containerOperatorCode": {
        "type": "string"
      },
      "containerOperatorName": {
        "type": "string"
      },
      "containerOperatorVoyageId": {
        "type": "string"
      },
      "loadPortCode": {
        "type": "string"
      },
      "loadPortName": {
        "type": "string"
      },
      "dischargePortCode": {
        "type": "string"
      },
      "dischargePortName": {
        "type": "string"
      },
      "destinationPortCode": {
        "type": "string"
      },
      "destinationPortName": {
        "type": "string"
      },
      "inlandPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortCarrier": {
        "type": "string"
      },
      "seaPortCarrier": {
        "type": "string"
      },
      "loadDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "receivedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "inlandPortInboundCarrier": {
        "type": "string"
      },
      "seaPortArrivalDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "seaPortInboundCarrier": {
        "type": "string"
      },
      "bookingReference": {
        "type": "string"
      },
      "cedoNumberCode": {
        "type": "string"
      },
      "dischargedDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "deliveredDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "securityCheck": {
        "type": "string"
      },
      "lastFreeDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "lineReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "customsReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "mpiReleaseDatetime": {
        "format": "date-time",
        "type": "string"
      },
      "containerLocation": {
        "type": "string"
      },
      "emptyReturnDepotCode": {
        "type": "string"
      },
      "emptyReturnDepotName": {
        "type": "string"
      },
      "sealCount": {
        "format": "int32",
        "type": "integer"
      },
      "hazardCount": {
        "format": "int32",
        "type": "integer"
      },
      "stopCount": {
        "format": "int32",
        "type": "integer"
      },
      "oversizeCount": {
        "format": "int32",
        "type": "integer"
      },
      "seals": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "containerSealTypeCode": {
              "type": "string"
            },
            "containerSealValue": {
              "type": "string"
            }
          }
        }
      },
      "hazards": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "unHazardousCode": {
              "type": "string"
            },
            "unHazardousDescription": {
              "type": "string"
            },
            "unHazardousClassCode": {
              "type": "string"
            }
          }
        }
      },
      "stops": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "stopTypeCode": {
              "type": "string"
            }
          }
        }
      },
      "oversizes": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "dimensionCode": {
              "type": "string"
            },
            "oversizeValueCm": {
              "format": "float",
              "type": "number"
            }
          }
        }
      }
    }
  }
}

Code samples

@ECHO OFF

curl -v -X GET "https://api.portconnect.io/v1/container-visits?containerNumber={containerNumber}?portCode={string}"
-H "Ocp-Apim-Subscription-Key: {subscription key}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");

            // Request parameters
            queryString["portCode"] = "{string}";
            var uri = "https://api.portconnect.io/v1/container-visits?containerNumber={containerNumber}&" + queryString;

            var response = await client.GetAsync(uri);
        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://api.portconnect.io/v1/container-visits?containerNumber={containerNumber}");

            builder.setParameter("portCode", "{string}");

            URI uri = builder.build();
            HttpGet request = new HttpGet(uri);
            request.setHeader("Ocp-Apim-Subscription-Key", "{subscription key}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
            "portCode": "{string}",
        };
      
        $.ajax({
            url: "https://api.portconnect.io/v1/container-visits?containerNumber={containerNumber}&" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","{subscription key}");
            },
            type: "GET",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://api.portconnect.io/v1/container-visits?containerNumber={containerNumber}";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                         @"portCode={string}",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"GET"];
    // Request headers
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Ocp-Apim-Subscription-Key"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://api.portconnect.io/v1/container-visits?containerNumber={containerNumber}');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Ocp-Apim-Subscription-Key' => '{subscription key}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
    'portCode' => '{string}',
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_GET);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.urlencode({
    # Request parameters
    'portCode': '{string}',
})

try:
    conn = httplib.HTTPSConnection('api.portconnect.io')
    conn.request("GET", "/v1/container-visits?containerNumber={containerNumber}&%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Ocp-Apim-Subscription-Key': '{subscription key}',
}

params = urllib.parse.urlencode({
    # Request parameters
    'portCode': '{string}',
})

try:
    conn = http.client.HTTPSConnection('api.portconnect.io')
    conn.request("GET", "/v1/container-visits?containerNumber={containerNumber}&%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://api.portconnect.io/v1/container-visits?containerNumber={containerNumber}')

query = URI.encode_www_form({
    # Request parameters
    'portCode' => '{string}'
})
if query.length > 0
  if uri.query && uri.query.length > 0
    uri.query += '&' + query
  else
    uri.query = query
  end
end

request = Net::HTTP::Get.new(uri.request_uri)
# Request headers
request['Ocp-Apim-Subscription-Key'] = '{subscription key}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body