从指定组获取用于构建目录的游戏列表。
limit | integer 页面上元素数量的限制。 Example: limit=50 |
offset | integer 元素编号,从该元素开始生成列表(从0开始数)。 Example: offset=0 |
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 |
游戏列表已成功接收。
{- "has_more": false,
- "items": [
- {
- "attributes": [
- {
- "external_id": "genre",
- "name": "Genre",
- "values": [
- {
- "external_id": "23fda05111c125608af8f1fa0e99db45a10ea1cc",
- "value": "Horror"
}
]
}
], - "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,
- "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"
}, - "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,
- "periods": [ ],
- "price": {
- "amount": "30.5",
- "amount_without_discount": "30.5",
- "currency": "USD"
}, - "release_date": null,
- "sku": "game_key_02",
- "type": "game_key",
- "virtual_prices": [ ],
- "vp_rewards": [ ]
}
], - "unit_type": "game"
}, - {
- "attributes": [
- {
- "external_id": "OS",
- "name": "OS",
- "values": [
- {
- "external_id": "9d5c5efb7c0f00a00fe4e3583f1215b0050bc723",
- "value": "Windows"
}
]
}
], - "description": "Game description",
- "groups": [
- {
- "external_id": "all",
- "name": "All games"
}
], - "name": "Game name",
- "promotions": [ ],
- "sku": "game_2",
- "type": "unit",
- "unit_items": [
- {
- "can_be_bought": true,
- "drm_name": "Steam",
- "drm_sku": "steam",
- "has_keys": false,
- "is_free": false,
- "is_pre_order": false,
- "periods": [
- {
- "date_from": null,
- "date_until": "2020-08-11T20:00:00+03:00"
}
], - "price": {
- "amount": "30.5",
- "amount_without_discount": "30.5",
- "currency": "USD"
}, - "release_date": null,
- "sku": "game_key_01",
- "type": "game_key",
- "virtual_prices": [ ],
- "vp_rewards": [ ]
}
], - "unit_type": "game"
}
]
}