Gets a virtual currency by SKU for building a catalog.
project_id required | integer ID do projeto. Você pode encontrar esse parâmetro em sua Conta de Distribuidor ao lado do nome do projeto. Example: 44056 |
virtual_currency_sku required | string SKU de moeda virtual. Example: crystal |
locale | string Default: "en" Linguagem de resposta. Código de idioma minúsculo de duas letras de acordo com o padrão 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 Exibe itens de tempo limitado que não estão disponíveis para o usuário. O prazo de validade desses itens não começou ou já expirou. Example: show_inactive_time_limited_items=1 |
A moeda virtual foi recebida com sucesso.
{- "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": [ ]
}