CommitCRM Ticket Charge Data Import

The C# code below will insert a Account record, Ticket record and Charge record into a CommitCRM database. A Charge record must have a Ticket Record ID or Contract Record ID included in the data for the Charge record. Similar for a Ticket Record, which cannot be inserted with the Account Record ID being included. 

Therefore is the Account record and the Ticket record isn’t already in the CommitCRM database, then those must be inserted first.