Purchase catalog items with virtual currency using PlayFab Economy v2 PurchaseInventoryItems

domain: playfab · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure the item and its price are configured in the Economy v2 catalog with a virtual currency price tag
  2. POST to https://[titleId].playfabapi.com/Inventory/PurchaseInventoryItems with the player EntityKey, the Item to receive, and PriceAmounts listing the virtual-currency ItemId and Amount to deduct
  3. Optionally specify StackId on both the price item and the received item to control which inventory stack is debited or credited
  4. Verify the response TransactionIds and confirm inventory reflects the deduction and grant atomically
  5. Use SubtractInventoryItems for direct deductions outside of catalog-price flows

Known gotchas

Related routes

Grant items to a player inventory using PlayFab Economy v2 AddInventoryItems
playfab · 5 steps · unrated
Configure and query PlayFab Economy v2 catalog items and manage player inventory
learn.microsoft.com/gaming/playfab · 6 steps · unrated
Redeem Google Play in-app purchases via PlayFab Economy v2 RedeemGooglePlayInventoryItems
playfab · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans