Skip to content

[FEATURE] Add filter and Pagination in Customer Page #9768

@VenuMadhav2541

Description

@VenuMadhav2541

Feature Description

The current customer list API lacks support for:

  1. Filtering customers based on parameters such as time_range or other fields.
  2. Returning the total count of customers to support pagination on the frontend.

This causes incomplete pagination behavior and limits data retrieval flexibility when listing customers.

Possible Implementation

  • Add new fields to the CustomerListRequest struct:
    pub struct CustomerListRequest {
        pub offset: Option<u32>,
        pub limit: Option<u16>,
        pub customer_id: Option<id_type::CustomerId>,
        pub time_range: Option<common_utils::types::TimeRange>,
    }

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

Metadata

Metadata

Labels

C-featureCategory: Feature request or enhancementS-awaiting-triageStatus: New issues that have not been assessed yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions