Create a coupon request.
1 min
POST
https://api.b.preview.loyaltyservices.io/api/v3/coupon-requests
activateCouponsbooleanWhen set to true all of the generated coupons will be activated
useCouponsboolean<p>When set to true, all generated coupons are marked as used. This requires activateCoupons to be enabled, the coupon request type to be Award, and a member identifier to be provided.</p>
asyncboolean<p>Submits the operation for background processing and returns a ‘202 Accepted’ response
along with an identifier to track the processing status.
Requires the "api:async-task</p><div></div>" scope.<p></p>
acceptstringGenerated from available response content types
bodyobjectCreate coupon request object
200Success
202Accepted
400Bad request
401Unauthorized
403Forbidden
500Internal error
curl --request POST \
--url 'https://api.b.preview.loyaltyservices.io/api/v3/coupon-requests?activateCoupons=boolean&useCoupons=boolean&async=boolean' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"offerCode": "Offer12345",
"name": "",
"expirationType": "Rolling",
"useTypeCode": "Single",
"couponRequestType": "Bulk",
"couponCount": 1,
"attributes": [
{
"name": "site_tier",
"value": 123
}
]
}'