curl --request POST \
--url http://localhost:8080/promo-offers \
--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": {}
}
'{
"id": 123,
"user_id": 123,
"notification_type": "<string>",
"discount_percent": 123,
"bonus_amount_kopeks": 123,
"expires_at": "2023-11-07T05:31:56Z",
"is_active": true,
"effect_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"subscription_id": 123,
"claimed_at": "2023-11-07T05:31:56Z",
"extra_data": {},
"user": {
"id": 123,
"telegram_id": 123,
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>"
},
"subscription": {
"id": 123,
"status": "<string>",
"is_trial": true,
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"autopay_enabled": true
}
}curl --request POST \
--url http://localhost:8080/promo-offers \
--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": {}
}
'{
"id": 123,
"user_id": 123,
"notification_type": "<string>",
"discount_percent": 123,
"bonus_amount_kopeks": 123,
"expires_at": "2023-11-07T05:31:56Z",
"is_active": true,
"effect_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"subscription_id": 123,
"claimed_at": "2023-11-07T05:31:56Z",
"extra_data": {},
"user": {
"id": 123,
"telegram_id": 123,
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>"
},
"subscription": {
"id": 123,
"status": "<string>",
"is_trial": true,
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"autopay_enabled": true
}
}1Срок действия предложения в часах
x >= 1x >= 1x >= 1x >= 0x >= 01Successful Response
Show child attributes
Show child attributes