Delete AR or CR Records from the ledger
using System.Net;
string uri = "https://fusion.superion.com/FusionOSServices/v1/ONESolution/AccountsReceivable/Delete";
string xmlText =
@"<DeleteARCRRequest>
<ARCRRecords>
<ARCRRecord>
<SetID>SetToDelete1</SetID>
</ARCRRecord>
<ARCRRecord>
<SetID>SetToDelete2</SetID>
</ARCRRecord>
</ARCRRecords>
</DeleteARCRRequest>";
using (WebClient req = new WebClient())
{
string stringResult = wc.UploadString(new Uri(uri), "POST", xmlText);
XmlDocument response = xmlDoc.LoadXml(stringResult);
// TODO
}