Skip to main content
POST
/
cabinet
/
admin
/
promo-offers
/
broadcast
Broadcast Offer
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
}

Body

application/json
notification_type
string
required
Minimum string length: 1
valid_hours
integer
required
Required range: x >= 1
discount_percent
integer
default:0
Required range: x >= 0
bonus_amount_kopeks
integer
default:0
Required range: x >= 0
effect_type
string
default:percent_discount
Minimum string length: 1
extra_data
Extra Data · object
target
string | null
user_id
integer | null
telegram_id
integer | null
email
string | null

User email (for email-only users)

send_notification
boolean
default:false

Send Telegram notification to users

message_text
string | null

Custom message text (HTML)

button_text
string | null

Button text

Response

Successful Response

created_offers
integer
required
user_ids
integer[]
required
target
string | null
notifications_sent
integer
default:0
notifications_failed
integer
default:0