Xsolla-logo
  • 文档
  • 创建帐户

按SKU获取虚拟币套餐Client-side

get/v2/project/{project_id}/items/virtual_currency/package/sku/{virtual_currency_package_sku}

按SKU获取用于构建目录的虚拟货币套餐。

注:

此端点无需授权即可访问,返回通用数据。但是授权后可以通过用户详细信息来丰富响应,获得个性化结果,例如适用的用户限制和促销活动等。
SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer

项目编号。您可以在您的发布商帐户项目名称旁边。

Example: 44056
virtual_currency_package_sku
required
string

虚拟货币套餐SKU。

Example: crystal-pack
query Parameters
locale
string
Default: "en"

响应语言。按照ISO 639-1规定使用两个小写字母的语言代码。

country
string

Two-letter uppercase country code per ISO 3166-1 alpha-2. Shows regional prices and restrictions for a catalog if those were specified while creating an item.

Note

If you do not specify the country explicitly, it will be set based on user's IP address.

Example: country=US
show_inactive_time_limited_items
integer
Default: 0

显示用户不可用的时效性商品。此类商品的有效期尚未开始或已过期。

Example: show_inactive_time_limited_items=1
Responses
200

已成功接收虚拟货币套餐。

Request samples
Response samples
application/json
{
  • "attributes": [ ],
  • "bundle_type": "virtual_currency_package",
  • "can_be_bought": true,
  • "content": [],
  • "custom_attributes": {
    },
  • "description": "Crystal Pack Short Description",
  • "groups": [ ],
  • "is_free": false,
  • "item_id": 488832,
  • "limits": {
    },
  • "name": "Crystal Pack",
  • "periods": [
    ],
  • "price": {
    },
  • "promotions": [ ],
  • "sku": "crystal-pack",
  • "type": "bundle",
  • "virtual_prices": [ ],
  • "vp_rewards": [ ]
}