Skip to content

Add min_price and max_price filter params to creator list endpoint #419

@Chucks1093

Description

@Chucks1093

Summary

Users browsing the marketplace need to find creators whose keys they can afford or that fall within an investment range they are comfortable with. The creator list endpoint currently has no way to filter by key price, so every client-side price filter requires fetching all creators and discarding most of them. Price range filtering should happen in the query layer.

Scope

  • Add optional min_price and max_price query params to GET /creators
  • Both params accept a positive integer representing the price in stroops
  • Filter is applied against the current_price field from the price snapshot read model
  • Combine correctly with existing sort and pagination params
  • Return a 400 if min_price is greater than max_price

Acceptance Criteria

  • min_price alone filters out all creators with price below the value
  • max_price alone filters out all creators with price above the value
  • Both params together return only creators within the range (inclusive)
  • Returns 400 when min_price > max_price
  • Params combine correctly with sort, page, and existing category filters
  • Integration tests cover: min only, max only, both, and the invalid range case

Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions