GET 5 min read

List Service Jobs

GET /api/v1/service-jobs

Retrieve all service jobs across your companies

List Service Jobs

Retrieve a paginated list of all service jobs from companies you have access to.

Request

GET /api/v1/service-jobs

Query Parameters

Parameter Type Description
company_id integer Filter by company ID
status string Filter by status (pending, in_progress, completed, cancelled)
per_page integer Number of results per page (default: 15)
page integer Page number

Response

{
    "data": [
        {
            "id": 1,
            "job_number": "JOB-2024-0001",
            "company_id": 1,
            "customer_name": "Juan Dela Cruz",
            "customer_email": "[email protected]",
            "customer_phone": "+63 917 123 4567",
            "vehicle_make": "Toyota",
            "vehicle_model": "Vios",
            "vehicle_year": 2022,
            "vehicle_plate": "ABC 1234",
            "status": "in_progress",
            "priority": "normal",
            "estimated_completion": "2024-01-20T17:00:00Z",
            "notes": "Regular maintenance",
            "created_at": "2024-01-15T08:30:00Z",
            "updated_at": "2024-01-15T10:00:00Z"
        }
    ],
    "links": { ... },
    "meta": { ... }
}

Example

curl -X GET "https://hydra.marketdragon.ph/api/v1/service-jobs?status=in_progress" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Back to Service Jobs
Was this helpful?