public Models.AccountReceipt Save(AccountReceipt accountReceipt)
 {
     var url = string.Format("AccountReceipt/Save?apikey={0}&companyid={1}", _apiKey, _companyId);
     var request = new RestRequest(url, Method.POST) { JsonSerializer = new JsonSerializer() };
     request.RequestFormat = DataFormat.Json;
     request.AddBody(accountReceipt);
     var response = _client.Execute<AccountReceipt>(request);
     return response.Data;
 }
        public void SaveAccounReceipt()
        {
            var accountReceipt = new AccountReceipt
            {
                AccountId = 0,
                Date = DateTime.Now,
                Payee = "Joe Blogs",
                Description = "Payment to Joe Blogs",
                TaxTypeId = 0,
                Exclusive = 50,
                BankAccountId = 0
            };

            var newaccountReceipt = Api.AccountReceiptRequest.Save(accountReceipt);
        }