Xsolla-logoXsolla Developers
or
To Publisher Account

Get game by ID (admin)Server-sideAdmin

get/v2/project/{project_id}/admin/items/game/id/{item_id}

Gets a game for administration. Game consists of game keys which could be purchased by a user.

Note

Do not use this endpoint for building a store catalog.
SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

Example: 44056
item_id
required
string

Item ID.

Example: 656
query Parameters
promo_code
string [ 1 .. 128 ] characters

Unique case sensitive code. Contains letters and numbers.

Example: promo_code=WINTER2021
Responses
200

Game was successfully received.

401

Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.

404

Game not found.

Request samples
curl -i -X GET \
  -u <merchant_id_or_project_id>:<api_key> \
  'https://store.xsolla.com/api/v2/project/{project_id}/admin/items/game/id/{item_id}?promo_code=WINTER2021'
Response samples
application/json
{
  • "item_id": 1,
  • "sku": "com.xsolla.game_1",
  • "type": "unit",
  • "name": {
    },
  • "description": {
    },
  • "long_description": {
    },
  • "order": 1,
  • "groups": [
    ],
  • "attributes": [
    ],
  • "is_free": false,
  • "is_enabled": true,
  • "is_show_in_store": false,
  • "unit_items": [
    ]
}