Skip to content

UPS - Track Shipment

This module queries the tracking status of a shipment in UPS using the tracking number. It makes a GET request to the /api/track/v1/details/{tracking_number} endpoint. It processes the response to extract the current status (description, type, and code), estimated delivery date, service used, weight, and the complete event history with date, time, description, status type, code, city, state, and country.

ParameterTypeRequiredDescription
credentials_idcredentialsYesUPS credential (provider: ups)
tracking_numbertextYesUPS shipment tracking number

A ups type credential is required with the following fields:

  • client_id: UPS API Client ID
  • client_secret: UPS API Client Secret
{
"success": true,
"tracking_number": "1Z999AA10123456784",
"status": "In Transit",
"status_type": "I",
"status_code": "IT",
"estimated_delivery": "20260325",
"service": "UPS Standard",
"weight": "2.5",
"events": [
{
"date": "20260323",
"time": "103000",
"event": "Pickup Scan",
"status_type": "I",
"status_code": "PU",
"city": "Madrid",
"state": "MD",
"country": "ES"
}
],
"message": "Estado: In Transit"
}
{
"credentials_id": "mi_credencial_ups",
"tracking_number": "1Z999AA10123456784"
}
  • The first shipment and first package from the response are used
  • The last event (activity[0]) is used as the current status
  • Dates are returned in YYYYMMDD format and times in HHMMSS format