Xsolla-logo

Get codes by ID

get/v2/project/{project_id}/admin/items/game/key/request/id/{item_id}

Gets a certain number of codes by game key 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_id
required
string

Item ID.

Example: 656
query Parameters
user_email
required
string

User email.

Example: user_email=email@email.com
quantity
required
integer

Codes quantity.

Example: quantity=100
reason
required
string

Reason receiving codes.

Example: reason=Very important
region_id
integer
Default: 1

Region ID.

Responses
200

Codes were 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
text/plain
PIN-CODE-ALL PIN-CODE-ALL-3