curl --request PATCH \
--url https://app.unitedlogistics.com.do/api/v1/trips/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"driver_external_id": 4421,
"driving_score": 87,
"eco_score": 72.4
}
'{
"data": {
"id": 482219,
"external_id": 9876543,
"provider": "karma",
"org_id": "d87f7281-ea19-45cd-b6fd-d8eb9e310da1",
"vehicle_external_id": 12345,
"driver_external_id": 4421,
"device_id": "GPS-DEV-001",
"vehicle_number": "UL-021",
"trip_active": 0,
"start_message_id": 91827361,
"start_date": "2026-05-26T08:32:00.000Z",
"start_latitude": 18.4861,
"start_longitude": -69.9312,
"start_odometer_km": 124530.4,
"stop_message_id": 91827881,
"stop_date": "2026-05-26T10:14:00.000Z",
"stop_latitude": 18.6792,
"stop_longitude": -68.4014,
"stop_odometer_km": 124612.8,
"duration_s": 6120,
"distance_km": 82.4,
"duration_night_s": 0,
"distance_night_km": 0,
"max_speed_kph": 104.2,
"driving_score": 87,
"eco_score": 72.4,
"fetch_timestamp": "2026-05-26T10:14:31.221Z",
"created_at": "2026-05-26T10:14:31.221Z",
"updated_at": "2026-05-26T10:14:31.221Z"
}
}{
"error": {
"code": "bad_request",
"message": "Invalid trip payload.",
"details": {
"fieldErrors": {
"start_date": [
"start_date must be ISO 8601 datetime"
]
}
}
}
}{
"error": {
"code": "unauthorized",
"message": "API key missing or invalid."
}
}{
"error": {
"code": "forbidden",
"message": "No tienes permisos para modificar viajes."
}
}{
"error": {
"code": "not_found",
"message": "Viaje no encontrado."
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded."
}
}Trips
Update a trip
Partially updates a trip. Send only the fields you want to change. external_id, vehicle_external_id, provider and org_id cannot be changed once set.
PATCH
/
trips
/
{id}
curl --request PATCH \
--url https://app.unitedlogistics.com.do/api/v1/trips/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"driver_external_id": 4421,
"driving_score": 87,
"eco_score": 72.4
}
'{
"data": {
"id": 482219,
"external_id": 9876543,
"provider": "karma",
"org_id": "d87f7281-ea19-45cd-b6fd-d8eb9e310da1",
"vehicle_external_id": 12345,
"driver_external_id": 4421,
"device_id": "GPS-DEV-001",
"vehicle_number": "UL-021",
"trip_active": 0,
"start_message_id": 91827361,
"start_date": "2026-05-26T08:32:00.000Z",
"start_latitude": 18.4861,
"start_longitude": -69.9312,
"start_odometer_km": 124530.4,
"stop_message_id": 91827881,
"stop_date": "2026-05-26T10:14:00.000Z",
"stop_latitude": 18.6792,
"stop_longitude": -68.4014,
"stop_odometer_km": 124612.8,
"duration_s": 6120,
"distance_km": 82.4,
"duration_night_s": 0,
"distance_night_km": 0,
"max_speed_kph": 104.2,
"driving_score": 87,
"eco_score": 72.4,
"fetch_timestamp": "2026-05-26T10:14:31.221Z",
"created_at": "2026-05-26T10:14:31.221Z",
"updated_at": "2026-05-26T10:14:31.221Z"
}
}{
"error": {
"code": "bad_request",
"message": "Invalid trip payload.",
"details": {
"fieldErrors": {
"start_date": [
"start_date must be ISO 8601 datetime"
]
}
}
}
}{
"error": {
"code": "unauthorized",
"message": "API key missing or invalid."
}
}{
"error": {
"code": "forbidden",
"message": "No tienes permisos para modificar viajes."
}
}{
"error": {
"code": "not_found",
"message": "Viaje no encontrado."
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded."
}
}Authorizations
Authorization: Bearer ulk__. Cree la clave en Configuración → API.
Path Parameters
Numeric trip id.
Pattern:
^\d+$Body
application/json
Maximum string length:
255Maximum string length:
255Required range:
-90 <= x <= 90Required range:
-180 <= x <= 180Required range:
x >= 0Required range:
-90 <= x <= 90Required range:
-180 <= x <= 180Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
0 <= x <= 100Required range:
0 <= x <= 100Response
OK
Show child attributes
Show child attributes
