Xsolla-logo

Add Coupon to Campaign

post/merchants/{merchant_id}/coupon_promotions/{campaign_id}/coupons

Add a coupon code to a coupon campaign.

Notice

This API call does not contain the project_id path-parameter, so you need to use the API key that is valid in all the company’s projects to set up authorization.

SecuritybasicAuth
Request
path Parameters
merchant_id
required
integer

Merchant ID.

campaign_id
required
integer

Campaign ID.

Request Body schema: application/json
coupon_code
required
string

Coupon code.

Responses
204

No content.

Request samples
application/json
{
  • "coupon_code": "34bryrb3"
}