Xsolla-logo

Upload codesServer-sideAdmin

post/v2/project/{project_id}/admin/items/game/key/upload/sku/{item_sku}

Uploads codes by game key SKU.

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: multipart/form-data
file
required
string <binary>

File with codes.

region_id
integer

Region ID.

Responses
200

Codes loading session information was successfully received.

401

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

404

Game key or region not found.

Request samples
Response samples
application/json
{
  • "session_id": "fc7105b6e8ee01339582970b37697242",
  • "count_uploaded": 0,
  • "count_total": 100,
  • "count_skipped": 10,
  • "status": "processing"
}