question

awsarsenii avatar image
awsarsenii asked

How to Search catalog items v2 with specified Filter/OrderBy by PriceOptions

Is it possible to make request Catalog - Search Items with Filter/OrderBy by PriceOptions? If so, please, provide an example of correct request body. I tried: { "OrderBy": "PriceOptions/Prices(0)/Amounts(0)/Amount asc" }, but got an 1071 error "Could not find a property named 'PriceOptions'"

apissdksIn-Game Economysupport
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

It's not possible to order by prices because they are modeled as a complex type collection in the catalog. If you only have a single price you want to sort by, you could put that value in your DisplayProperties instead and create a custom index. Something like:

 "OrderBy": "DisplayProperties/PriceAmountInGumdrops asc"

https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/content-types-tags-and-properties

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

awsarsenii avatar image awsarsenii commented ·

Got you, thanks!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.