Xsolla-logoXsolla Developers
or
To Publisher Account

Toggle item's pre-order limitServer-sideAdmin

put/v2/project/{project_id}/admin/items/pre_order/limit/item/sku/{item_sku}/toggle

Enable/disable pre-order limit of the item.

Pre-Order limit API allows you to sell an item in a limited quantity. For configuring the pre-order itself, go to the admin section of the desired item module:

Aliases for this endpoint:

  • /v2/project/{project_id}/admin/items/pre_order/limit/item/id/{item_id}/toggle
SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

Example: 44056
item_sku
required
string

Item SKU.

Example: booster_mega_1
Request Body schema: application/json
is_pre_order_limit_enabled
required
boolean
Responses
204

The limit has been disabled/enabled.

401

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

404

Item not found.

Request samples
application/json
{
  • "is_pre_order_limit_enabled": true
}
Response samples
application/json
{
  • "statusCode": 401,
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}