Download OpenAPI specification:Download
The Service Partner Gateway (SPG) is used to exchange jobs and job updates between TFF and Service Partners.
The notifications of new jobs and tasks are sent from SPG via Notifications Gateway (NGW). Service Partners must implement a Webhook API if they want to receive SPG Notifications.
The Workorders API is invoked by Service Partners to provide updates and details for workorders and tasks to SPG.
Updates must be send as events, which include the workorder(s) and task(s) being updated with all necessary details. The main method to submit an event to:
POST /events
This is a generic method which accepts events on any type. The Workorders API also provides the alternative convenience methods for each event type. These convenience methods are simply wrapping a work order payload into an event-compliant object and forward it to the /event
endpoint
In reponse to a CreateWorkOrderEvent sent by TFF, Work Supplier must accept or reject the work order. To accept the work order, send 2 events:
To reject the work order:
Once the Task is scheduled by the Work Supplier:
This event will automatically update the TFF Work Order status to SCHED
Use the UpdateTaskStatusEvent to send updates on the progress:
Use the following methods to send additional information about the Work Order/Tasks (e.g. worklog entry) or attach files:
To indicate physical completion, update task status and send the actuals
After internal review, TFF will respond with a task status update event. Task will be closed with a "Complete" state, or closed as "Incomplete" if redo is required.
To put task on hold, use a dedicated event and provide a reason:
The work can be resumed by sending one of the following events:
Tasks which are marked with workSupplierAllowedToCancel:true
and are currently on hold can be cancelled by the Work Supplier by sending a CloseTaskEvent.
Send an event to the Service Partner Gateway. This is a generic method for sending events of any supported type.
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
eventId | string When available, consumer can provide an event id linked to this event in their system |
eventDateTime | string (common.datetime.cdatetime) (1|2\d{3})-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[0... LFC API Standard Date Time format The date and time in RFC3339 with 'Z' as tzd, microseconds optional, valid formats are ["yyyy-MM-dd'T'HH:mm:ssZ", "yyyy-MM-dd'T'HH:mm:ss.SSSZ" ] |
eventType required | string Value: "AcceptWorkOrderEvent" Event type |
object (event.workorder.AcceptWorkOrderEvent) Event sent by Service Partner to TFF to accept the Work Order assigned to them. |
{- "eventId": "string",
- "eventDateTime": "string",
- "eventType": "AcceptWorkOrderEvent",
- "workorder": {
- "wonum": "string",
- "allocation": {
- "supplierAccepted": true,
- "supplierOrderId": "string"
}
}
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original work order id assigned to the Work Order by TFF. |
required | object The allocation details for an Accept Work Order. |
{- "wonum": "string",
- "allocation": {
- "supplierAccepted": true,
- "supplierOrderId": "string"
}
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original work order id assigned to the Work Order by TFF. |
required | object The allocation details for a Reject Work Order. |
{- "wonum": "string",
- "allocation": {
- "supplierAccepted": false,
- "rejectNote": "string",
- "rejectReason": "IncorrectWorkSupplier"
}
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original workorder Id assigned by TFF to the Work Order. |
required | Array of objects (event.workorder.task.UpdateTaskStatusEvent) A list of tasks associated with the Work Order. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "string",
- "status": {
- "category": "Open",
- "state": null,
- "note": "string",
- "workSupplierDate": "string",
- "geoTag": {
- "since": "string",
- "latitude": "string",
- "longitude": "string",
- "projection": "string"
}
}
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original workorder id assigned to the work order by TFF |
required | Array of objects (event.workorder.task.PutOnHoldTaskEvent) A list of tasks associated with the WO. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "string",
- "status": {
- "category": "On-Hold",
- "state": "On-Hold",
- "note": "string",
- "reason": "ALTCOR",
- "workSupplierDate": "string",
- "geoTag": {
- "since": "string",
- "latitude": "string",
- "longitude": "string",
- "projection": "string"
}
}
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original workorder id assigned to the work order by TFF |
required | Array of objects (event.workorder.task.CloseTaskEvent) A list of tasks associated with the WO. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "string",
- "status": {
- "category": "Closed",
- "state": "Cancelled",
- "note": "string",
- "reason": "ABNDON",
- "workSupplierDate": "string"
}
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original work order id assigned to the Work Order by TFF. |
required | Array of objects (event.workorder.task.UpdateTaskFileAttachmentsEvent) A list of changed tasks. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "string",
- "fileAttachments": [
- {
- "fileName": "string",
- "fileAttachmentUri": "string",
- "owner": "string",
- "mediaType": "pdf",
- "fileSize": 0,
- "note": "string"
}
]
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original work order id assigned to the Work Order by TFF. |
required | Array of objects (event.workorder.task.UpdateTaskAdditionalInfosEvent) A list of changed tasks. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "string",
- "additionalInfos": [
- {
- "interactionId": null,
- "interactionType": "InformationRequested",
- "information": "string",
- "createdBy": "string",
- "interactionDateTime": "string"
}
]
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
Send a new schedule for a single Task, or for every Task on the same Work Order.
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original Id assigned by TFF to the Work Order. |
required | Array of event.workorder.task.UpdateTaskScheduleEvent (object) or event.workorder.task.UpdateTaskAppointment (object) A list of tasks associated with the Work Order. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "string",
- "schedule": {
- "scheduledStart": "string",
- "scheduledEnd": "string",
- "crNumber": "string",
- "note": "string"
}
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
Represents an Update Work Order Task Outcomes Event
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original Id assigned by TFF to the WO |
required | Array of objects (event.workorder.task.UpdateTaskOutcomesEvent) A list of tasks associated with the WO. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "string",
- "outcomes": [
- {
- "type": "matusetrans",
- "key": "CHARGE|1013",
- "value": "string"
}
]
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
Represents an Update Work Order Additional Infos Event
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original work order id assigned to the Work Order by TFF. |
required | Array of objects (common.workorder.additionalInfo) A list of additionalInfo records to be added to the Work Order. |
{- "wonum": "string",
- "additionalInfos": [
- {
- "interactionId": null,
- "interactionType": "InformationRequested",
- "information": "string",
- "createdBy": "string",
- "interactionDateTime": "string"
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}
Represents an UpdateWorkOrderFileAttachments Event
X-Transaction-Id | string Represents the unique message identifier associated with the Event. |
wonum required | string Original work order id assigned to the Work Order by TFF. |
required | Array of objects (common.fileAttachment) A list of file attachments to be added to the Work Order. |
{- "wonum": "string",
- "fileAttachments": [
- {
- "fileName": "string",
- "fileAttachmentUri": "string",
- "owner": "string",
- "mediaType": "pdf",
- "fileSize": 0,
- "note": "string"
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}