Need to get all customers without any pagination limit of records

Hi,

We are getting customers from API GET /api/3.0/customer but receiving response only 25 customer details. Can you suggest what i have to pass in this API? So that I can receive all customer records without any limit.

Thanks 

Comments

  • Hi Taliv,

    Thank you for the question!

    All responses from the API are paginated. In order to access all records, you must make multiple requests.

    For each request, there are two relevant parameters you can include:
    limit - sets how many records will be returned from the request (max 100)
    page - indicates which page you are requesting

    For example:
    `/customer?limit=100&page=1`

    In the response, you will also find the `pages` value, which indicates how many total pages there are for your request, taking into consideration the `limit` that you have currently set. For example, if there are 250 records, and you have set a limit of 100, then there will be 3 pages.

    So, you will need to make multiple requests, incrementing the value of the `page` parameter each time, until you have retrieved all the pages/records.

    I hope this helps, and let me know if you have any more questions about this.

    All the best,

    Chase
    Technical Support Analyst
    Checkfront | www.checkfront.com/contact | Email: support@checkfront.com

Sign In or Register to comment.