Obtiene un artículo vendible por código de artículo (SKU) para crear un catálogo.
project_id required | integer ID del proyecto. Encontrará este parámetro en su Cuenta del editor junto al nombre del proyecto. Example: 59080 |
sku required | string Item SKU. Example: electric_shield |
El artículo vendible se recibió correctamente.
Artículo no encontrado. Asegúrese de que el project_id
y el sku
sean correctos.
curl -i -X GET \ 'https://store.xsolla.com/api/v2/project/{project_id}/items/sku/{sku}?promo_code=WINTER2021&show_inactive_time_limited_items=1' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{- "attributes": [ ],
- "can_be_bought": true,
- "custom_attributes": {
- "attr": "value",
- "purchased": 0
}, - "description": "Electric shield",
- "groups": [
- {
- "external_id": "armour",
- "name": "Armour"
}
], - "inventory_options": {
- "consumable": null,
- "expiration_period": null
}, - "is_free": false,
- "item_id": 259774,
- "limits": {
- "per_user": {
- "available": 3,
- "recurrent_schedule": {
- "interval_type": "weekly",
- "reset_next_date": 1746057600
}, - "total": 5
}
}, - "name": "Electric shield",
- "price": {
- "amount": "9.99",
- "amount_without_discount": "9.99",
- "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": "electric_shield",
- "type": "virtual_good",
- "virtual_item_type": "non_consumable",
- "virtual_prices": [
- {
- "amount": 10,
- "amount_without_discount": 10,
- "calculated_price": {
- "amount": "10.00",
- "amount_without_discount": "10.00"
}, - "description": null,
- "is_default": true,
- "item_id": 259765,
- "name": "Gold",
- "sku": "gold",
- "type": "virtual_currency"
}, - {
- "amount": 20,
- "amount_without_discount": 20,
- "calculated_price": {
- "amount": "20.00",
- "amount_without_discount": "20.00"
}, - "description": null,
- "is_default": false,
- "item_id": 259766,
- "name": "Silver",
- "sku": "silver",
- "type": "virtual_currency"
}, - {
- "amount": 200,
- "amount_without_discount": 200,
- "calculated_price": {
- "amount": "200.00",
- "amount_without_discount": "200.00"
}, - "description": null,
- "is_default": false,
- "item_id": 259767,
- "name": "Bronze",
- "sku": "bronze",
- "type": "virtual_currency"
}
], - "vp_rewards": [
- {
- "amount": 130,
- "item_id": 175232,
- "name": "Value point",
- "sku": "value_point_1"
}, - {
- "amount": 50,
- "is_clan": true,
- "item_id": 186321,
- "name": "Clan Reward VP 1",
- "sku": "clan_value_point_sku_1"
}
]
}