Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Product Reviews API filters are not working

    Bug Report
    2
    2
    291
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      negarahmady last edited by negarahmady

      Hello,
      i'm using package bagisto-api

      I noticed an issue with the Product Reviews API endpoint:

      GET /api/shop/products/{productId}/reviews

      According to the documentation, this endpoint supports the following query parameters:

      rating
      status
      page
      limit
      sort

      However, these filters do not seem to work as expected. Sending requests with parameters such as:

      /api/shop/products/1/reviews?rating=5
      /api/shop/products/1/reviews?status=approved
      /api/shop/products/1/reviews?sort=latest

      returns the same results as an unfiltered request.

      Could you please verify whether these query parameters are currently supported by the implementation, or if there is a discrepancy between the documentation and the API behavior?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • Y
        yashvir_singh last edited by

        Hello,

        Thanks for flagging this. You're right — the rating, status, and sort filters on GET /api/shop/products/{productId}/reviews were not being applied. This has been fixed in the latest release (v2.0.0) — the filters now work as documented.

        Please update to the latest version of the package, and the filtered requests will return correctly. Let us know if you still see any discrepancy after upgrading.

        Best regards,
        Bagisto Support

        1 Reply Last reply Reply Quote 0
        • First post
          Last post