Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Tanmay Kulkarni · Sep 25, 2020 at 09:48 AM · In-Game Economy

"Item not found". Unable to use PurchaseItem()

I have made a catalog, store, and added some items, and also created a bundle.

Now, when I am trying to purchase the bundle by using the following code, it gives an error - Item not Found

I have double checked the spelling of bundle and store. What is going wrong? Please help!

Code:(Unity c#)

  PlayFabClientAPI.PurchaseItem(new PurchaseItemRequest
        {
            StoreId = "curl_store",
            CatalogVersion = "0.1",
            VirtualCurrency = "CU",
            ItemId = "begginer_bundle", 
            Price = 0,
        }, Purchased =>
        {
            Debug.Log("Purchased begginer bundle");
            
        }, Error =>
        {
            Debug.Log(Error.GenerateErrorReport());
            loadingPanel.SetActive(false);
            genderPanel.SetActive(true);
            ShowError("ERROR!", Error.ErrorMessage);
        }
        );
Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Sep 28, 2020 at 05:51 AM

We have tested to call this API in our testing title. The API PurchaseItem works fine. Could you please check it have you set the correct TitleId in your project? If you confirm you have set the correct TitleId, but the issue still exists. Could you please provide your TitleId for us to investigate?

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Tanmay Kulkarni · Sep 28, 2020 at 03:59 PM 0
Share

I have set the title id correctly

A18B6 is the title id

avatar image Sarah Zhang Tanmay Kulkarni · Oct 01, 2020 at 09:39 AM 0
Share

We checked your title, and tried to call the client API PurchaseItem using the testing account -- 9B4D6F4E2CBAAE32. We found you haven't added the "begginer_bundle" to "curl_store" yet. So when you call the PurchaseItem API to purchase the item from "curl_store", it returns "Item not found". You can add the "begginer_bundle" to"curl_store", then try to call this API again.

avatar image

Answer by bbekec · Feb 15 at 10:55 AM

Hello, In my game i want to create a button and want to grant player some coins for daily check in. I tried to implement PrizeWheel to my project but i could not be successful. I followed instructions which written in Git source of PrizeWheel. Last error i got is "Item not found". Can you help me? Thanks

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Changing the price of an item using CloudScript? 1 Answer

    Easiest Way to Find New Items in Inventory? 1 Answer

    Loot System notifications 1 Answer

    CDN Download Restrictions based on Player Inventory 1 Answer

    Can Drop Tables grant random Virtual Currency? 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges