# 减少指定用户可购的商品数量 减少指定用户在应用的限制范围内可购的剩余商品数量。 用户限制API允许您限量销售商品。要配置购买限制,请前往所需商品类型模块的管理部分: * 游戏密钥 * 虚拟物品和货币 * 捆绑包 Endpoint: DELETE /v2/project/{project_id}/admin/user/limit/item/sku/{item_sku} Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 - `item_sku` (string, required) 商品SKU。 Example: "booster_mega_1" ## Request fields (application/json): - `available` (integer, required) 在应用的限制数内用户可购的剩余商品数或可用的促销活动次数。 - `user` (object, required) - `user.user_external_id` (string, required) 用户外部ID。 ## Response 200 fields (application/json): - `per_user` (object) - `per_user.available` (integer) 用户可以购买的剩余商品数量。 Example: 9 - `per_user.total` (integer) 用户可以购买的最大商品数量。 Example: 10 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 404 fields (application/json): - `errorCode` (integer) - `errorMessage` (string) - `statusCode` (integer) - `transactionId` (string) ## Response 422 fields (application/json): - `errorCode` (integer) - `errorMessage` (string) - `errorMessageExtended` (array) - `statusCode` (integer) - `transactionId` (string)