Skip to main content

Timed Consumables (Legacy Economy)

Economy v1 APIs are in maintenance mode and will not be receiving any new features, only bug fixes. The v1 APIs will be maintained for the foreseeable future. See the Economy v2 Overview to learn more about the next version of PlayFab Economy!
This tutorial walks you through creating timed consumables using the PlayFab Game Manager. Timed consumables are items that are configured to auto-consume after a specific time from the initial grant to the player.

Requirements

Create a Stackable Timed Consumable

Let’s create a small stamina potion that boosts your player’s stamina for five minutes when granted, and increases the time range by five minutes. In Game Manager:
  1. Navigate to your Title.
  2. Select Economy from the menu on the left.
  3. Go to the Catalogs tab and choose your primary catalog - your screen should look similar to this example: Game Manager - Timed Consumables - Items Tab With One Item
  4. Select New item in the top right corner.
  5. Fill out the following fields: Game Manager - Timed Consumables - Stackable Item
  6. Select Save item.
You’ll now be able to stack these potions and the remaining time will automatically “stack” as well. For example, if I grant one small stamina potion to a player at 1:00pm, the item will be consumed at 1:05pm. If I grant another small stamina potion at 1:02pm, the two items will be consumed at 1:10pm.
If you don’t specify a time group name for a stackable timed consumable, the full stack will expire when the original expiration time was set from the first grant. For example, in the scenario above, if I instead left the time group name blank, if I grant one small stamina potion to a player at 1:00pm, the item will be consumed at 1:05pm. If I grant another small stamina potion at 1:02pm, the two items will still be consumed at 1:05pm. If I grant yet another small stamina potion at 1:04pm, the three items will still be consumed at 1:05pm. But after the stack is consumed, if I grant a small stamina potion at 1:10pm, the item will be consumed at 1:15pm.

Create a Non-Stackable Timed Consumable

Let’s create a similar example as before, but with a non-stackable item. Let’s create a medium stamina potion that will boost your player’s stamina for 10 minutes when granted, and increase the time range by an additional 10 minutes for each additional item. In Game Manager:
  1. Navigate to your Title.
  2. Select Economy from the menu on the left.
  3. Go to the Catalogs tab and choose your primary catalog - your screen should look similar to this example: Game Manager - Timed Consumables - Items Tab With Two Items
  4. Select New item in the top right corner.
  5. Fill out the following fields: Game Manager - Timed Consumables - Non-Stackable Item
  6. Select Save item.
Now every time you grant an additional medium stamina potion, it will create an entirely new instance in the player’s inventory, as the item isn’t stackable. You’ll still be able to automatically “stack” the remaining time for those items. For example, if I grant one medium stamina potion to a player at 1:00pm, the item will be consumed at 1:10pm. If I grant another medium stamina potion at 1:05pm, the two items will be consumed at 1:20pm.
If you don’t specify a time group name for a non-stackable timed consumable, each instance will expire independently of one another. For example, in the scenario above, if I instead left the time group name blank, if I grant one medium stamina potion to a player at 1:00pm, the item will be consumed at 1:10pm. If I grant another medium stamina potion at 1:05pm, the first item will still be consumed at 1:10pm, and the second item will be consumed at 1:15pm.
Now that you have a Small Potion (stackable) and a Medium Potion (non-stackable), let’s link those two timers together. Let’s modify a few fields to allow your player’s stamina to get boosted when the small or medium stamina potions are granted, and increase the time range by an additional 5 or 10 minutes for each small or medium stamina potion, respectively. In Game Manager:
  1. Navigate to your Title.
  2. Select Economy from the menu on the left.
  3. Go to the Catalogs tab and choose your primary catalog - your screen should look similar to this example: Game Manager - Timed Consumables - Items Tab With Three Items
  4. Select Med_Stamina_Potion in the item list.
  5. Change the Time Group Name from Med_Stamina_Potion to Stamina_Potion.
  6. Select Save item.
  7. Select Small_Stamina_Potion in the item list.
  8. Change the Time Group Name from Small_Stamina_Potion to Stamina_Potion.
  9. Select Save item.
Now every time you grant an additional small or medium stamina potion, it will automatically “stack” the remaining time for all items with the same time group name. For example, if I grant one medium stamina potion to a player at 1:00pm, the item will be consumed at 1:10pm. If I grant a small stamina potion at 1:05pm, the two items will be consumed at 1:15pm.
Last modified on August 10, 2026