Skip to main content
POST
/
cabinet
/
balance
/
stars-invoice
Create Stars Invoice
curl --request POST \
  --url http://localhost:8080/cabinet/balance/stars-invoice \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount_kopeks": 1000000050
}
'
{
  "invoice_url": "<string>",
  "stars_amount": 123,
  "amount_kopeks": 123
}

Body

application/json

Request to create Telegram Stars invoice for balance top-up.

amount_kopeks
integer
required

Amount in kopeks (min 1 ruble)

Required range: 100 <= x <= 2000000000

Response

Successful Response

Response with Telegram Stars invoice link.

invoice_url
string
required
stars_amount
integer
required
amount_kopeks
integer
required