Xsolla-logo

Get item promotion

get/v2/project/{project_id}/admin/promotion/{promotion_id}/item

Gets the promotion applied to particular items.

Promotions provide a discount (%) on items. The discount will be applied to all prices of the specified items.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
promotion_id
required
integer

Promotion ID. Unique promotion identifier within the project.

Example: 111425
Responses
200

Item promotion was successfully received.

401

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

404

Promotion not found. Make sure promotion_id is correct.

Request samples
curl -i -X GET \
  -u <username>:<password> \
  'https://store.xsolla.com/api/v2/project/{project_id}/admin/promotion/{promotion_id}/item'
Response samples
application/json
{
  • "id": 1,
  • "date_start": "2020-04-15T18:16:00+05:00",
  • "date_end": "2020-04-25T18:16:00+05:00",
  • "is_enabled": true,
  • "discount": {
    },
  • "items": [
    ],
  • "name": {
    }
}