Download OpenAPI specification:Download
The MarineTraffic Container Tracking API 2.0 is your way to access state-of-the-art real-time visibility for your container shipments. For more information, please visit the solution landing page.
To get access to the solution, please reach out to sales@kpler.com
If you have already issued one, sign in to marinetraffic.com and go to My API Services page to retrieve it.
The API key must be specified in all requests as the value of the API header X-Container-Tracking-API-Key
.
The list of supported shipping lines and freight forwarders is available in this dedicated page.
Create Tracking Requests to start your visibility experience. Up to 100 tracking requests can be created in the same call.
required | Array of objects (CreateTrackingRequestBody) |
Successful operation
Bad request
Unable to process request
Internal Server Error
{- "data": [
- {
- "type": "tracking_request",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "scac": "MEDU",
- "tags": [
- "one tag",
- "second tag"
]
}
}
]
}
{- "data": [
- {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "status": "success",
- "failed_reason": null,
- "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "shipment": {
- "data": {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa"
}, - "links": {
}
}
}
}
], - "errors": [
- {
- "status": 400,
- "code": "DATA_VALIDATION_FAILED",
- "description": "Data validation failed",
- "source": {
- "pointer": "/data/0/attributes/scac"
}
}
]
}
Retrieve a list of the tracking requests created. The list can be filtered by reference number and tags. The list is divided into pages of 50 entries each. Pagination links are provided for easy navigation.
object Structure that can be used as payload when calling the Tracking Request list endpoint. When the filters contain values that return no results, an empty response will be sent. Filters can be applied to reference Number, reference number types, scac and tags. |
successful operation
Internal Server Error
const request = require('request'); const options = { method: 'GET', url: 'https://api.kpler.com/v1/logistics/container-tracking/tracking-requests', qs: {filter: { scac: ['TXZJ', 'LMCU'] }}, headers: {'X-Container-Tracking-API-Key': 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "status": "success",
- "failed_reason": null,
- "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "shipment": {
- "data": {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa"
}, - "links": {
}
}
}
}
], - "links": {
}
}
Retrieve a specific tracking request and all associated information.
successful operation
Tracking request not found
Internal Server Error
const request = require('request'); const options = { method: 'GET', url: 'https://api.kpler.com/v1/logistics/container-tracking/tracking-requests/%7BtrackingRequestId%7D', headers: {'X-Container-Tracking-API-Key': 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "status": "success",
- "failed_reason": null,
- "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "shipment": {
- "data": {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa"
}, - "links": {
}
}
}
}
}
Retrieve a list of your shipments. The list can be filtered by reference number, scac, tags, departure and arrival date range, origin and destination port.
object Structure that can be used as payload when calling the Shipment list endpoint. When the filters contain values that return no results, an empty response will be sent. Filters can be applied to reference Number, reference number types, scac, tags date ranged for arrival and departure, as well as origin and destination of a shipment. |
successful operation
Internal Server Error
const request = require('request'); const options = { method: 'GET', url: 'https://api.kpler.com/v1/logistics/container-tracking/shipments', qs: {filter: { scac: ['TXZJ', 'LMCU'] }}, headers: {'X-Container-Tracking-API-Key': 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": [
- {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "trackingRequest": {
- "data": {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg"
},
}
},
}
], - "links": {
}
}
Retrieve a specific shipment and a comprehensive summary of all associated information.
successful operation
Bad request
Shipment not found
Unable to process request
Internal Server Error
const request = require('request'); const options = { method: 'GET', url: 'https://api.kpler.com/v1/logistics/container-tracking/shipments/%7BshipmentId%7D', headers: {'X-Container-Tracking-API-Key': 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "transportationStatus": "booked",
- "containers": [
- {
- "id": "01hnahef5ym5x2jfndgma4kc6q",
- "number": "HLXU1234567",
- "isoCode": "22G1",
- "type": "General purpose container",
- "size": {
- "length": 20,
- "height": 8.6
}
}
], - "insights": {
- "arrivalDelayDays": 3,
- "rollover": [
- {
- "initialVessel": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "newVessel": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "atPort": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": null,
- "name": null,
- "smdg": null,
- "operator": null
}
}, - "detectedAt": "2024-01-01T00:00:00.000Z",
- "initialDepartureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "localTimeOffset": -3
}, - "newDepartureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "localTimeOffset": -3
}
}
], - "portOfLoadingChange": [
- {
- "initialPort": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": null,
- "name": null,
- "smdg": null,
- "operator": null
}
}, - "newPort": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": null,
- "name": null,
- "smdg": null,
- "operator": null
}
}, - "detectedAt": "2024-01-01T00:00:00.000Z",
- "initialDepartureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "localTimeOffset": -3
}, - "newDepartureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "localTimeOffset": -3
}
}
], - "portOfDischargeChange": [
- {
- "initialPort": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": null,
- "name": null,
- "smdg": null,
- "operator": null
}
}, - "newPort": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": null,
- "name": null,
- "smdg": null,
- "operator": null
}
}, - "detectedAt": "2024-01-01T00:00:00.000Z",
- "initialArrivalDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "localTimeOffset": -3
}, - "newArrivalDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "localTimeOffset": -3
}
}
]
}, - "portOfLoading": {
- "port": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "name": "Piraeus Container terminal",
- "smdg": null,
- "operator": null
}
}, - "departureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}, - "loadingVessel": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "voyageNumber": "123A"
}, - "portOfTranshipment": [
- {
- "port": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "name": "Piraeus Container terminal",
- "smdg": null,
- "operator": null
}
}, - "arrivalDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}, - "departureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}, - "loadingVessel": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "voyageNumber": "123A",
- "sequenceNumber": 1
}
], - "portOfDischarge": {
- "port": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "name": "Piraeus Container terminal",
- "smdg": null,
- "operator": null
}
}, - "arrivalDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}
}, - "currentVessel": {
- "operationalStatus": "Slow Steaming - Open Sea",
- "latestPosition": {
- "lat": -19.88327,
- "lon": 5.713717,
- "geographicalArea": "Mediterranean",
- "heading": 90
}, - "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "updated": "2024-01-01T00:00:00.000Z",
- "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "trackingRequest": {
- "data": {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg"
},
}
},
}, - "meta": {
}
}
Retrieve all milestones, locations and vessels associated with a specific shipment.
successful operation
Bad request
Shipment not found
Unable to process request
Internal Server Error
const request = require('request'); const options = { method: 'GET', url: 'https://api.kpler.com/v1/logistics/container-tracking/shipments/%7BshipmentId%7D/transportation-timeline', headers: {'X-Container-Tracking-API-Key': 'REPLACE_KEY_VALUE'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "data": {
- "type": "transportation-timeline",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa",
- "attributes": {
- "containers": [
- {
- "id": "01hnahef5ym5x2jfndgma4kc6q",
- "number": "HLXU1234567",
- "isoCode": "22G1",
- "type": "General purpose container",
- "size": {
- "length": 20,
- "height": 8.6
}
}
], - "equipmentEvents": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "equipmentEventTypeName": "load",
- "eventClassifierCode": "actual",
- "equipmentReference": [
- "01hnahef5ym5x2jfndgma4kc6q"
], - "eventDateTime": "2024-01-01T00:00:00.000Z",
- "locationId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "vesselId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "modeOfTransport": "maritime_transport",
- "equipmentEmptyIndicator": "laden",
- "eventOrder": 1
}
], - "locations": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "type": "port_of_Loading",
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "localTimeOffset": -3,
- "terminal": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "name": "Piraeus Container terminal",
- "smdg": null,
- "operator": null
}
}
], - "transportEvents": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "transportEventTypeName": "departure",
- "eventClassifierCode": "actual",
- "eventDateTime": "2024-01-01T00:00:00.000Z",
- "locationId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "vesselId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "modeOfTransport": "maritime_transport",
- "eventOrder": 1
}
], - "vessels": [
- {
- "voyageNumber": "123A",
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}
]
},
}, - "meta": {
}
}
Replace all shipment tags
successful operation
Bad request
Shipment not found
Unable to process request
Internal Server Error
{- "data": [
- {
- "type": "tag",
- "attributes": {
- "name": "tag 1"
}
}
]
}
{- "data": {
- "shipmentTags": [
- {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa",
- "attributes": {
- "name": "tag 1"
}
}
]
}
}
Add new tags to a shipment
successful operation
Bad request
Shipment not found
Unable to process request
Internal Server Error
{- "data": [
- {
- "type": "tag",
- "attributes": {
- "name": "tag 1"
}
}
]
}
{- "data": {
- "shipmentTags": [
- {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa",
- "attributes": {
- "name": "tag 1"
}
}
]
}
}
Remove tags from a shipment
successful operation
Bad request
Shipment not found
Unable to process request
Internal Server Error
{- "data": [
- {
- "type": "tag",
- "attributes": {
- "name": "tag 1"
}
}
]
}
{- "data": {
- "shipmentTags": [
- {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa",
- "attributes": {
- "name": "tag 1"
}
}
]
}
}
Webhooks is now a beta feature.
The Webhook API enables your system to subscribe to specific container tracking events and receive real-time updates about them. The current version supports the following events:
To start receiving webhook events, reach out to get a webhook URL that will receive the event updates.
To begin using the Webhook API, follow these steps:
Important: Only one URL is supported per user in the current version, and all events will be pushed to this URL.
To ensure that the events you receive are from the Webhook API and not from unauthorized sources, we recommend the following security measures:
In the event that your system cannot process a webhook request, ensure your endpoint responds with a 500
HTTP status code.
The system will attempt a limited number of retries in case of failures.
The event is triggered when the shipment has been updated. The webhook includes the new version of the shipment.
required | object |
required | Array of objects (Shipment) |
Return a 200 status to indicate that the data was received successfully.
Return a 500 status to indicate that the data was not received successfully.
{- "data": {
- "type": "webhook_event",
- "id": "01j7k957597bmt6x9t6v4nh1gk",
- "attributes": {
- "eventType": "shipment_updated",
- "status": "success",
- "createdAt": "2024-09-13T12:10:00Z"
}, - "relationships": {
- "trackingRequest": {
- "data": {
- "type": "tracking_request",
- "id": "01j7k957597bmt6x9t6v4nh1gc"
},
}, - "shipment": {
- "data": {
- "type": "shipment",
- "id": "01j7k95jfkft4bkd6adnf8hwtp"
},
}
}
}, - "included": [
- {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "transportationStatus": "booked",
- "containers": [
- {
- "id": "01hnahef5ym5x2jfndgma4kc6q",
- "number": "HLXU1234567",
- "isoCode": "22G1",
- "type": "General purpose container",
- "size": {
- "length": 20,
- "height": 8.6
}
}
], - "insights": {
- "arrivalDelayDays": 3,
- "rollover": [
- {
- "initialVessel": {
- "id": null,
- "mtId": null,
- "name": null,
- "imo": null,
- "mmsi": null
}, - "newVessel": {
- "id": null,
- "mtId": null,
- "name": null,
- "imo": null,
- "mmsi": null
}, - "atPort": {
- "id": null,
- "mtId": null,
- "unlocode": null,
- "name": null,
- "country": null,
- "lat": null,
- "lon": null,
- "terminal": null
}, - "detectedAt": "2024-01-01T00:00:00.000Z",
- "initialDepartureDate": {
- "timestamp": null,
- "localTimeOffset": null
}, - "newDepartureDate": {
- "timestamp": null,
- "localTimeOffset": null
}
}
], - "portOfLoadingChange": [
- {
- "initialPort": {
- "id": null,
- "mtId": null,
- "unlocode": null,
- "name": null,
- "country": null,
- "lat": null,
- "lon": null,
- "terminal": null
}, - "newPort": {
- "id": null,
- "mtId": null,
- "unlocode": null,
- "name": null,
- "country": null,
- "lat": null,
- "lon": null,
- "terminal": null
}, - "detectedAt": "2024-01-01T00:00:00.000Z",
- "initialDepartureDate": {
- "timestamp": null,
- "localTimeOffset": null
}, - "newDepartureDate": {
- "timestamp": null,
- "localTimeOffset": null
}
}
], - "portOfDischargeChange": [
- {
- "initialPort": {
- "id": null,
- "mtId": null,
- "unlocode": null,
- "name": null,
- "country": null,
- "lat": null,
- "lon": null,
- "terminal": null
}, - "newPort": {
- "id": null,
- "mtId": null,
- "unlocode": null,
- "name": null,
- "country": null,
- "lat": null,
- "lon": null,
- "terminal": null
}, - "detectedAt": "2024-01-01T00:00:00.000Z",
- "initialArrivalDate": {
- "timestamp": null,
- "localTimeOffset": null
}, - "newArrivalDate": {
- "timestamp": null,
- "localTimeOffset": null
}
}
]
}, - "portOfLoading": {
- "port": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "name": "Piraeus Container terminal",
- "smdg": null,
- "operator": null
}
}, - "departureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}, - "loadingVessel": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "voyageNumber": "123A"
}, - "portOfTranshipment": [
- {
- "port": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": null,
- "name": null,
- "smdg": null,
- "operator": null
}
}, - "arrivalDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}, - "departureDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}, - "loadingVessel": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "voyageNumber": "123A",
- "sequenceNumber": 1
}
], - "portOfDischarge": {
- "port": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "unlocode": "GRPIR",
- "name": "Piraeus",
- "country": "Greece",
- "lat": -19.88327,
- "lon": 5.713717,
- "terminal": {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "name": "Piraeus Container terminal",
- "smdg": null,
- "operator": null
}
}, - "arrivalDate": {
- "timestamp": "2024-01-01T00:00:00.000Z",
- "status": "actual",
- "localTimeOffset": -3
}
}, - "currentVessel": {
- "operationalStatus": "Slow Steaming - Open Sea",
- "latestPosition": {
- "lat": -19.88327,
- "lon": 5.713717,
- "geographicalArea": "Mediterranean",
- "heading": 90
}, - "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "mtId": 12345,
- "name": "Madrid Maersk",
- "imo": 9778791,
- "mmsi": 219836000
}, - "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "updated": "2024-01-01T00:00:00.000Z",
- "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "trackingRequest": {
- "data": {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg"
},
}
},
}
]
}
The event is triggered when your tracking request has been successfully processed and the underlying shipment has been successfully created.
required | object |
required | Array of objects (TrackingRequest) |
Return a 200 status to indicate that the data was received successfully.
Return a 500 status to indicate that the data was not received successfully.
{- "data": {
- "type": "webhook_event",
- "id": "01j7k957597bmt6x9t6v4nh1gk",
- "attributes": {
- "eventType": "tracking_request_succeeded",
- "status": "success",
- "createdAt": "2024-09-13T12:10:00Z"
}, - "relationships": {
- "trackingRequest": {
- "data": {
- "type": "tracking_request",
- "id": "01j7k957597bmt6x9t6v4nh1gc"
},
}, - "shipment": {
- "data": {
- "type": "shipment",
- "id": "01j7k95jfkft4bkd6adnf8hwtp"
},
}
}
}, - "included": [
- {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "status": "success",
- "failed_reason": null,
- "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "shipment": {
- "data": {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa"
}, - "links": {
}
}
}
}
]
}
The event is triggered when your tracking request has failed. It contains details about the failing reason.
required | object |
required | Array of objects (TrackingRequest) |
Return a 200 status to indicate that the data was received successfully.
Return a 500 status to indicate that the data was not received successfully.
{- "data": {
- "type": "webhook_event",
- "id": "01j7k957597bmt6x9t6v4nh1gk",
- "attributes": {
- "eventType": "tracking_request_failed",
- "status": "failed",
- "createdAt": "2024-09-13T12:10:00Z"
}, - "relationships": {
- "trackingRequest": {
- "data": {
- "type": "tracking_request",
- "id": "01j7k957597bmt6x9t6v4nh1gc"
},
}
}
}, - "included": [
- {
- "type": "tracking_request",
- "trackingRequestId": "01hkz69f0m9vxcmgpyrq50dfsg",
- "attributes": {
- "referenceNumberType": "container",
- "referenceNumber": "MEDUPE268513",
- "carrier": {
- "scac": "MEDU",
- "name": "Maersk Line"
}, - "status": "success",
- "failed_reason": null,
- "tags": [
- {
- "id": "01hkz69f0m9vxcmgpyrq50dfsg",
- "label": "Tag one"
}
], - "created": "2024-01-01T00:00:00.000Z"
}, - "relationships": {
- "shipment": {
- "data": {
- "type": "shipment",
- "shipmentId": "01j0qv3jmyete3zwe08nn2dzpa"
}, - "links": {
}
}
}
}
]
}