Xsolla-logo

Get promo code promotion

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

Gets a specified promo code promotion.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
external_id
required
integer

Promotion external ID. Unique promotion identifier within the project.

Example: coupon_44056_1
Responses
200

Promo code was successfully received.

401

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

404

Promo code not found. Make sure the external_id is correct.

Request samples
Response samples
application/json
{
  • "external_id": "summer20221",
  • "date_start": "2020-04-15T18:16:00+05:00",
  • "date_end": "2020-04-25T18:16:00+05:00",
  • "name": {
    },
  • "is_enabled": true,
  • "bonus": [
    ],
  • "redeem_user_limit": null,
  • "redeem_total_limit": 100,
  • "redeem_code_limit": 1,
  • "discount": [
    ],
  • "discounted_items": null,
  • "total_limit_state": {
    }
}