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

指定されたユーザが利用できるアイテムの数を取得するServer-sideAdmin

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

Gets 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
query Parameters
user_external_id
required
string

ユーザーexternal ID

Example: user_external_id=d342dad2-9d59-11e9-a384-42010aa8003f
Responses
200

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

401

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

404

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

422

無効なリクエストです。

Request samples
curl -i -X GET \
  -u <merchant_id_or_project_id>:<api_key> \
  'https://store.xsolla.com/api/v2/project/{project_id}/admin/user/limit/item/sku/{item_sku}?user_external_id=d342dad2-9d59-11e9-a384-42010aa8003f'
Response samples
application/json
{
  • "per_user": {
    }
}