Xsolla-logo

Create bundle

post/v2/project/{project_id}/admin/items/bundle

Creates a bundle.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
Request Body schema: application/json

Object with bundle data.

sku
required
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$

Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores.

required
object

Object with localizations for item's name. Two-letter lowercase language code.

required
object

Object with localizations for item's description. Two-letter lowercase language code.

groups
Array of strings
Default: []

Groups the item belongs to.

Array of objects <= 20 items

List of attributes.

Attention. You can't specify more than 20 attributes for the item. Any attempts to exceed the limit result in an error.
object

Object with localizations for long description of item. Two-letter lowercase language code.

image_url
string or null

Image URL.

Array of objects

Prices in real currencies.

Array of objects or null
Array of objects non-empty
is_enabled
boolean
Default: true

If disabled, the item can't be found and purchased.

is_show_in_store
boolean
Default: false

Item is available for purchase.

Array of objects or null

Bundle's additional assets.

order
integer
Default: 1

Bundle's order priority in the list.

Array of objects
Responses
201

Bundle was successfully created.

401

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

422

Invalid request.

Request samples
application/json
{
  • "sku": "armour_chest",
  • "name": {
    },
  • "is_enabled": true,
  • "is_free": true,
  • "order": 1,
  • "long_description": {
    },
  • "description": {
    },
  • "media_list": [],
  • "groups": [
    ],
  • "attributes": {
    },
  • "prices": [
    ],
  • "vc_prices": null,
  • "content": [
    ]
}
Response samples
application/json
{
  • "sku": "kg_1"
}