PUT [ work-order ]
Production Endpoint:
Test Endpoint: https://test.complyflow.com.au/app/public/index.php/api/work-order
Overview
This endpoint updates Work Order data in the ComplyFlow system.
Authentication instructions
Refer to the Authentication method for Authentication Methods (for Login and Logout).
  Permissions Required
The user should possess the permissions below:
API User
User is Staff
Users have Access to View and Edit Supplier Permission
Please also refer to the Permissions Overview guide.
Body properties/Payload
FIELD  | TYPE  | DESCRIPTION  | REQUIRED  | 
  | 
  | ComplyFlow Work Order ID  | 
  | 
  | 
  | Origin of a Work Order  | 
  | 
  | 
  | Number of a Work Order  | 
  | 
  | 
  | Reference of a Work Order  | 
  | 
  | 
  | Work Order Type  | 
  | 
  | 
  | Work Order Description  | 
  | 
  | 
  | Work Order Priority Only 4 options: 
  | 
  | 
  | 
  | Work Order Site assigned (Site Code)  | 
  | 
  | 
  | Site Building name  | 
  | 
  | 
  | Site Tenancy  | 
  | 
  | 
  | Site Level  | 
  | 
  | 
  | Contact Name  | 
  | 
  | 
  | Contact Phone  | 
  | 
  | 
  | Contact Email  | 
  | 
  | 
  | Supplier’s ABN  | 
  | 
  | 
  | Supplier’s ID  | 
  | 
  | 
  | Supplier’s Name  | 
  | 
  | 
  | Work Order Status only 4 options: 
  | 
  | 
  | 
  | Work Order expected start date  | 
  | 
  | 
  | Work Order actual start date  | 
  | 
  | 
  | Work Order expected completion date  | 
  | 
  | 
  | Work Order actual completion date  | 
  | 
  | 
  | Invoice Number  | 
  | 
Request Example
curl --location 'https://test.complyflow.com.au//app/public/index.php/api/work-order' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--header 'Cookie: [...]' \
--data-raw '{
"CFWOID": 257,
"WOOrigin": "Postman",
"WONumber": "Postman1",
"WorkRef": "Postman2",
"Type": "Maintenance",
"Description": "Brief description of the work order",
"Priority": "Low",
"Site": "a",
"BuildingName": "Main Building",
"Tenancy": "Base Building",
"Level": "Ground Level",
"ContactName": "John Doe",
"ContactPhone": "1234567890",
"ContactEmail": "john.doe@example.com",
"SupplierABN": "11 610 619 952",
"ThirdPartyContractorID": "Contractor123",
"ThirdPartyContractorName": "ABC Contractors",
"Status": "0",
"ExpectedStartDate": "2024-01-01",
"StartDate": "2024-06-01",
"ExpectedCompletionDate": "2025-02-01",
"CompletionDate": "2025-01-01",
"InvoiceNumber": "INV-12345"
}'
Response Example
{
    "token": "",
    "data": {
        "StatusCode": 200,
        "Message": "Work Order updated successfully."
        "ContractorMatch": true,
        "SiteMatch": true
    }
}