moovexDocs

Get Assignment Result

Retrieve assignment results

GET/scheduling/result/{productionId}

Retrieve the results from an async assignment request. Poll this endpoint after calling Assign Drivers Async until the status is completed or failed.

Path Parameters

ParameterTypeRequiredDescription
productionIdstringYesThe production ID returned from Assign Drivers Async

Response Status Values

StatusDescription
processingAssignment is in progress
completedAssignment finished successfully
failedAssignment encountered an error
cancelledAssignment was cancelled

Example Response (Completed)

{
  "status": "completed",
  "assignments": [
    {
      "tripId": "trip_abc123",
      "vehicleId": "car_456",
      "driverId": "driver_789"
    },
    {
      "tripId": "trip_def456",
      "vehicleId": "car_789",
      "driverId": "driver_012"
    }
  ],
  "unassigned": ["trip_ghi789"]
}

Response Fields

FieldTypeDescription
statusstringProcessing status
assignmentsAssignment[]Successful trip-vehicle assignments
assignments[].tripIdstringAssigned trip ID
assignments[].vehicleIdstringAssigned vehicle ID
assignments[].driverIdstringAssigned driver ID
unassignedstring[]Trip IDs that could not be assigned

On this page