获取用于构建目录的虚拟货币套餐列表。
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": [ ],
- "bundle_type": "virtual_currency_package",
- "can_be_bought": true,
- "content": [
- {
- "description": "Big Rocket - short description",
- "inventory_options": {
- "consumable": {
- "usages_count": 1
}, - "expiration_period": null
}, - "name": "Big Rocket",
- "quantity": 100,
- "sku": "big_rocket",
- "type": "virtual_currency"
}
], - "custom_attributes": {
- "attr": "value",
- "purchased": 0
}, - "description": "VC Short Package Description",
- "groups": [ ],
- "is_free": false,
- "limits": {
- "per_user": {
- "available": 3,
- "recurrent_schedule": {
- "interval_type": "weekly",
- "reset_next_date": 1746057600
}, - "total": 5
}
}, - "name": "VC Name first package",
- "periods": [
- {
- "date_from": "2020-08-11T10:00:00+03:00",
- "date_until": "2020-08-11T20:00:00+03:00"
}
], - "price": {
- "amount": "2.0000",
- "amount_without_discount": "2.0000",
- "currency": "USD"
}, - "promotions": [
- {
- "bonus": [
- {
- "name": "Xsolla Minigun",
- "quantity": 1,
- "sku": "minigun_1",
- "type": "virtual_good"
}
], - "date_end": "2026-04-15T16:16:00+03:00",
- "date_start": "2020-04-15T16:16:00+03:00",
- "discount": {
- "percent": "50.00"
}, - "name": "Bonus promotion"
}
], - "sku": "vc_package_1",
- "type": "bundle",
- "virtual_prices": [ ],
- "vp_rewards": [ ]
}, - {
- "attributes": [ ],
- "bundle_type": "virtual_currency_package",
- "can_be_bought": true,
- "content": [
- {
- "description": "description",
- "inventory_options": {
- "consumable": {
- "usages_count": 1
}, - "expiration_period": null
}, - "name": "SHOTGUN FOR TRUE RAIDERS",
- "quantity": 200,
- "sku": "shotgun_raider",
- "type": "virtual_currency"
}
], - "description": "VC Short Package Description",
- "groups": [ ],
- "is_free": false,
- "limits": {
- "per_user": {
- "available": 3,
- "recurrent_schedule": {
- "interval_type": "weekly",
- "reset_next_date": 1746057600
}, - "total": 5
}
}, - "name": "VC Name third package",
- "periods": [
- {
- "date_from": null,
- "date_until": "2020-08-11T20:00:00+03:00"
}
], - "price": {
- "amount": "4.0000",
- "amount_without_discount": "4.0000",
- "currency": "USD"
}, - "promotions": [
- {
- "bonus": [
- {
- "name": "Xsolla Minigun",
- "quantity": 1,
- "sku": "minigun_1",
- "type": "virtual_good"
}
], - "date_end": "2026-04-15T16:16:00+03:00",
- "date_start": "2020-04-15T16:16:00+03:00",
- "discount": {
- "percent": "50.00"
}, - "name": "Bonus promotion"
}
], - "sku": "vc_package_3",
- "type": "bundle",
- "virtual_prices": [ ],
- "vp_rewards": [ ]
}
]
}