Xsolla-logoXsolla Developers
前往发布商帐户

将优惠券活动添加至促销活动Server-sideAdmin

put/merchants/{merchant_id}/promotions/{promotion_id}/coupons

将优惠券活动附加到特定促销活动。

注意

此API调用不包含project_id路径参数,因此您需要使用在您公司的所有项目中都有效的API密钥来设置授权。

SecuritybasicAuth
Request
path Parameters
merchant_id
required
integer

商户ID。

promotion_id
required
integer

促销活动 ID。

Request Body schema: application/json
campaigns
required
Array of integers

优惠券活动ID数组。

Responses
204

No content.

Request samples
application/json
{
  • "campaigns": [
    ]
}