The service uses JSON-formatted request and response messages to exchange data. Please note that the order of the JSON elements in request messages should match the examples below, though optional elements may be omitted.
Authentication Method
This service method is used to generate an authentication token for use with the other service methods. The POST request must include a Content-Type header of “application/json”.
POST URL:
https://[WebTMAdomain]/uiservice/webservice/RequestInterface.svc/AuthenticateJSON
REQUEST FORMAT:
{
"Username":"dev",
"Password":"dev",
"Client":"abc corporation"
}
RESPONSE Format:
{
<Success>true</Success>
<Message>User Authenticated.</Message>
<Token> fEKG8PMWoIWgeJ27Oi4xUpq6dzffxOvdPdJVRwqKiC%2b41S5gnuf5nHS1i%2fY5qL%2bG9JcZHsufRz7BZzBRcYTNNgrpXUeRaW%2bN</Token>
<ExpDate>2020-11-10T17:55:14.4457027Z</ExpDate>
}
UPI Equipment Import
This service method imports equipment records into WebTMA. The POST request must include a Content-Type header of “application/json” and a TMAAuth HTTP header with a valid authentication token from the AuthenticateJSON method.
POST URL
https://www.webtma.com/uiservice/webservice/RequestInterface.svc/UPIEquipmentImport
REQUEST FORMAT
{"UISetupCode":"WSV",
"EquipmentList":[{
"TagNumber":"FM-01",
"Description":"Test Equipment ",
"Active":true,
"TypeCode":"GPP",
"TypeDescription":"XXXX",
"SubTypeCode":"XXXX",
"SubTypeDescription":"XXXX",
"FacilityCode":"MC",
"BuildingCode":"BULD1",
"BuildingName":"XXXX",
"FacilityName":"XXX",
"FloorID":"XXX",
"LocationID":"XXX",
"Make":"XXX",
"SerialNumber":"123",
"ModelNumber":"XXX",
"WarrantyDate":"2021-05-10",
"InventoryConditionCode":"XXX",
"AlternativeTag":"XXX",
"DepartmentCode":"XXX",
"DepartmentName":"XXXX",
"PurchaseDate":null,
"LifeExpectancy":20,
"ManufacturerCode":"XXX",
"ManufacturerName":"XXX",
"StatusDescription":"XXX",
"RepairCenterCode":"PP",
"ServiceVendorPhone":"918-858-6600",
"AccountCode":"XXXX",
"UdfValues":null}
]}
Note: WarrantyDate and PurchaseDate should follow the format of “yyyy-MM-dd”
RESPONSE FORMAT
{
"Success": true,
"ErrorMessage": ""
}
Want to Know More?
Visit the WebTMA Help Page