Method GetPEVendorDetail

Type: FusionOSServices.Controllers.PEVendorDetailController

Summary

REST service that provides an interface to read the PEVendorDetail table

Example

GET https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEVendorDetail/00000001

Parameters

TypeDescription
System.String the employee ID

Sample Code

using System.Net;

public void MethodName(parms){
    string uri = "https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEVendorDetail/00000001";
    WebClient wc = new WebClient();
    Common.SetResponseType(wc, "json");
    Common.SetLicenseKey(wc);
    string stringResult = wc.DownloadString(new Uri(uri));
    
    JObject response = JObject.Parse(stringResult);
    foreach(var addressRec in response["RequestResponse"]["DATA"]["PEVENDORDETAIL"])
    {
       // TODO
    }
}

$.get('https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEVendorDetail/00000001', function(response) {
    $('#resultDiv).html(response); 
 });

Sample Responses


                        
            {
              "RequestResponse": {
                "Count": "1",
                "DATA": {
                  "PEVENDORDETAIL": [
                    {
                      "peId": "V3596",
                      "tin": "958523696",
                      "vendAccount": "",
                      "dueDays": "0",
                      "eftFlag": "N",
                      "bankRoute": "",
                      "bankAcct": "",
                      "noCheckFlag": "",
                      "noCheckReas": "",
                      "noInvFlag": "",
                      "noInvReas": "",
                      "noPrFlag": "",
                      "noPrReas": "",
                      "noPoFlag": "",
                      "noPoReas": "",
                      "discountPct": "3.00",
                      "vend1099Flag": "",
                      "vend1099Dflt": "",
                      "addr1099Cd": "",
                      "soleName": "",
                      "dirSaleFlag": "",
                      "tinFlag2": "",
                      "contactId": "",
                      "dbeMoFlag": "",
                      "dbeWoFlag": "",
                      "dbeSmFlag": "",
                      "dbe8aFlag": "",
                      "dbeHubFlag": "",
                      "dbeDvFlag": "",
                      "dbeLocFlag": "",
                      "addendaType": "",
                      "eftType": "",
                      "createWho": "",
                      "createWhen": "",
                      "updateWho": "RESTAPI",
                      "updateWhen": "10/16/2020 10:14:03 AM",
                      "uniqueKey": "D6A344CC-B898-4F2D-B732-86A597BE2931",
                      "contact": "",
                      "bankType": "",
                      "dupInvCheck": "",
                      "discDays": "1",
                      "discChangeResp": "",
                      "paymentType": "CHK",
                      "paymentExtId": "",
                      "taxCd": "",
                      "taxCd2": "",
                      "taxStatus": "",
                      "taxChangeResp": "",
                      "vend1099Cd": "",
                      "vendPmtTermsCd": ""
                    }
                  ]
                }
              }
            }
            
        

Remarks

The logical directory after /PEVendorDetail is the PE ID. If a corresponding record exists, that record will be returned in the PEVendorDetail array of size 1 (see below). Errors are returned as JSON objects with messages in the #text attribute, e.g.: { "#text": "No ID found in path" }