Gets a virtual currency by SKU for building a catalog.
locale | string Default: "en" 响应语言。按照ISO 639-1规定使用两个小写字母的语言代码。 |
country | string Two-letter uppercase country code per ISO 3166-1 alpha-2. Check the documentation for detailed information about countries supported by Xsolla and the process of determining the country. Example: country=US |
show_inactive_time_limited_items | integer Default: 0 显示用户不可用的时效性商品。此类商品的有效期尚未开始或已过期。 Example: show_inactive_time_limited_items=1 |
已成功收到虚拟货币。
{- "attributes": [
- {
- "external_id": "attr1",
- "name": {
- "en-US": "Attribute"
}, - "values": [
- {
- "external_id": "val1",
- "value": "Value"
}, - {
- "external_id": "val2",
- "value": "Value"
}
]
}
], - "can_be_bought": true,
- "custom_attributes": {
- "attr": "value",
- "purchased": 0
}, - "description": "Crystals - short description",
- "groups": [ ],
- "inventory_options": {
- "consumable": {
- "usages_count": 1
}, - "expiration_period": null
}, - "is_free": false,
- "item_id": 451414,
- "limits": null,
- "name": "Crystals",
- "periods": [
- {
- "date_from": "2023-08-11T10:00:00+03:00",
- "date_until": "2023-08-11T20:00:00+03:00"
}
], - "price": {
- "amount": "100",
- "amount_without_discount": "100",
- "currency": "USD"
}, - "promotions": [ ],
- "sku": "com.xsolla.crystal_1",
- "type": "virtual_currency",
- "virtual_prices": [ ]
}