Some suggestions for the api

Discussion in 'Developers Forum' started by robgoodliffe, May 24, 2011.

  1. robgoodliffe New Member

    Hi I feel like there's a couple of things missing that would really help.

    • To have a way of counting records (useful for when calculating pagination for instance). So for example a Count(Receipts/Quotes/Invoices/etc) method would be good.
    • To be able to limit the number of records returned and have a limit offset option within the methods.
    So for example: return 50 invoices starting with an offset of 50 would return records 50 to 100

    At the moment, when calling the GetReceipts method, it returns all the records. I honestly don't know how this method could even be useful for customers with more than a couple of hundred records, as it just takes too long to load into memory making applications painfully slow.

    What do people think? Am i missing a way of doing this already?

    Cheers
  2. knu New Member

    I suppose you could use GetInvoicesByDateRange to limit the number of invoices you are fetching - and retrieve all invoices for a particular month/week, say. There's no guarantee on how many it'll fetch though.

    Cheers,
    Mark
  3. robgoodliffe New Member

    GetInvoices_Recent method is nearly what i was after, seems like there are no similar methods for receipts/quotes though :-( I've emailed them to ask if it can be included so we'll see.
  4. robgoodliffe New Member

Share This Page