Xsolla-logo

Get list of promo code promotions

get/v2/project/{project_id}/admin/promocode

Gets the list of promo codes of a project.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
query Parameters
limit
integer

Limit for the number of elements on the page.

Example: limit=50
offset
integer

Number of the element from which the list is generated (the count starts from 0).

Example: offset=0
Responses
200

List of promo codes was successfully received.

401

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

Request samples
curl -i -X GET \
  -u <username>:<password> \
  'https://store.xsolla.com/api/v2/project/{project_id}/admin/promocode?limit=50&offset=0'
Response samples
application/json
{
  • "items": [
    ]
}