# Store-api gives 500 error when using price filter example in 6.4

**URL:** <https://forum.shopware.com/t/store-api-gives-500-error-when-using-price-filter-example-in-6-4/87646>\
**Category:** Programming (EN)\
**Tags:** programming\
**Created:** [13. Mai 2021 um 15:00 UTC](https://forum.shopware.com/t/store-api-gives-500-error-when-using-price-filter-example-in-6-4/87646 "2021-05-13T15:00:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blogghe](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@blogghe](https://forum.shopware.com/u/blogghe)\
**Post date:** [13. Mai 2021 um 15:00 UTC](https://forum.shopware.com/t/store-api-gives-500-error-when-using-price-filter-example-in-6-4/87646/1 "2021-05-13T15:00:43Z")

</div>

> **Summary**
>
> This text will be hidden

Hello,

I am trying to filter my search result based on a price range as described in the filters reference documentation using te store-api with Shopware 6.4.

The documentation gives this body as an example:

 ![Screenshot 2021-05-13 at 16.55.25](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/6/63adcd6ebf47b556b258ccdfae5246b1a5453676.png)

The response throws a 500 error saying:

> ```
> {
> "errors": [
> {
> "status": "500",
> "code": "FRAMEWORK__ACCESSOR_NOT_ALLOWED",
> "title": "Internal Server Error",
> "detail": "Accessor product.price is not allowed in this api scope",
> "meta": {
> "parameters": {
> "accessor": "product.price"
> }
> }
> }
> ]
> }
> 
> ```

is there possibly another way to filter product based on price?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dipesh.bay20](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/dipesh.bay20/32/17533_2.png) [@dipesh.bay20](https://forum.shopware.com/u/dipesh.bay20)\
**Post date:** [5. Juli 2022 um 05:59 UTC](https://forum.shopware.com/t/store-api-gives-500-error-when-using-price-filter-example-in-6-4/87646/2 "2022-07-05T05:59:59Z")

</div>

Have you got any solution for this?
