Xsolla-logoXsolla Developers
or
To Publisher Account

Add quantity to item pre-order limitServer-sideAdmin

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

Add quantity to 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}
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
quantity
required
integer

Quantity to add.

Responses
201

The quantity to limit was successfully added.

401

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

404

Item not found.

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