Skip to main content
POST
/
notifications
/
subscriptions
Receive Subscription Event
curl --request POST \
  --url http://localhost:8080/notifications/subscriptions \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_type": "activation",
  "user_id": 2,
  "subscription_id": 2,
  "transaction_id": 2,
  "amount_kopeks": 1,
  "currency": "<string>",
  "message": "<string>",
  "occurred_at": "2023-11-07T05:31:56Z",
  "extra": {}
}
'
{
  "id": 123,
  "event_type": "<string>",
  "user_id": 123,
  "user_full_name": "<string>",
  "occurred_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "user_username": "<string>",
  "user_telegram_id": 123,
  "subscription_id": 123,
  "transaction_id": 123,
  "amount_kopeks": 123,
  "currency": "<string>",
  "message": "<string>",
  "extra": {}
}

Body

application/json
event_type
enum<string>
required
Available options:
activation,
purchase,
renewal,
balance_topup,
promocode_activation,
referral_link_visit,
promo_group_change
user_id
integer
required
Required range: x >= 1
subscription_id
integer | null
Required range: x >= 1
transaction_id
integer | null
Required range: x >= 1
amount_kopeks
integer | null
Required range: x >= 0
currency
string | null
Required string length: 1 - 16
message
string | null
Maximum string length: 2000
occurred_at
string<date-time> | null
extra
Extra · object

Response

Successful Response

id
integer
required
event_type
string
required
user_id
integer
required
user_full_name
string
required
occurred_at
string<date-time>
required
created_at
string<date-time>
required
user_username
string | null
user_telegram_id
integer | null
subscription_id
integer | null
transaction_id
integer | null
amount_kopeks
integer | null
currency
string | null
message
string | null
extra
Extra · object