Overview
The Work Orders API allows you to create, read, update, and manage work orders programmatically. This is useful for integrating Fentu FSM with other systems or building custom applications.Endpoints
List Work Orders
Retrieve a list of work orders.| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
per_page | integer | Results per page (default: 25, max: 100) |
status | string | Filter by status |
customer_id | string | Filter by customer |
technician_id | string | Filter by assigned technician |
from_date | date | Start date filter (YYYY-MM-DD) |
to_date | date | End date filter (YYYY-MM-DD) |
Get Work Order
Retrieve a single work order by ID.Create Work Order
Create a new work order.Update Work Order
Update an existing work order.Delete Work Order
Delete a work order (moves to trash).Work Order Statuses
| Status | Description |
|---|---|
draft | Not yet submitted |
open | Submitted, awaiting assignment |
assigned | Assigned to technician |
in_progress | Work has started |
on_hold | Temporarily paused |
completed | Work finished |
cancelled | Work order cancelled |
Error Responses
| Code | Description |
|---|---|
400 | Bad request - invalid parameters |
401 | Unauthorized - invalid token |
403 | Forbidden - insufficient permissions |
404 | Not found - work order doesn’t exist |
422 | Validation error |
Related Documentation
Tasks API
Task endpoints
Customers API
Customer endpoints
Authentication
API authentication
Work Orders
Work order user guide
