# 获取当前用户物品库 客户端端点。检索当前用户物品库。 注意:所有项目对于可以在响应中获得的商品数量均都限制。默认值和最大值是每个响应50项。要逐页获取更多数据,请使用limit和offset字段。 Endpoint: GET /v2/project/{project_id}/user/inventory/items Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) 项目编号。您可以在您的发布商帐户项目名称旁边。 Example: 44056 ## Query parameters: - `limit` (integer) 页面上元素数量的限制。 Example: 50 - `offset` (integer) 元素编号,从该元素开始生成列表(从0开始数)。 - `platform` (string) 用户玩游戏的发布平台。 Enum: "playstation_network", "xbox_live", "xsolla", "pc_standalone", "nintendo_shop", "google_play", "app_store_ios", "android_standalone", "ios_standalone", "android_other", "ios_other", "pc_other" ## Response 200 fields (application/json): - `items` (array) Example: [{"attributes":[],"description":"Big Rocket - short description","groups":[],"image_url":"https://picture.bigrocket.png","instance_id":null,"name":"Rocket","quantity":null,"remaining_uses":1,"sku":"com.xsolla.instanciated_item_1","type":"virtual_good","virtual_item_type":"non_consumable"},{"attributes":[],"description":"description","groups":[],"image_url":"http://image.png","instance_id":null,"name":"SHOTGUN FOR TRUE RAIDERS","quantity":2,"remaining_uses":1,"sku":"com.xsolla.shotgun_raider_1","type":"virtual_good","virtual_item_type":"non_consumable"},{"attributes":[{"external_id":"stack_size","name":"Stack size","values":[{"external_id":"stack_size_value_99c25352ab6e34a0e0755fc2a9daa7a76021dce2","value":5}]},{"external_id":"licensed","name":"Licensed","values":[{"external_id":"licensed_value_d75d8034dd2f82cb3d2789f5ec1837a6c350b505","value":true}]}],"description":null,"groups":[],"image_url":null,"instance_id":null,"name":"HEADPHONES","quantity":5,"remaining_uses":1,"sku":"com.xsolla.headphones_for_pro_1","type":"virtual_good","virtual_item_type":"non_consumable"},{"attributes":[],"description":null,"groups":[],"image_url":null,"instance_id":null,"name":"UNIQUE DIAMONDS","quantity":100,"remaining_uses":1,"sku":"com.xsolla.platform_currency_1","type":"virtual_currency"}] - `items.attributes` (array) 与商品对应的属性及其值的列表。可用于目录筛选。 Example: {"value":{"external_id":"genre","name":"Жанр","values":[{"external_id":"genre_e3364991f92e751689a68b96598a5a5a84010b85","value":"Casual"},{"external_id":"genre_eba07bfd0f982940773cba3744d97264dd58acd7","value":"Strategy"},{"external_id":"genre_b8d0c6d8f0524c2b2d79ebb93aa3cd0e8b5199a8","value":"Mobile"}]}} - `items.attributes.external_id` (string) 唯一属性ID。 external_id只能包含大小写英文字母和数字字符、破折号和下划线。 Example: "attribute_1" - `items.attributes.name` (string) 属性名称。 Example: "Genre" - `items.attributes.values` (array) - `items.attributes.values.external_id` (string) 属性的唯一值ID。 external_id只能包含小写英文字母和数字字符、破折号和下划线。 Example: "attribute_value" - `items.attributes.values.value` (string) 属性值。 Example: "Strategy" - `items.description` (string) 商品描述。 Example: "Big Rocket - short description" - `items.groups` (array) 商品所属分组。 Example: [{"external_id":"accessory","name":"Accessory"}] - `items.groups.external_id` (string) Example: "accessory" - `items.groups.name` (string) Example: "Accessory" - `items.image_url` (string) 图像URL。 Example: "https://picture.bigrocket.png" - `items.name` (string) 商品名称。 Example: "Rocket" - `items.quantity` (integer,null) 商品数量。 - `items.remaining_uses` (integer,null) 定义消耗品属性:如果为消耗品,则为剩余使用次数,如果为非消耗品,则为null。 Example: 1 - `items.sku` (string) 唯一商品ID。 SKU只能包含大小写英文字母和数字字符、句点、破折号和下划线。 Example: "com.xsolla.instanciated_item_1" - `items.type` (string) 商品类型:consumable/expiration/permanent/lootboxes/physical。 Example: "virtual_good" - `items.virtual_item_type` (string,null) 虚拟物品的类型。 Enum: "consumable", "non_consumable", "non_renewing_subscription" - `items.instance_id` (null) 淘汰的参数。始终为null。