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.
Promo code was successfully activated.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Promocode not found. Make sure the external_id
is correct.
Error occurred while receiving the promotion from the promotion service.
curl -i -X PUT \ -u <username>:<password> \ 'https://store.xsolla.com/api/v2/project/{project_id}/admin/promocode/{external_id}/activate'
{- "statusCode": 401,
- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}