curl --request POST \
--url http://localhost:8080/promo-offers/broadcast \
--header 'Content-Type: application/json' \
--data '
{
"notification_type": "<string>",
"valid_hours": 2,
"user_id": 2,
"telegram_id": 2,
"discount_percent": 0,
"bonus_amount_kopeks": 0,
"subscription_id": 123,
"effect_type": "percent_discount",
"extra_data": {},
"target": "<string>"
}
'{
"created_offers": 123,
"user_ids": [
123
],
"target": "<string>"
}curl --request POST \
--url http://localhost:8080/promo-offers/broadcast \
--header 'Content-Type: application/json' \
--data '
{
"notification_type": "<string>",
"valid_hours": 2,
"user_id": 2,
"telegram_id": 2,
"discount_percent": 0,
"bonus_amount_kopeks": 0,
"subscription_id": 123,
"effect_type": "percent_discount",
"extra_data": {},
"target": "<string>"
}
'{
"created_offers": 123,
"user_ids": [
123
],
"target": "<string>"
}1Срок действия предложения в часах
x >= 1x >= 1x >= 1x >= 0x >= 01Категория пользователей для рассылки. Поддерживает те же сегменты, что и API рассылок (all, active, trial, custom_today и т.д.).