question

abedassa avatar image
abedassa asked

/Client/GrantCharacterToUser: Item not owned error

I have created an item, and I have add the item to the inventory of the player to allow the player to own few characters: 6503-screenshot-2023-11-07-012726.png

6492-screenshot-2023-11-07-012541.png

6502-screenshot-2023-11-07-012339.png

     public void CreateCharacter()
     {
            
         var req = new GrantCharacterToUserRequest()
         {
             CatalogVersion = "ccc",
             CharacterName = "New Character",
             ItemId = "a739f8f7-18e0-4ee7-bdec-bd0761dc8461",
         };
            
         PlayFabClientAPI.GrantCharacterToUser(req, OnCharacterCreationSuccess, OnCharacterCreationFailure);
     }

When ever I call the function I get the error: /Client/GrantCharacterToUser: Item not owned What did I miss?

Account Management
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

The API GrantCharacterToUser is a Legacy Economy API, but the item you specified in the request body belongs to Economy v2. That’s why you get the error “Item not owned”. Currently, character doesn't support Economy v2. If you want this feature, you may post a feature request for it.

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.

abedassa avatar image abedassa commented ·

Thank you! now works for me

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.