curl --location 'https://us-prod.notte.cc/functions/79546bf0-fb01-4c3d-98ac-06ea9ae1ca29/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "79546bf0-fb01-4c3d-98ac-06ea9ae1ca29",
"variables": {
"tracking_number": "7777777770",
"recipient_postal_code": "",
"language": "en",
"country_code": "US",
"max_events": 50
}
}'
{
"message": "<string>",
"outcome": "found",
"shipments": [
{
"events": [
{
"remark": "<string>",
"location": {
"city": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"service_area": "<string>"
},
"timestamp": "<string>",
"next_steps": "<string>",
"description": "<string>",
"status_code": "<string>"
}
],
"origin": {
"city": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"service_area": "<string>"
},
"service": "<string>",
"delivered": true,
"shipped_at": "<string>",
"destination": {
"city": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"service_area": "<string>"
},
"shipped_date": "<string>",
"latest_status": {
"remark": "<string>",
"location": {
"city": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"service_area": "<string>"
},
"timestamp": "<string>",
"next_steps": "<string>",
"description": "<string>",
"status_code": "<string>"
},
"duration_end_at": "<string>",
"tracking_number": "<string>",
"duration_seconds": 0,
"events_truncated": true,
"estimated_delivery": {
"remark": "<string>",
"timestamp": "<string>",
"window_end": "<string>",
"window_start": "<string>"
},
"duration_end_reason": "delivered"
}
],
"checked_at": "<string>",
"tracking_url": "<string>",
"tracking_number": "<string>",
"has_more_shipments": true
}