# Get game for catalog

Gets a game for the catalog.

Endpoint: GET /v2/project/{project_id}/items/game/sku/{item_sku}
Version: 1.0.0
Security: AuthForClient

## Path parameters:

  - `project_id` (integer, required)
    Project ID.
    Example: 44056

  - `item_sku` (string, required)
    Item SKU.
    Example: "booster_mega_1"

## Query parameters:

  - `locale` (string)
    Response language. Two-letter lowercase language code per ISO 639-1.

  - `additional_fields[]` (array)
    The list of additional fields. These fields will be in the response if you send them in your request. Available fields media_list, order, long_description.

  - `country` (string)
    Country to calculate regional prices and restrictions for catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. If you do not specify the country explicitly, it will be calculated based on user's IP address.

## Response 200 fields (application/json):

  - `sku` (string)
    Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores.
    Example: "game_1"

  - `name` (string)
    Item name.
    Example: "Game name"

  - `groups` (array)
    Groups the item belongs to.
    Example: [{"external_id":"all","name":"All games"},{"external_id":"Xsolla","name":"Xsolla games"}]

  - `groups.external_id` (string)
    Example: "accessory"

  - `groups.name` (string)
    Example: "Accessory"

  - `attributes` (array)
    List of attributes and their values corresponding to the Game.

Attention. This part of response is available only if you send the additional_fields[]=attributes query parameter.

  - `attributes.external_id` (string)
    Unique attribute ID. The external_id may only contain lowercase Latin alphanumeric characters, dashes, and underscores.
    Example: "attribute_1"

  - `attributes.name` (string)
    Name of attribute.
    Example: "Genre"

  - `attributes.values` (array)

  - `attributes.values.external_id` (string)
    Unique value ID for an attribute. The external_id may only contain lowercase Latin alphanumeric characters, dashes, and underscores.
    Example: "attribute_value"

  - `attributes.values.value` (string)
    Value of attribute.
    Example: "Strategy"

  - `type` (string)
    Type of item: virtual_good/virtual_currency/bundle/physical_good/unit.
    Example: "unit"

  - `unit_type` (string)
    Type of unit: game.
    Example: "game"

  - `description` (string)
    Item description.
    Example: "Game description"

  - `image_url` (string)
    Image URL.
    Example: "https://cdn.xsolla.net/img/misc/images/b79342cdf24f0f8557b63c87e8326e62.png"

  - `unit_items` (array)
    Example: [{"sku":"game_key_01","type":"game_key","is_free":false,"price":{"amount":"30.5","amount_without_discount":"30.5","currency":"USD"},"virtual_prices":[],"drm_name":"Steam","drm_sku":"steam","has_keys":true,"is_pre_order":true,"release_date":"2020-08-11T10:00:00+03:00"},{"sku":"game_key_02","type":"game_key","is_free":false,"price":{"amount":"30.5","amount_without_discount":"30.5","currency":"USD"},"virtual_prices":[],"drm_name":"Origin","drm_sku":"origin","has_keys":false,"is_pre_order":false}]

  - `unit_items.sku` (string)
    Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores.
    Example: "game_01"

  - `unit_items.type` (string)
    Type of item: game_key.
    Example: "game_key"

  - `unit_items.is_free` (boolean)
    If true, the item is free.

  - `unit_items.price` (object)
    Item prices.

  - `unit_items.price.amount` (string)
    Discounted item price.
    Example: "2.9900"

  - `unit_items.price.amount_without_discount` (string)
    Item price.
    Example: "2.9900"

  - `unit_items.price.currency` (string)
    Default purchase currency. Three-letter code per [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
    Example: "USD"

  - `unit_items.virtual_prices` (array)
    Virtual prices.

  - `unit_items.virtual_prices.amount` (integer)
    Discounted item price in virtual currency.
    Example: 100

  - `unit_items.virtual_prices.amount_without_discount` (integer)
    Item price.
    Example: 200

  - `unit_items.virtual_prices.sku` (string)
    Virtual currency item SKU.
    Example: "vc_test"

  - `unit_items.virtual_prices.is_default` (boolean)
    Whether price is default for item.
    Example: true

  - `unit_items.virtual_prices.image_url` (string)
    Image of virtual currency.
    Example: "http://image.png"

  - `unit_items.virtual_prices.name` (string)
    Virtual currency name.
    Example: "SHOTGUN FOR TRUE RAIDERS"

  - `unit_items.virtual_prices.type` (string)
    Virtual currency type.
    Example: "virtual_currency"

  - `unit_items.virtual_prices.description` (string)
    Virtual currency description.
    Example: "Big Rocket - description"

  - `unit_items.drm_name` (string)
    DRM name.
    Example: "Steam"

  - `unit_items.drm_sku` (string)
    Unique DRM ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores.
    Example: "steam"

  - `unit_items.has_keys` (boolean)
    If true, the game key has keys for sale.

  - `unit_items.is_pre_order` (boolean)
    If true, the game key is pre-order and the release date hasn't passed.
    Example: true

  - `unit_items.release_date` (string)
    Game key release date in the ISO 8601 format.
    Example: "2020-08-11T10:00:00+03:00"

## Response 404 fields (application/json):

  - `statusCode` (integer)
    Example: 404

  - `errorCode` (integer)
    Example: 4001

  - `errorMessage` (string)
    Example: "[0401-4001]: Item with sku = 'game_1' not found"


