darioxtx / freshbooks-api

Automatically exported from code.google.com/p/freshbooks-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could you show example of how to pull an invoice given the invoice number?

GoogleCodeExporter opened this issue · comments

Your client example is really good and easy to understand.  But I can't seem to 
figure out the steps necessary to pull an invoice given the invoice number.  An 
example snippet would be very much appreciated.

Thank you.

Original issue reported on code.google.com by darcy.be...@gmail.com on 6 Sep 2012 at 8:42

I would like that too.

Original comment by vic...@optechmarketing.com on 18 May 2013 at 6:09

    var invoice = Api.Invoice.List(new InvoicesRequest
                {
                    Number = "FB0004"
                }).Invoices.InvoiceList[0];

Add some error checking, of course.  But yes, you need to use List instead of 
Get.

Original comment by cherry...@gmail.com on 24 May 2013 at 1:04

  • Changed state: Done
  • Added labels: Type-Other
  • Removed labels: Type-Defect