Economy v2 is now Generally Available. For support and feedback, go to the PlayFab Forum.
RealMoneyPriceDetails on your catalog bundles, PlayFab records the revenue amount in the marketplace_transaction_redeemed event, enabling you to build revenue analytics and reporting.
This tutorial walks you through the end-to-end flow: setting real money prices on a bundle, redeeming a purchase, and viewing the revenue data in events.
Prerequisites
- A PlayFab developer account.
- A title created in Game Manager.
- A marketplace integration already configured (for example, Google, Apple, or Microsoft Store).
- A published bundle with a Marketplace Mapping linking it to a marketplace product.
Step 1: Set real money prices on your bundle
AddRealMoneyPriceDetails to the bundle that is linked to your marketplace product. Specify prices in the smallest currency unit (for example, cents for USD) per marketplace.
API
Use UpdateDraftItem to add prices to an existing bundle, and then publish it:Game Manager
- Go to Economy > Catalog (V2) > Bundles.
- Select the bundle to edit.
- In the Prices section, set the real money price for each marketplace where the bundle appears.
- Make sure the Marketplace Mapping section has the correct AlternateIds for each marketplace.
- Select Save and publish.
Price format reference
Prices use the smallest currency unit. Only USD is currently supported.
Set prices only for the marketplaces your title uses. The supported marketplace properties are:
AppleAppStorePricesGooglePlayPricesMicrosoftStorePricesNintendoEShopPricesPlayStationStorePricesSteamPrices
Different prices per marketplace
If you price your game differently across stores, set each marketplace property individually:Step 2: Player makes a purchase and redeems
After a player purchases the item from the external marketplace, your game calls the appropriate redeem API:
When PlayFab processes the redemption, it:
- Matches the marketplace receipt to the bundle’s
AlternateId. - Grants the bundle’s contents to the player’s inventory.
- Emits a
marketplace_transaction_redeemedevent that includes theRealMoneyPricesfrom the matching bundle.
Step 3: View revenue in events
After a successful redemption, themarketplace_transaction_redeemed event is emitted and includes the real money price data. You can find this event in Game Manager or query it through the data pipeline.
View in Game Manager
- Go to Data > Event History (under the Analyze section).
- Search for the
marketplace_transaction_redeemedevent name. - Select an event to view its details, including the
RealMoneyPricesfield.
Example event payload
A Google Play redemption of the Starter Pack ($4.99 USD) produces an event like this:Query revenue data
You can use the event data for custom analytics. For example, to calculate total revenue over a period, query for allmarketplace_transaction_redeemed events and sum the RealMoneyPrices.USD values:
RealMoneyPrices reflects what you configured in RealMoneyPriceDetails, not the actual amount charged by the marketplace. Keep your prices in sync with your marketplace listings for accurate reporting.Best practices
- Always set
RealMoneyPriceDetailson marketplace bundles. Without it, theRealMoneyPricesfield in redemption events is empty, and you lose revenue visibility. - Use the smallest currency unit. For USD, provide the price in cents (for example,
499for $4.99). - Only populate the marketplaces you use. You don’t need to set prices for every marketplace — only the ones your title is published on.
- Keep prices in sync with your marketplace listings. When you update prices in an external marketplace, update the corresponding property in
RealMoneyPriceDetailsto maintain accurate reporting. - Set per-marketplace prices when they differ. If your game is priced differently across stores, use the per-marketplace properties to reflect the actual price on each platform.
