Method PostInsertARCRRecords

Type: FusionOSServices.Controllers.AccountsReceivableController

Summary

Insert AR or CR Records into the ledger

Example

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

Sample Code

using System.Net;

string uri = "https://fusion.superion.com/FusionOSServices/v1/ONESolution/AccountsReceivable/Insert";
string xmlText =
 @"<InsertARCRRequest>
       <ARCRRecords>
           <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>
       </ARCRRecords>
   </InsertARCRRequest>";

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