Download OpenAPI specification:Download
This interface should be implemented by Service Partners (aka SP, aka Work Suppliers) who want to receive notifications from the TFF Service Partner Gateway (SPG).
In order to start receiving SPG notifications, Service Partner must subscribe to the WorkOrder notifications by selecting the following Subscription Event type:
Subscription Event: SPWorkOrderNotification
This is a top-level event type. Every notification of the SPWorkOrderNotification event type carries a payload. This payload encapsulates a Work Request Notification emitted by SPG. This notification in turn can be 1 of several supported types:
Service Partner should implement a single POST /notification
endpoint which accepts notifications of the SPWorkOrderNotification events with a payload of any of the types listed above.
Service Partner must implement this method to receieve SPWorkOrderNotification events from TFF. The payload of this event will be one of the several supported types:
x-api-key | string Used to pass a shared secret with each API request |
X-Transaction-Id | string Represents the unique message identifier associated with the transaction (when available). |
eventId required | string A numeric value assigned to the event. This is a monotonously increasing number over all |
eventTimestamp required | 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: "SPWorkOrderNotification" The event type for this notification. |
required | object (notification.message.CreateWorkOrderNotify) The summary of CreateWorkOrderNotify notification |
required | object (notification.payload.CreateWorkOrderNotify) The full content of the CreateWorkOrderNotify notification |
{- "eventId": "string",
- "eventTimestamp": "string",
- "eventType": "SPWorkOrderNotification",
- "message": {
- "notificationType": "CreateWorkOrderNotify",
- "triggeredBy": "string",
- "wonum": "string",
- "workorderType": "SUB",
- "workType": "GRNFLD"
}, - "payload": {
- "notificationType": "CreateWorkOrderNotify",
- "triggeredBy": "string",
- "workorder": {
- "wonum": "string",
- "workorderType": "SUB",
- "workType": "GRNFLD",
- "allocation": {
- "workSupplierName": "string"
}, - "status": {
- "state": "Unallocated",
- "subState": "Proposed",
- "since": "string"
}, - "assets": [
- {
- "assetnum": "string",
- "assettag": "string",
- "assettype": "string",
- "description": "string",
- "assetCharacteristics": [
- {
- "key": "string",
- "value": "string"
}
], - "assetConfigurations": [
- {
- "type": "string",
- "assetConfigurationCharacteristics": [
- {
- "key": "string",
- "value": "string"
}
]
}
]
}
], - "source": {
- "type": "Maintenance",
- "id": "string",
- "priority": "Urgent",
- "summary": "string",
- "contacts": [
- {
- "name": "string",
- "role": "Lead",
- "email": "string",
- "contactNumber": "string",
- "mobileNumber": "string",
- "company": "string",
- "reference": "string",
- "onBehalfOf": "string"
}
], - "details": { }
}, - "tasks": [
- {
- "taskid": "string",
- "taskseq": "string",
- "taskType": "HANDHOLE",
- "taskCharacteristics": [
- "FC01",
- "BI01",
- "JP01"
], - "summary": "string",
- "status": {
- "category": "Open",
- "state": "Open",
- "note": "string",
- "since": "string",
- "workSupplierAllowedToCancel": false
}, - "schedule": {
- "earliestStart": "string",
- "latestEnd": "string",
- "crRequired": true
}, - "site": {
- "location": {
- "mgmtArea": "string",
- "coordinates": [
- {
- "latitude": "string",
- "longitude": "string",
- "projection": "string"
}
], - "termsOfUseHref": "string",
- "address": {
- "levelNumber": "string",
- "levelType": "string",
- "unit": "string",
- "unitType": "string",
- "buildingName": "string",
- "streetNumber": "string",
- "streetName": "string",
- "streetAddressFull": "string",
- "addressLine2": "string",
- "suburb": "string",
- "townCity": "string",
- "postCode": "string",
- "referencePoint": "string",
- "directions": "string"
}, - "legacyLocationId": "string",
- "placeId": "string"
}
}, - "supplementaryReferences": [
- {
- "type": "ExternalId",
- "source": "string",
- "supplementaryId": "string"
}
], - "resultsUrl": "string",
- "fileAttachments": [
- {
- "fileName": "string",
- "fileAttachmentUri": "string",
- "owner": "string",
- "mediaType": "pdf",
- "fileSize": 0,
- "note": "string"
}
]
}
], - "fileAttachments": [
- {
- "fileName": "string",
- "fileAttachmentUri": "string",
- "owner": "string",
- "mediaType": "pdf",
- "fileSize": 0,
- "note": "string"
}
], - "supplementaryReferences": [
- {
- "type": "ExternalId",
- "source": "string",
- "supplementaryId": "string"
}
], - "additionalInfos": [
- {
- "interactionId": null,
- "interactionType": "InformationRequested",
- "information": "string",
- "summary": "string",
- "createdBy": "string",
- "interactionDateTime": "string"
}
]
}
}
}