question

Robyn To avatar image
Robyn To asked

EconomyV2 SearchItems with Store AlternateId

What is the format for using the Store's alternate Id to search items?

The link below mentions 'You can also use the AlternateId of the store to search for it.' But the following format in Postman is failing:

{ "store": { "id": "B804093A-64F9-4452-A23F-9B0F49FBD160" } }

https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/stores?tabs=creating-store-game-manager

apisIn-Game Economy
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

·
Neils Shi avatar image
Neils Shi answered

If you want to search items with store alternateId, you should make sure you have set store’s AlternateIds before you search (alternate ID can be set to 'FriendlyId' or any of the supported marketplace names). The following example of request body shows how to use store alternateId with API SearchItems:

 {
   "Store": {
     "AlternateId": 
     {
         "Type":"FriendlyId",
         "Value":"TestStoreAlternateId"
     }
   }
 }
10 |1200

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

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.