Xsolla-logo

按SKU获取可售商品

get/v2/project/{project_id}/items/sku/{sku}

按SKU获取可售商品以构建目录。

Request
path Parameters
project_id
required
integer

项目ID。

Example: 59080
sku
required
string

商品SKU。

Example: electric_shield
Responses
200

已成功接收可售商品。

404

未找到商品。请确保project_idsku正确无误。

Request samples
Response samples
application/json
{
  • "attributes": [ ],
  • "can_be_bought": true,
  • "description": "Electric shield",
  • "groups": [
    ],
  • "inventory_options": {
    },
  • "is_free": false,
  • "item_id": 259774,
  • "limits": {
    },
  • "name": "Electric shield",
  • "price": {
    },
  • "sku": "electric_shield",
  • "type": "virtual_good",
  • "virtual_item_type": "non_consumable",
  • "virtual_prices": []
}