post https://api.swoogo.com/api/v1/discounts/create
Log in to see full request history
Responses
xxxxxxxxxx
curl --request POST \
--url https://api.swoogo.com/api/v1/discounts/create \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data type=percentage
xxxxxxxxxx
14{
"event_id": 12345,
"code": "SPRINGSALE2024",
"type": "percentage",
"percentage_discount": 15,
"absolute_discount": 25.5,
"apply_to_all": true,
"capacity": 10,
"min_group_size": 5,
"registrants_per_use": 2,
"all_registrants_in_group": true,
"notes": "Discount for early bird registrants.",
"sold_out_message": "SPRINGSALE2024 has been used too many times."
}