Hi Developers,
I am creating invoice using code get from
https://github.com/nicwise/FreeAgent. My code is like:
Invoice c = new Invoice();
c.comments = "Comments";
c.contact = "Contact";
c.created_at = "sometime";
c.currency = "any";
c.dated_on = "somedate";
c.discount_percent = 6.6;
c.due_on = "nothing";
c.ec_status = "ec status";
c.exchange_rate = 9.9;
c.invoice_items = new List<InvoiceItem>();
c.net_value = 4.4;
c.payment_terms_in_days = 10;
c.project = "poject";
c.reference = "referece";
c.sales_tax_value = 4.4;
c.status = "status";
c.updated_at = "sometime";
c.written_off_date = "somedate";
InvoiceClient ic = new InvoiceClient(_client);
ic.Put(c);
When i try to create invoice using Put method it gives me error response
({“errors”:[{“message”:“Contact not found for this
company”},{“message”:“Project not found for this company”}]})
Kindly tell me where i am wrong? Either i am going wrong way to create
invoice or some other problem?
Kind Regards,
Cheesa,
Developer, Ambosco, Sherserve