juspay/hyperswitch

[FEATURE] : add pagination support for customers list

Open

#3,746 opened on Feb 21, 2024

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Rust (4,676 forks)batch import
C-featuregood first issuehelp wanted

Repository metrics

Stars
 (42,690 stars)
PR merge metrics
 (Avg merge 6d 22h) (213 merged PRs in 30d)

Description

Feature Description

The customers list endpoint currently has no pagination support. It returns the list of all the customers in the database. There would be thousands of customers for a merchant. A pagination support for the api would be necessary.

Possible Implementation

accept two fields, limit and offset

  • limit specifies the number of objects returned in the response.
  • offset specifies the number of items to skip from the start, this is open to discussion whether to use offset or some other field.

This would be similar to the payments_list pagination. Refer here

Have you spent some time checking if this feature request has been raised before?

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

Contributor guide