Xsolla-logo

Activate promo code promotion

put/v2/project/{project_id}/admin/promocode/{external_id}/activate

Activates a promo code promotion.

Created promo code promotion is disabled by default. It will not be ready for redemption until you activate it. Use this endpoint to enable and activate a 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
204

Promo code was successfully activated.

401

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

404

Promocode not found. Make sure the external_id is correct.

422

Error occurred while receiving the promotion from the promotion service.

Request samples
curl -i -X PUT \
  -u <username>:<password> \
  'https://store.xsolla.com/api/v2/project/{project_id}/admin/promocode/{external_id}/activate'
Response samples
application/json
{
  • "statusCode": 401,
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}