Xsolla-logo

撤回物品库商品

post/v2/project/{project_id}/inventory/revoke

撤销对多个用户的商品访问权限。

注意:

一次只能处理50个操作。超出此限制的操作将被忽略。
SecuritybasicAuth
Request
path Parameters
project_id
required
integer
Default: 44056

项目ID。

Request Body schema: application/json
Array
required
object
id
string
Default: "d342dad2-9d59-11e9-a384-42010aa8003f"

平台上的唯一用户标识符。

required
Array of objects non-empty
Array (non-empty)
sku
required
string non-empty
Default: "booster_mega_1"

唯一商品ID。 SKU只能包含小写英文字母和数字字符、句点、破折号和下划线。

quantity
required
integer >= 1
Default: 1

需要撤销的此类商品数。

comment
string [ 1 .. 255 ] characters
Default: "Item was transferred to another player"

操作说明。例如:“商品已转移给另一个玩家”。

platform
string
Default: "xsolla"

用户玩游戏的发布平台。

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"
Responses
200

用户商品撤回成功。

404

无法删除此数量的商品。

Request samples
application/json
[
  • {
    }
]
Response samples
application/json
{
  • "count": 2,
  • "operations": [
    ]
}