Menu
Home Template Basics Find Containers

Find Containers

To use this GET request you will need to following information

  • a-api-key provided by Gatehouse
  • token retrieved from /authentication/login

Request

Retrieving containers only requires the above properties to be used correctly. After obtaining them you can retrieve all the containers by appending this /containers to the endpoint URL

Response

Correct usage results in 200 response (created) in the format shown below

The request has succeeded. The meaning of the success depends on the HTTP method:
– GET: The resource has been fetched and is transmitted in the message body.

[
  {
    "id": integer, 
    "container_number": string, 
    "container_size": string, 
    "container_type": string, 
    "source_name": string, 
    "last_retrieval_ts": string,
    "last_successful_retrieval_ts": string,
    "last_event_ts": string
  },
  ...
]

Example – List of locodes

[
  {
    "id": 32, 
    "container_number": "MRKU0631078", 
    "container_size": "40 feet", 
    "container_type": "refer", 
    "source_name": "Maersk", 
    "last_retrieval_ts": "2021-04-28 14:48:11.236207+00",
    "last_successful_retrieval_ts": "2021-04-28 14:48:11.236207+00",
    "last_event_ts": "2021-04-28 14:48:11.236207+00"
  },
  ...
]
Updated on 05 May, 2021