Skip to main content

Overview

QuickBooks frequently needs to paginate responses to avoid timeouts and other issues. Usually this would require tracking iterator metadata and making multiple requests to QuickBooks.

Auto-pagination to the rescue

QuBe Sync can automatically paginate any QuickBooks request that supports it. Each result page will be sent to the webhook_url provided with the original request. Each webhook will contain the page and page_request_id attributes to help you distinguish between pages. If you are using pre-built requests, you can auto-paginate them by setting the iterate parameter to true.
curl https://qubesync.com/api/v1/connections/$CONN_ID/customers?iterate=true \
     --user $QUBE_API_KEY:
If you’re building custom requests, QuBe Sync will automatically paginate any request you send with iterator="Start".
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
  <QBXMLMsgsRq>
    <CustomerQueryRq iterator="Start">
      <MaxReturned>100</MaxReturned>
    </CustomerQueryRq>
  </QBXMLMsgsRq>
</QBXML>
I