Migrated from Redmine #1508 | Author: Tim Müller
Status: Feedback | Priority: High, I’m very impatient | Created: 2026-01-06
Hi all,
is there any api endpoint which allows to create a coupon via API call? that would be very helpful.
Migrated from Redmine #1508 | Author: Tim Müller
Status: Feedback | Priority: High, I’m very impatient | Created: 2026-01-06
Hi all,
is there any api endpoint which allows to create a coupon via API call? that would be very helpful.
Tim Müller wrote:
sorry just realized I opened as a bug instead of feature… can’t change it anymore…
Val Komarov wrote:
Hi, this method is not mentioned in the documentation, so use it at your own risk
It is possible to create a coupon via admin JSON RPC API, method @savePromotionDetails@ , parameters are passed as array as usual, first parameter takes coupon data.
For example
"method":"savePromotionDetails",
"params":[
{
"name": "Coupon via API",
"description": "Created via API",
"is_visible": "1",
"promotion_type": "discount",
"discount_type": "percentage",
"discount": "4.0",
"code": "MYCOUPON123",
"start_date": "2026-03-01",
"expired_date": "2026-03-31"
}
]
Tim Müller wrote:
Hi Val,
Thanks a l lot for your feedback, much appreciated! ![]()
is there as well the possibility to add the booking restriction start/end date and start end time?