Skip to main content
GET
/
promo-offers
/
{offer_id}
Get Promo Offer Endpoint
curl --request GET \
  --url http://localhost:8080/promo-offers/{offer_id}
{
  "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
  }
}

Path Parameters

offer_id
integer
required

Response

Successful Response

id
integer
required
user_id
integer
required
notification_type
string
required
discount_percent
integer
required
bonus_amount_kopeks
integer
required
expires_at
string<date-time>
required
is_active
boolean
required
effect_type
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
subscription_id
integer | null
claimed_at
string<date-time> | null
extra_data
Extra Data · object
user
PromoOfferUserInfo · object
subscription
PromoOfferSubscriptionInfo · object