curl --request POST \
--url http://localhost:8080/cabinet/admin/promo-offers/broadcast \
--header 'Content-Type: application/json' \
--data '
{
"notification_type": "<string>",
"valid_hours": 2,
"discount_percent": 0,
"bonus_amount_kopeks": 0,
"effect_type": "percent_discount",
"extra_data": {},
"target": "<string>",
"user_id": 123,
"telegram_id": 123,
"email": "<string>",
"send_notification": false,
"message_text": "<string>",
"button_text": "<string>"
}
'{
"created_offers": 123,
"user_ids": [
123
],
"target": "<string>",
"notifications_sent": 0,
"notifications_failed": 0
}Broadcast promo offer to users with optional Telegram notification.
curl --request POST \
--url http://localhost:8080/cabinet/admin/promo-offers/broadcast \
--header 'Content-Type: application/json' \
--data '
{
"notification_type": "<string>",
"valid_hours": 2,
"discount_percent": 0,
"bonus_amount_kopeks": 0,
"effect_type": "percent_discount",
"extra_data": {},
"target": "<string>",
"user_id": 123,
"telegram_id": 123,
"email": "<string>",
"send_notification": false,
"message_text": "<string>",
"button_text": "<string>"
}
'{
"created_offers": 123,
"user_ids": [
123
],
"target": "<string>",
"notifications_sent": 0,
"notifications_failed": 0
}1x >= 1x >= 0x >= 01User email (for email-only users)
Send Telegram notification to users
Custom message text (HTML)
Button text