获取用于目录的游戏。
locale | string Default: "en" 响应语言。按照ISO 639-1规定使用两个小写字母的语言代码。 |
additional_fields[] | Array of strings 附加字段列表。如果在请求中发送这些字段,则它们将包含在响应中。 |
country | string 符合ISO 3166-1 alpha-2标准的两个大写字母的国家/地区代码。如果在创建商品时进行了指定,则显示目录的区域价格和限制。 注意
如果没有明确指定国家/地区,则会根据用户的IP地址设置。 Example: country=US |
promo_code | string [ 1 .. 128 ] characters 区分大小写的唯一券码。包含字母和数字。 Example: promo_code=WINTER2021 |
show_inactive_time_limited_items | integer Default: 0 显示用户不可用的时效性商品。此类商品的有效期尚未开始或已过期。 Example: show_inactive_time_limited_items=1 |
成功收到游戏。
未找到游戏。
{- "attributes": [
- {
- "external_id": "OS",
- "name": "OS",
- "values": [
- {
- "external_id": "9d5c5efb7c0f00a00fe4e3583f1215b0050bc723",
- "value": "Windows"
}
]
}, - {
- "external_id": "genre",
- "name": "Genre",
- "values": [
- {
- "external_id": "9c5774997fc072b973bd5c231075c13841413f62",
- "value": "Casual, Logic"
}
]
}
], - "description": "Game description",
- "groups": [
- {
- "external_id": "all",
- "name": "All games"
}, - {
- "external_id": "Xsolla",
- "name": "Xsolla games"
}
], - "name": "Game name",
- "promotions": [ ],
- "sku": "game_1",
- "type": "unit",
- "unit_items": [
- {
- "can_be_bought": true,
- "drm_name": "Steam",
- "drm_sku": "steam",
- "has_keys": true,
- "is_free": false,
- "is_pre_order": true,
- "limits": null,
- "periods": [
- {
- "date_from": "2020-08-11T10:00:00+03:00",
- "date_until": "2020-08-11T20:00:00+03:00"
}
], - "price": {
- "amount": "30.5",
- "amount_without_discount": "30.5",
- "currency": "USD"
}, - "promotions": [ ],
- "release_date": "2020-08-11T10:00:00+03:00",
- "sku": "game_key_01",
- "type": "game_key",
- "virtual_prices": [ ],
- "vp_rewards": [
- {
- "amount": 130,
- "item_id": 175232,
- "name": "Value point",
- "sku": "value_point_1"
}
]
}, - {
- "can_be_bought": true,
- "drm_name": "Origin",
- "drm_sku": "origin",
- "has_keys": false,
- "is_free": false,
- "is_pre_order": false,
- "limits": null,
- "periods": [ ],
- "price": {
- "amount": "30.5",
- "amount_without_discount": "30.5",
- "currency": "USD"
}, - "promotions": [ ],
- "release_date": null,
- "sku": "game_key_02",
- "type": "game_key",
- "virtual_prices": [ ],
- "vp_rewards": [ ]
}
], - "unit_type": "game"
}