# 消耗商品 客户端端点。从当前用户物品库中消耗一个商品。 Endpoint: POST /v2/project/{project_id}/user/inventory/item/consume Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) 项目ID。 ## Query parameters: - `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" ## Request fields (application/json): - `quantity` (number, required) 商品数量。 Example: 1 - `sku` (string, required) 唯一商品ID。 SKU只能包含大小写英文字母和数字字符、句点、破折号和下划线。 Example: "booster_mega_1" ## Response 404 fields (application/json): - `errorCode` (integer) Example: 4001 - `errorMessage` (string) Example: "[0401-4001]: Item with Project Id = 44056 and Sku = gun_5 not found" - `statusCode` (integer) Example: 404 ## Response 422 fields (application/json): - `errorCode` (integer) Example: 5002 - `errorMessage` (string) Example: "[0401-5002]: Quantity and item_id/sku must be specified" - `statusCode` (integer) Example: 422 ## Response 200 fields