Xsolla-logoXsolla Developers
前往发布商帐户

删除优惠券促销活动Server-sideAdmin

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

Deletes coupon promotion. The deleted promotion:

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

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

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

项目ID。您可以在您的发布商帐户项目名称旁边找到。

Example: 44056
external_id
required
integer

促销活动外部ID。项目内的唯一促销活动标识符。

Example: coupon_44056_1
Responses
204

优惠券促销活动成功删除。

401

基本认证未通过或错误。确保您使用了基本认证或正确的凭据。

404

未找到优惠券。请确保external_id正确无误。

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