curl --request POST \
--url https://api.terminal49.com/v2/tracking_requests \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"attributes": {
"request_type": "bill_of_lading",
"request_number": "MEDUFR030802",
"ref_numbers": [
"PO12345",
"HBL12345",
"CUSREF1234"
],
"shipment_tags": [
"camembert"
],
"scac": "MSCU"
},
"relationships": {
"customer": {
"data": {
"id": "f7cb530a-9e60-412c-a5bc-205a2f34ba54",
"type": "party"
}
}
},
"type": "tracking_request"
}
}
'{
"data": {
"id": "ba4cb904-827f-4038-8e31-1e92b3356218",
"type": "tracking_request",
"attributes": {
"request_number": "MEDUFR030802",
"request_type": "bill_of_lading",
"scac": "MSCU",
"ref_numbers": [],
"created_at": "2020-04-04T16:13:35-07:00",
"updated_at": "2020-04-04T17:13:35-07:00",
"status": "pending",
"failed_reason": null
},
"relationships": {
"tracked_object": {
"data": null
},
"customer": {
"data": {
"id": "f7cb530a-9e60-412c-a5bc-205a2f34ba54",
"type": "party"
}
}
},
"links": {
"self": "/v2/tracking_requests/ba4cb904-827f-4038-8e31-1e92b3356218"
}
}
}Submit a new tracking request to monitor ocean shipments via bill of lading, booking number, or container number.
curl --request POST \
--url https://api.terminal49.com/v2/tracking_requests \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"attributes": {
"request_type": "bill_of_lading",
"request_number": "MEDUFR030802",
"ref_numbers": [
"PO12345",
"HBL12345",
"CUSREF1234"
],
"shipment_tags": [
"camembert"
],
"scac": "MSCU"
},
"relationships": {
"customer": {
"data": {
"id": "f7cb530a-9e60-412c-a5bc-205a2f34ba54",
"type": "party"
}
}
},
"type": "tracking_request"
}
}
'{
"data": {
"id": "ba4cb904-827f-4038-8e31-1e92b3356218",
"type": "tracking_request",
"attributes": {
"request_number": "MEDUFR030802",
"request_type": "bill_of_lading",
"scac": "MSCU",
"ref_numbers": [],
"created_at": "2020-04-04T16:13:35-07:00",
"updated_at": "2020-04-04T17:13:35-07:00",
"status": "pending",
"failed_reason": null
},
"relationships": {
"tracked_object": {
"data": null
},
"customer": {
"data": {
"id": "f7cb530a-9e60-412c-a5bc-205a2f34ba54",
"type": "party"
}
}
},
"links": {
"self": "/v2/tracking_requests/ba4cb904-827f-4038-8e31-1e92b3356218"
}
}
}Documentation Index
Fetch the complete documentation index at: https://terminal49-docs-api-documentation-improvements.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Track by Bill of Lading
{
"data": {
"type": "tracking_request",
"attributes": {
"request_type": "bill_of_lading",
"request_number": "MAEU9736478",
"scac": "MAEU"
}
}
}
{
"data": {
"id": "b9c6a3e0-411e-4378-b93c-aacea42a673e",
"type": "tracking_request",
"attributes": {
"request_type": "bill_of_lading",
"request_number": "MAEU9736478",
"scac": "MAEU",
"status": "pending",
"failed_reason": null,
"created_at": "2023-05-15T14:23:12Z",
"updated_at": "2023-05-15T14:23:12Z"
},
"relationships": {
"shipment": {
"data": null
}
}
}
}
status will initially be pending while Terminal49 processes your request.succeeded or failed.Track by Container Number
{
"data": {
"type": "tracking_request",
"attributes": {
"request_type": "container",
"request_number": "MSCU1234567",
"scac": "MSCU"
}
}
}
{
"data": {
"id": "f7c9b5d2-311e-4378-a91c-bbcea42a785f",
"type": "tracking_request",
"attributes": {
"request_type": "container",
"request_number": "MSCU1234567",
"scac": "MSCU",
"status": "pending",
"failed_reason": null,
"created_at": "2023-05-15T15:45:22Z",
"updated_at": "2023-05-15T15:45:22Z"
},
"relationships": {
"shipment": {
"data": null
}
}
}
}
Using Test Numbers
{
"data": {
"type": "tracking_request",
"attributes": {
"request_type": "bill_of_lading",
"request_number": "TEST-TR-SUCCEEDED",
"scac": "TEST"
}
}
}
{
"data": {
"id": "e8d7c6b5-211d-4378-a81b-aacfa42a895e",
"type": "tracking_request",
"attributes": {
"request_type": "bill_of_lading",
"request_number": "TEST-TR-SUCCEEDED",
"scac": "TEST",
"status": "pending",
"failed_reason": null,
"created_at": "2023-05-15T16:30:45Z",
"updated_at": "2023-05-15T16:30:45Z"
},
"relationships": {
"shipment": {
"data": null
}
}
}
}
TEST-TR-SUCCEEDED will always trigger a successful tracking response.TEST-TR-FAILED will always trigger a failed tracking response.Error Handling
{
"data": {
"type": "tracking_request",
"attributes": {
"request_type": "bill_of_lading",
"request_number": "INVALID-FORMAT",
"scac": "UNKNOWN"
}
}
}
{
"errors": [
{
"status": "422",
"title": "Invalid SCAC",
"detail": "The SCAC 'UNKNOWN' is not supported.",
"source": {
"pointer": "/data/attributes/scac"
}
}
]
}
pending: Request is being processedsucceeded: Container/shipment located and tracking establishedfailed: Unable to track the shipment (see failed_reason)awaiting_manifest: Bill of lading is valid but not yet available in the carrier’s systemtracking_stopped: Tracking has been stopped for this requestduplicate: Shipment already exists in Terminal49not_found: Shipping line couldn’t find the tracking numberretries_exhausted: Maximum retries reached without successinvalid_number: Improperly formatted tracking numberMy tracking request is stuck in 'pending' status
Tracking request failed with 'not_found'
I received a duplicate error
GET /shipments with a filter to find the existing shipment:GET /shipments?filter[bill_of_lading_number]=MAEU9736478
Track by Booking Number
{
"data": {
"attributes": {
"request_type": "booking_number",
"request_number": "OOLU8324567",
"scac": "OOLU"
},
"type": "tracking_request"
}
}
Including Reference Numbers
{
"data": {
"attributes": {
"request_type": "bill_of_lading",
"request_number": "MEDUFR030802",
"scac": "MSCU",
"ref_numbers": [
"PO12345",
"HBL12345",
"INV9876"
]
},
"type": "tracking_request"
}
}
Adding Tags
{
"data": {
"attributes": {
"request_type": "bill_of_lading",
"request_number": "MAEU9736478",
"scac": "MAEU",
"shipment_tags": [
"priority",
"electronics",
"q2-2023"
]
},
"type": "tracking_request"
}
}
Associating with a Customer
{
"data": {
"attributes": {
"request_type": "bill_of_lading",
"request_number": "MAEU9736478",
"scac": "MAEU"
},
"relationships": {
"customer": {
"data": {
"id": "f7cb530a-9e60-412c-a5bc-205a2f34ba54",
"type": "party"
}
}
},
"type": "tracking_request"
}
}
Token YOUR_API_TOKEN
The APIs require authentication to be done using header-based API Key and Secret Authentication.
API key and secret are sent va the Authorization request header.
You send your API key and secret in the following way:
Authorization: Token YOUR_API_KEY
Create a shipment tracking request
Show child attributes
Was this page helpful?