Xsolla-logo

Delete promo code promotionServer-sideAdmin

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

Deletes promo code promotion. The deleted promotion:

  • Disappears from the list of promotions set up in your project.
  • Is no longer applied to the item catalog and the cart. User can’t get bonus items or purchase items using this promotion.

After deletion, the promotion can’t be restored. Promo codes from the deleted promotion can be added to existing promotions.

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
external_id
required
integer

Promotion external ID. Unique promotion identifier within the project.

Example: coupon_44056_1
Responses
204

Promo code promotion was successfully deleted.

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
{
  • "statusCode": 401,
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred"
}