SendPushDto
recipientTypestringrequired
Тип владельца (user / client / staff)
Possible values: [user, client, staff]
recipientIdnumberrequired
ID получателя (userId / clientId / staffId)
Example:
1titlestringrequired
Заголовок пуш уведомления
Example:
Напоминание о визитеbodystringrequired
Тело пуш уведомления
Example:
Ваш визит через 1 час. Стрижка у Марии в Beauty SalonimageUrlstring
URL изображения (для rich push)
Example:
https://example.com/image.jpgactionUrlstring
Deep link при нажатии на уведомление
Example:
/bookings/123typestringrequired
Тип пуш уведомления
Possible values: [booking_confirmation, booking_reminder, booking_cancellation, booking_rescheduled, payment_receipt, new_booking_staff, cancellation_staff, promotional, system, custom, billing_payment_failed]
Example:
booking_reminderdataobject
Дополнительные данные (передаются в FCM data payload)
Example:
{"bookingId":"123","screen":"booking_detail"}businessIdnumber
ID бизнеса (для логирования)
SendPushDto
{
"recipientType": "user",
"recipientId": 1,
"title": "Напоминание о визите",
"body": "Ваш визит через 1 час. Стрижка у Марии в Beauty Salon",
"imageUrl": "https://example.com/image.jpg",
"actionUrl": "/bookings/123",
"type": "booking_reminder",
"data": {
"bookingId": "123",
"screen": "booking_detail"
},
"businessId": 0
}