Xsolla-logo
  • 文档
  • 创建帐户

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

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

删除优惠券促销活动。删除的促销活动将:

  • 从您项目中设置的促销活动列表中消失。
  • 不再适用于商品目录。用户无法通过该促销活动获得奖励商品。

删除后,该促销活动无法恢复。 已删除促销活动的优惠券代码可以添加到现有的促销活动。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

项目编号。您可以在您的发布商帐户项目名称旁边。

Example: 44056
external_id
required
integer

Promotion external ID. Unique promotion identifier within the project.

Example: coupon_44056_1
Responses
204

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

401

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

404

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

Request samples
Response samples
application/json
{
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred",
  • "statusCode": 401
}