Xsolla-logoXsolla Developers
または
パブリッシャーアカウントへ

指定したユーザーが使用できるアイテムの数を増やすServer-sideAdmin

post/v2/project/{project_id}/admin/user/limit/item/sku/{item_sku}

Increases the remaining number of items available to the specified user within the limit applied.

User limit API allows you to sell an item in a limited quantity. To configure the purchase limits, go to the Admin section of the desired item type module:

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

プロジェクトID。このパラメータは、ドメインページのプロジェクト名の横にあります。

Example: 44056
item_sku
required
string

アイテムSKU。

Example: booster_mega_1
Request Body schema: application/json
required
object
user_external_id
required
string non-empty ^\S+$

ユーザーexternal ID。

available
required
integer >= 1

適用された制限内でユーザーが利用できる残りのアイテム数またはプロモーション利用回数。

Responses
200

ユーザーの購入制限が正常に受信されました。

401

基本認証が不合格または不正です。基本認証または正しい認証情報を使用したことを確認してください。

404

アイテムが見つかりません。

422

無効なリクエストです。

Request samples
application/json
{
  • "available": 1,
  • "user": {
    }
}
Response samples
application/json
{
  • "per_user": {
    }
}