Create a new coupon block
1 min
POST
https://api.campaign.episerver.net/rest/{clientId}/couponblocks
clientIdinteger<int64>Client ID
acceptstringGenerated from available response content types
couponSourcestring<static | generated | ean13barcode | twooffivebarcode | code128barcode | code128abarcode | code128bbarcode | code128cbarcode>Coupon source of the coupon block
useRealCodesForTestMailsboolean<p>If true, valid codes for test mails are used</p>
namestringInternal name of the coupon block
201The coupon block was created successfully.
curl --request POST \
--url https://api.campaign.episerver.net/rest/{clientId}/couponblocks \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'couponSource=static' \
--data 'name=string'