curl --request POST \
--url https://app.unitedlogistics.com.do/api/v1/trips/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"external_id": 9876543,
"vehicle_external_id": 12345,
"start_date": "2026-05-26T08:32:00.000Z",
"stop_date": "2026-05-26T10:14:00.000Z",
"distance_km": 82.4,
"max_speed_kph": 104.2
},
{
"external_id": 9876544,
"vehicle_external_id": 12345,
"start_date": "2026-05-26T12:05:00.000Z",
"stop_date": "2026-05-26T12:48:00.000Z",
"distance_km": 31.7
}
]
'{
"inserted": 18,
"updated": 2,
"ids": [
482219,
482220,
482221
]
}{
"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": "El vehículo especificado no existe en esta organización."
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded."
}
}Trips
Bulk import trips
Imports a single trip or an array of up to 1000 trips for your organization. Idempotent on (external_id, org_id): trips that already exist are updated, the rest are inserted — so you can safely re-send the same batch. Every vehicle_external_id must belong to the API key’s org. Duplicate external_ids within one request are collapsed (last one wins).
POST
/
trips
/
bulk
curl --request POST \
--url https://app.unitedlogistics.com.do/api/v1/trips/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"external_id": 9876543,
"vehicle_external_id": 12345,
"start_date": "2026-05-26T08:32:00.000Z",
"stop_date": "2026-05-26T10:14:00.000Z",
"distance_km": 82.4,
"max_speed_kph": 104.2
},
{
"external_id": 9876544,
"vehicle_external_id": 12345,
"start_date": "2026-05-26T12:05:00.000Z",
"stop_date": "2026-05-26T12:48:00.000Z",
"distance_km": 31.7
}
]
'{
"inserted": 18,
"updated": 2,
"ids": [
482219,
482220,
482221
]
}{
"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": "El vehículo especificado no existe en esta organización."
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded."
}
}Authorizations
Body
application/json
- object
- object[]
