Skip to Content
TimeToCargo

Update a tracked shipment note

Download OpenAPI
PATCH
/v2/shipments/{id}

Updates the shipment note, including for archived shipments. To delete the note, send an empty string { "note": "" } in the request body. Maximum length is 40 characters. Other body fields are rejected.

Authorization

api_key
queryapi_key<token>

Path Parameters

id*string

Tracked shipment ID

Formatuuid

Request Body

application/json
  1. body
note*string

Note, limited to 40 characters including spaces and line breaks. Length is counted before trimming edges. To delete the note, send an empty string "note": "". Null is not accepted as input.

Lengthlength <= 40

Response Body

OK

application/json
  1. response
success*boolean

Whether processing succeeded. For tracking results, also check status: success=true does not mean data was found.

data*

Updated shipment, including stored tracking data and route information. Does not trigger tracking.

status*string

Request execution status

Value in"OK""WRONG_PARAMS""UNEXPECTED_ERROR""INFO_NOT_FOUND""LINE_IS_UNDER_MAINTENANCE""LINE_NO_RESPONSE""API_KEY_WRONG""API_KEY_LIMIT_REACHED""API_KEY_RATE_LIMIT""LOW_BALANCE""SERVICE_UNAVAILABLE"
status_description*|

Status description

Example Request
curl -X PATCH 'https://tracking.timetocargo.com/v2/shipments/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \  -H 'Content-Type: application/json' \  -d '{  "note": "Order 123"}'
{  "success": true,  "data": {    "id": "d8976b45-e3e6-4115-b723-57f9b95fc76b",    "tracked_item": {      "track_number": "MSCU1234567",      "track_number_type": "container",      "company_id": 60,      "data": {        "success": true,        "data": {          "summary": {            "origin": {              "location": 0,              "terminal": 0,              "date": "2023-03-25T00:00:00"            },            "pol": {              "location": 0,              "terminal": 0,              "date": "2023-03-25T00:00:00"            },            "pod": {              "location": 0,              "terminal": 0,              "date": "2023-03-25T00:00:00",              "eta_shift_days": null            },            "destination": {              "location": 0,              "terminal": 0,              "date": "2023-03-25T00:00:00"            },            "company": {              "name": "MSC",              "full_name": "Mediterranean Shipping Company",              "url": "https://www.msc.com/",              "scacs": [                "MEDU",                "MSCU"              ]            }          },          "locations": [            {              "id": 0,              "name": "Gothenburg",              "state": "Halland",              "terminal": "Port of Gothenburg",              "country": "Sweden",              "lat": 57.70887,              "lng": 11.97456            }          ],          "terminals": [            {              "id": 0,              "name": "Port of Gothenburg"            }          ],          "containers": [            {              "number": "TCKU7858986",              "type": "40' High Cube Dry",              "events": [                {                  "location": 0,                  "terminal": 0,                  "status": "On Board",                  "status_code": "CLL",                  "date": "2023-10-25T11:11:11",                  "actual": false,                  "vessel": "Evergreen Teresa",                  "voyage": "V. 284"                }              ],              "iso_code": "45GP"            }          ],          "route_info": {            "route": [              {                "path": [                  [                    48.698306,                    14.042056                  ],                  [                    45.039944,                    12.751222                  ],                  [                    43.463278,                    12.6745                  ],                  [                    32.566855,                    29.927166                  ],                  [                    32.284501,                    31.232806                  ]                ],                "type": "sea"              }            ],            "current_position": [              32.284501,              31.232806            ],            "last_updated": "2023-10-25T11:11:11",            "course": 247.34          },          "shipment_status": "IN_TRANSIT",          "references": {            "booking_numbers": [              "2315887441"            ],            "bill_of_lading_numbers": [              "MEDUH1234567"            ]          }        },        "status": "OK",        "status_description": "Information found"      },      "updated_at": "2026-04-08T12:08:55.307Z",      "checked_at": "2026-04-08T12:08:55.307Z",      "company_name": "Mediterranean Shipping Company"    },    "start_date": "2026-04-08T12:26:56.940Z",    "end_date": "2026-04-12T09:18:49.395Z",    "status": "ACTIVE",    "note": "Order 4521",    "created_at": "2026-04-08T12:08:54.569Z",    "track_number": "MSCU1234567"  },  "status": "OK",  "status_description": "Information found"}