Récupère une liste de packages monnaie virtuelle pour la constitution d'un catalogue.
project_id required | integer ID de projet. Ce paramètre se trouve dans le Compte éditeur à côté du nom du projet. Example: 44056 |
limit | integer Nombre maximal d'éléments sur une page. Example: limit=50 |
offset | integer Numéro de l'élément à partir duquel la liste est générée (le décompte commence à 0). Example: offset=0 |
locale | string Default: "en" Langue de la réponse. Code de langue à deux lettres minuscules selon la norme ISO 639-1. |
additional_fields[] | Array of strings The list of additional fields. These fields will be in the response if you send them in your request. |
country | string Code pays à deux lettres majuscules selon la norme ISO 3166-1 alpha-2. Consultez la documentation pour obtenir des informations détaillées sur les pays pris en charge par Xsolla et le processus de détermination du pays. Example: country=US |
promo_code | string [ 1 .. 128 ] characters Code unique sensible à la casse. Comprend des lettres et des chiffres. Example: promo_code=WINTER2021 |
show_inactive_time_limited_items | integer Default: 0 Affiche les objets à durée limitée qui ne sont pas disponibles pour l'utilisateur. La période de validité de ces objets n'ayant pas commencé ou ayant déjà expiré. Example: show_inactive_time_limited_items=1 |
La liste de packages de monnaie virtuelle a été reçue avec succès.
{- "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": [ ]
}
]
}