Download OpenAPI specification:Download
The Service Partner Gateway (SPG) is used to exchange jobs and job updates between TFF and Service Partners.
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
The work can be resumed by sending the following event:
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: "UpdateTaskScheduleEvent" Event type |
required | object (event.workorder.UpdateTaskScheduleEvent) Represents an Update Task Schedule Event |
{- "eventId": "string",
- "eventDateTime": "string",
- "eventType": "UpdateTaskScheduleEvent",
- "workorder": {
- "wonum": "string",
- "tasks": [
- {
- "taskid": "RFS",
- "schedule": {
- "appointmentTime": "2023-04-03T08:00:00Z",
- "note": "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.UpdateTaskAppointment (object) A list of tasks associated with the Work Order. |
{- "wonum": "string",
- "tasks": [
- {
- "taskid": "RFS",
- "schedule": {
- "appointmentTime": "2023-04-03T08:00:00Z",
- "note": "string"
}
}
]
}
{- "message": "string",
- "code": "string",
- "cause": "string",
- "details": [
- {
- "detailedMessage": "string",
- "detailedCode": "string",
- "instance": "string",
- "keyword": "string",
- "message": "string",
- "missing": [
- {
- "attribute": "string"
}
]
}
]
}