This service returns AP invoice data fill records for OnBase: OhMisc, Status, OhPrItem, OhGlKey, OhGlObj, OhJlKey, OhJlObj, OhCheckNo, OhCkDt, OhAmt, OhRef, OhRefDt.
| Type | Description |
|---|---|
| System.String | The PO number to retrieve AP invoice data for (e.g. P17939). |
using System.Net;
using Newtonsoft.Json.Linq;
public void MethodName(parms){
string poNumber = "P17939"; // Replace with actual PO number
string uri = "https://fusion.superion.com/FusionOSServices/v0/ONESolution/OnBase/APInvoiceDataFill?poNumber=" + poNumber;
using (WebClient wc = new WebClient())
{
wc.Headers.Add("Content-Type", "application/json");
// Replace "ID" with supplied AppID
wc.Headers.Set("X-APPID", "ID");
// Replace "KEY" with supplied AppKey
wc.Headers.Set("X-APPKEY", "KEY");
string result = wc.DownloadString(uri);
var response = JObject.Parse(result);
var records = (JContainer)response["values"];
foreach (var record in records)
{
string ohMisc = (string)record["ohMisc"];
string status = (string)record["status"];
}
}
}
{
"values": [
{
"ohMisc": "HEAT",
"status": "Waiting Payment",
"ohPrItem": "001",
"ohGlKey": "100",
"ohGlObj": "4000",
"ohJlKey": "SB001",
"ohJlObj": "01",
"ohCheckNo": "",
"ohCkDt": null,
"ohAmt": 15.00,
"ohRef": "INV001",
"ohRefDt": "2024-01-10"
}
],
"count": 1
}