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 |
인게임 재화를 성공적으로 수신했습니다.
curl -i -X GET \ 'https://store.xsolla.com/api/v2/project/{project_id}/items/virtual_currency/sku/{virtual_currency_sku}?locale=en&country=US&show_inactive_time_limited_items=1' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "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": [ ]
}