Xsolla-logo

Get list of promo code promotionsServer-sideAdmin

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. You can find this parameter in your Publisher Account next to the name of the project.

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
Response samples
application/json
{
  • "items": [
    ],
  • "total_promotions_count": 2,
  • "active_promotions_count": 2,
  • "inactive_promotions_count": 0
}