title: How do I reduce the number of Xero api calls below the 5000/day limit?
body: <p>I have a xero tenant with 6000 clients; how do I get all the custom fields for all the clients without going over the 5000 api call limit? See  <a href="https://developer.xero.com/documentation/oauth2/limits" rel="nofollow noreferrer">https://developer.xero.com/documentation/oauth2/limits</a></p>
  
  <p>The original api calls are for the WorkflowMAX api:</p>
  
  <ul>
  <li>staff.api/list</li>
  <li>client.api/list?detailed=true</li>
  <li>client.api/get/nnnn/customfield where nnnn is the client id from the previous api call.</li>
  </ul>
  
  <p>We have had this working without problems using the standard WorkflowMAX urls, as we respected the 30 second delay before retrying the rate limited request.</p>