/
GetStatusHistory RESTified API

GetStatusHistory RESTified API

5.4.0

A pass-through API to Dispatch (when configured) which allows the Dispatch's "Get Status History" API to be called.    

On this page:

Related pages:

Resource URL Summary

Pass Through Call to Dispatch's "Get Status History" API

PUT /up/v5/rest/dispatch/getStatusHistory   

HTTP Headers

This API uses the standard ServiceBroker HTTP Headers.


API Specifics

Pass Through Call to Dispatch's "Get Status History" API

This RESTified API will perform a pass-through call to the Dispatch sub-system's "Get Status History" API (when configured).

URL

PUT /up/v5/rest/dispatch/getStatusHistory

HTTP Request Body

This request requires a JSON object supplied in the HTTP request body, which defines the parameters that will be passed through to the ServiceBroker "Get Status History" APi.

GetStatusHistory Object Format

{
	"Id": "",
	"CallStatus": "",
	"SecStatus": "",
	"StartDate": "",
	"StartTime": "",
	"EndDate": "",
	"EndTime": ""
}

GetStatusHistory Object Properties

PropertyTypeRequired?DescriptionDispatch Field Mapping
IdstringNoPass through parameter to the Dispatch "Get Status History" API. CallNo
CallStatusstringNoPass through parameter to the Dispatch "Get Status History" API.CallStatus
SecStatusstringNoPass through parameter to the Dispatch "Get Status History" API.SecStatus
StartDatestringNo

Pass through parameter to the Dispatch "Get Status History" API.

StartDate
StartTimestringNo

Pass through parameter to the Dispatch "Get Status History" API.

StartTime
EndDatestringNo

Pass through parameter to the Dispatch "Get Status History" API.

EndDate
EndTimestringNo

Pass through parameter to the Dispatch "Get Status History" API.

EndTime

HTTP Response

Success

On success, a JSON-formatted version of the Dispatch "Get Status History" API response will be returned.

GetStatusHistory Response Object Format

{
    "AckMsg": "",
    "WorkItemCount": "4",
    "WorkItems": [
        {
            "MFGID": "9999",
            "Id": "ka.2019-8-7.100263",
            "WorkStatus": "COMPLETED",
            "WorkSubStatus": "COMPLETED",
            "SPSvcrAcct": "FSSTEST",
            "UpdatedDate": "2019-11-04T11:47:00.000Z",
            "CompletedDate": "2019-11-04T00:00:00.000Z",
            "Payment": [
                {
                    "POAmount": "0"
                }
            ],
            "Booking": {
                "ServiceOrg": "FSSTEST",
                "SchdStart": "2019-08-09T12:00:00.000Z",
                "SchdEnd": "2019-08-09T23:00:00.000Z"
            }
        },
		// ...
    ]
}

GetStatusHistory Response Object Properties

PropertyTypeDescription
AckMsgstringDescription of the response success.
WorkItemCountstringThe number of Dispatch Servicer objects in the WorkItems array.
WorkItemsarrayAn array of objects, each representing the status for a Dispatch Work Item.

MFGIDstringThe Dispatch Work Item MfgSvcrAcct value.

IdstringThe Dispatch Work Item CallNo value.

WorkStatusstringThe Dispatch Work Item work status.

WorkSubStatusstringThe Dispatch Work Item work sub-status.

SPSvcrAcctstringThe Dispatch Work Item ServicePower account number.

UpdatedDatestringThe Dispatch Work Item updated date.

CompletedDatestringThe Dispatch Work Item completed date.

PaymentarrayAn array containing details of the Work Item payment information.


POAmountstringThe Dispatch PO amount value.

BookingobjectAn object containing details of the Work Item booking.


ServiceOrgstringThe Dispatch Work Item service organization.


SchdStartstringThe Dispatch Work Item scheduled start date/time.


SchdEndstringThe Dispatch Work Item scheduled end date/time.

Error

On error, a JSON-formatted version of the Dispatch "Get Status History" API response will be returned.

{
    "Success": false,
    "Code": 9,
    "Payload": {
        "returnCode": {
            "type": "Error",
            "message": "Dispatch Error Code"
        }
    }   
}  

Return Codes

In addition to the Standard Return Codes, and the Dispatch Error codes, individual API calls made have unique codes found on their individual pages.

Related content

GetStatusEnquiry RESTified API
GetStatusEnquiry RESTified API
More like this
UpdateProblemInfo RESTified API
UpdateProblemInfo RESTified API
Read with this
UpdateCallStatusInfo RESTified API
UpdateCallStatusInfo RESTified API
More like this
UpdateCallScheduleInfo RESTified API
UpdateCallScheduleInfo RESTified API
Read with this
GetServicerNotes RESTified API
GetServicerNotes RESTified API
More like this
GetShipmentInfo RESTified API
GetShipmentInfo RESTified API
More like this