Limiting the display time for items in the store

You can set the display period for an item in the store to:

  • maintain the relevance of the catalog at a given time, for example, during holiday sales
  • create an item in advance without displaying it in the catalog

Limiting the display time is available for the following item types:
  • bundles
  • game keys
Note
For bundles, configuration is available through the Publisher Account and using API calls. For game keys, configuration is available only using API calls.
To set a time limit for displaying a bundles in the store via Publisher Account, select Time period and specify the time zone, the beginning, and end of the period. To not indicate the end of the bundle display period, check the No end date box.
Note
After creating a virtual item, virtual currency, or virtual currency package, you can set statuses for the item to determine whether it is available, unavailable, or partially available.
To set a time limit for displaying a bundles and game keys in the store via API, use:Pass following parameters to the item creation or item update API call:
  • periods[0].date_from with the date and time of the beginning of item display period in YYYY-MM-DDThh:mm:ss±TMZ format, where TMZ is the time zone indicator in hh:mm GMT format.
  • periods[0].date_until with the date and time of the end of the item display period in YYYY-MM-DDThh:mm:ss±TMZ format, where TMZ is the time zone indicator in hh:mm GMT format. To not indicate the end of an item’s display period, pass null.

You can set up multiple periods for displaying an item in the store. To do this, pass an array of objects with the start and end dates of all periods in the API calls.

Example:

Copy
Full screen
Small screen
    "periods": [
          {
            "date_from": "2022-06-10T14:00:00+03:00",
            "date_until": "2022-06-30T14:00:00+03:00"
          },
           {
            "date_from": "2022-07-10T14:00:00+03:00",
            "date_until": "2022-07-30T14:00:00+03:00"
          },
           {
            "date_from": "2022-08-10T14:00:00+03:00",
            "date_until": "2022-08-30T14:00:00+03:00"
          }
    ]
    

    The getting catalog methods return the items that are displayed in the store at the time of the request. To obtain information about items whose display period has not yet started or has already expired, pass the show_inactive_time_limited_items parameter with a value of 1 when requesting the catalog.

    Note

    Item display time limits are not taken into account within a bundle.

    Example
    1. You create a Booster virtual item and set its display period from October 29th to November 15th.
    2. You create a Legendary Start Pack bundle that includes the Booster. The bundle does not have a time limit, so it is always visible in the store.
    3. On October 20th, a user opens your in-game store. You use the following methods:You do not pass the show_inactive_time_limited_items parameter in these methods.
    4. You retrieve the item catalog:
      • The Booster is not included in the response of the Get virtual items list, because its display period is from October 29th to November 15th. If you pass the parameter show_inactive_time_limited_items:1 in the Get virtual items list, the Booster is included in the response, and the periods array indicates the period when it is available for purchase.
      • The Booster is included in the response of the Get list of bundles as part of the Legendary Start Pack bundle, and the user can obtain it regardless of the value of the show_inactive_time_limited_items parameter.
    Was this article helpful?
    Thank you!
    Is there anything we can improve? Message
    We’re sorry to hear that
    Please explain why this article wasn’t helpful to you. Message
    Thank you for your feedback!
    We’ll review your message and use it to help us improve your experience.
    Last updated: November 28, 2024

    Found a typo or other text error? Select the text and press Ctrl+Enter.

    Report a problem
    We always review our content. Your feedback helps us improve it.
    Provide an email so we can follow up
    Thank you for your feedback!