Xsolla-logo

Decrease number of items available to specified user

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

Decreases 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

Project ID.

Example: 44056
item_sku
required
string

Item SKU.

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

User external ID.

available
required
integer

Remaining number of items or promotion uses available to the user within the limit applied.

Responses
200

Purchase limits for a user were successfully received.

401

Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.

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