The following documentation assumes you know the existing rules for UPI. This is merely a new source / destination for the data. Otherwise all existing UPI rules apply.
In each call to either an Import or Export method, the correct Universal Interface Template Code for the corresponding transaction is required ("UISetupCode").
Authenticate JSON
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://www.webtma.com/UIService/webservice/RequestInterface.svc/AuthenticateJson
REQUEST FORMAT:
{
"Username" : "user name",
"Password" : "password",
"Client" : "login client name"
}
RESPONSE Format:
{
"Success" : true,
"Message" : "User Authenticated.",
"Token" : "KU%2b7j2Lno92o%2bJ3J7IgvBKlnSzMpAuHh2NAqFWgnYytcyknP7ou5OP3O%2bxOVGEOV%2fkaE%2fqFvIM9cdXecfPeeu1%2broPnF",
"ExpDate" : "\/Date(1542814039490)\/"
Receivings Export
This service method is used to export Purchase Order Receivings. The POST request must include a Content-Type header of “application/json” and a TMAAuth HTTP header with a valid authentication token from the Authenticate method.
POST URL:
https://www.webtma.com/UIService/webserviceRequestInterface.svc/UPIReceivingsExport
REQUEST FORMAT:
{
"UISetupCode" : "WSPR"
}
RESPONSE FORMAT:
{
"ErrorCode" : null,
"ErrorMessage" : null,
"ReceivingsList":[
{
"BatchDate" : "11\/10\/2022 12:00:00 AM",
"BatchNumber" : "10112",
"DepartmentName" : "ADMINISTRATION",
"ForeignDistribNumber" : null,
"ForeignLineNumber" : null,
"LineNumber" : 3,
"OTPCode" : null,
"PackagingSlip" : null,
"PartCode" : "ELBOW2",
"PartManufacturerNumber" : null,
"PartModelNumber" : null,
"PrimaryKey" : 500485,
"PurchaseLineUnitCost" : 1.4000,
"PurchaseOrderDate" : "11\/10\/2010 12:00:00 AM",
"PurchaseOrderNumber" : "PO-10060",
"PurchaseOrderTypeCode" : "Electrical",
"PurchaseOrderTypeDescription" : "Electrical",
"QuantityOrdered" : 50.00,
"QuantityReceived" : 50.0000,
"ReferenceNumber" : null,
"RequestorName" : "Bob Smith",
"RequestorPhoneNumber" : null,
"ShipMethod" : "PPD",
"TechnicianID" : "106",
"TechnicianName" : "David Crosby",
"UnitCost" : 1.4000,
"UnitOfMeasure" : "EA",
"VendorCode" : "ALKINS",
"VendorName" : "Alkins & Company",
"WarehouseCode" : "CENTRALWHS",
"WarehouseName" : "Central Stores
]
,
"Success" : true
}
Want to Know More?
Visit the WebTMA Help Page