Method PostInsertValidateARCRRecords

Type: FusionOSServices.Controllers.AccountsReceivableController

Summary

Insert and Validate AR or CR Record into the ledger

Example

POST https://fusion.superion.com/FusionOSServices/v1/ONESolution/AccountsReceivable/InsertValidate

Sample Code

using System.Net;

string uri = "https://fusion.superion.com/FusionOSServices/v1/ONESolution/AccountsReceivable/InsertValidate";
string xmlText =
 @"<InsertValidateARCRRequest>
       <ARCRRecord>
           <SetType>CR</SetType>
           <GlGr>GL</GlGr>
           <GlKey>101500</GlKey>
           <GlObj>6000</GlObj>
           <TermCode>T</TermCode>
           <UnitPrice>15.25</UnitPrice>
           <UserReceiptTotal>15.25</UserReceiptTotal>
           <HitAR>false</HitAR>
           <FeeCode>10</FeeCode>
           <InvoiceNumber>Charge123</InvoiceNumber>
       </ARCRRecord>
   </InsertValidateARCRRequest>";

using (WebClient req = new WebClient())
{
    string stringResult = wc.UploadString(new Uri(uri), "POST", xmlText);
    XmlDocument response = xmlDoc.LoadXml(stringResult);
    // TODO
}