Buy Telegram products for any Telegram user straight from your SwapWallet balance.
Every purchase is one call: the payment is taken from your balance at once, delivery to the Telegram account follows automatically, and the result is a PAYMENT transaction.
| Product | Paid in | Price |
|---|---|---|
| Stars | USDT | From Shop prices |
| Premium | USDT | From Shop prices |
| Ads top-up | TON | The amount plus a fee of 1 TON + 1% |
Paying from your balance counts toward your crypto withdrawal limits, and the 72-hour rule applies to it (see Crypto withdrawals). Premium for your own Telegram account is the exception: it can be paid with crypto still under that rule.
The Telegram username isn’t checked before payment. If delivery fails, for example because the username doesn’t exist, contact support; a refund comes back as a CREDIT transaction of type JETTON_REFUND.
The bill behind each purchase. Every Telegram purchase creates one and pays it at once; the payment transaction carries it as payment.invoice.
idintegerRequiredInvoice ID.
supportCodestringRequiredCode to quote to support.
statusenumRequiredWhere the invoice stands.
Possible values
PENDINGWaiting for payment.PAIDPaid.DELIVEREDPaid and the product delivered.EXPIREDNot paid before expiredAt.CANCELEDCanceled.titlestringRequiredMachine-readable product title, such as TELEGRAM_STARS, TELEGRAM_PREMIUM or TELEGRAM_ADS.
readableTitlestringnullableProduct title in your account’s language.
typeenumRequiredWhat the invoice is for.
Possible values
JETTONTelegram Premium or Stars from the shop.TELEGRAM_ADSA Telegram Ads top-up.SHOP_ORDERAn order from the SwapWallet shop.GIFT_CARDA gift card.EXTERNAL_APPLICATIONA payment to a merchant’s payment gateway.GIVEAWAYA giveaway.AD_CHEQUEAn ad cheque.AD_CHEQUE_TOP_UPAn ad cheque top-up.HONGBAO_PACKETA red-envelope (hongbao) packet.EXTRA_USER_WALLETAn extra wallet for your account.AI_CREDITAI credit.amountMoneyRequiredAmount to pay, fee included.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
valueMoneyRequiredamount in Toman (IRT).
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
allowedPaymentTokensarray of stringsRequiredTokens the invoice accepts in the app.
allowedLockedFundsbooleanRequiredWhether the invoice may be paid with crypto still held by the 72-hour rule (see Crypto withdrawals).
feeMoneyRequiredFee included in amount.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
createdAtISO 8601 timestampRequiredWhen the invoice was created.
expiredAtISO 8601 timestampnullablePayment deadline.
paidWithMoneynullableWhat it was paid with. null until paid.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
paidAtISO 8601 timestampnullableWhen it was paid. null until then.
originalAmountMoneynullableAmount before a discount code. null without one.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
discountAmountMoneynullableDiscount applied. null without one.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
discountCodestringnullableDiscount code applied. null without one.
{
"id": 98251,
"supportCode": "NN-7KQ2M4D-XR3T",
"status": "PAID",
"title": "TELEGRAM_ADS",
"readableTitle": "شارژ تبلیغات تلگرام",
"type": "TELEGRAM_ADS",
"amount": {
"number": "21.2",
"unit": "TON"
},
"value": {
"number": "5659340",
"unit": "IRT"
},
"allowedPaymentTokens": [
"USDT",
"IRT",
"TON"
],
"allowedLockedFunds": false,
"fee": {
"number": "1.2",
"unit": "TON"
},
"createdAt": "2026-11-20T11:20:00.204517Z",
"expiredAt": "2026-11-20T11:23:00.204517Z",
"paidWith": {
"number": "21.2",
"unit": "TON"
},
"paidAt": "2026-11-20T11:20:41.506930Z",
"originalAmount": null,
"discountAmount": null,
"discountCode": null
}/v1/shop/telegram/starsBuys Telegram Stars for a Telegram user and pays for them from your USDT balance at once. The stars are then delivered to that account automatically.
The counts you can buy are the TG-STARS-{count} products in List shop prices.
usernamestringRequiredTelegram username of the recipient, without the @.
countintegerRequiredNumber of stars.
Returns the Transaction object of the payment, with type PAYMENT.
PRODUCT_NOT_FOUNDThere is no product for this count.
INSUFFICIENT_USER_BALANCEYour USDT balance doesn’t cover the price.
USER_BALANCE_LOCKEDThe USDT needed is still under the 72-hour rule.
LIMIT_DAILY_WITHDRAW_EXCEEDEDOver your daily crypto withdrawal limit, which payments count toward.
SHOP_CLOSED_FOR_USERThe shop isn’t available for this account. Accounts created in Telegram need an Iranian phone number on them.
curl -X POST https://swapwallet.app/api/v1/shop/telegram/stars \
-H "Authorization: Bearer $SWAPWALLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "maryam_kz",
"count": 100
}'const response = await fetch('https://swapwallet.app/api/v1/shop/telegram/stars', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SWAPWALLET_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
username: 'maryam_kz',
count: 100,
}),
});
const data = await response.json();
console.log(data.result);import os
import requests
response = requests.post(
"https://swapwallet.app/api/v1/shop/telegram/stars",
headers={"Authorization": f"Bearer {os.environ['SWAPWALLET_API_KEY']}"},
json={
"username": "maryam_kz",
"count": 100,
},
)
print(response.json()["result"])<?php
$ch = curl_init('https://swapwallet.app/api/v1/shop/telegram/stars');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SWAPWALLET_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'username' => 'maryam_kz',
'count' => 100,
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['result']);package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{
"username": "maryam_kz",
"count": 100
}`)
req, _ := http.NewRequest("POST", "https://swapwallet.app/api/v1/shop/telegram/stars", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("SWAPWALLET_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}{
"status": "OK",
"result": {
"id": 3053015,
"supportCode": "SW-HCPDS6V-PWAN",
"timestamp": 1795172709000,
"type": "PAYMENT",
"status": "SUCCEED",
"network": "INTERNAL",
"exchangeFee": {
"number": "0",
"unit": "USDT"
},
"payment": {
"invoice": {
"id": 98214,
"supportCode": "NN-2HFN9B9-NK8R",
"status": "PAID",
"title": "TELEGRAM_STARS",
"readableTitle": "تلگرام استارز",
"type": "JETTON",
"amount": {
"number": "1.65",
"unit": "USDT"
},
"value": {
"number": "449460",
"unit": "IRT"
},
"allowedPaymentTokens": [
"USDT",
"IRT",
"TON"
],
"allowedLockedFunds": false,
"fee": {
"number": "0",
"unit": "USDT"
},
"createdAt": "2026-11-20T11:05:08.912344Z",
"expiredAt": "2026-11-20T11:08:08.912344Z",
"paidWith": {
"number": "1.65",
"unit": "USDT"
},
"paidAt": "2026-11-20T11:05:09.130557Z",
"originalAmount": null,
"discountAmount": null,
"discountCode": null
},
"amount": {
"number": "1.65",
"unit": "USDT"
},
"value": {
"number": "1.65",
"unit": "USD"
},
"userCurrencyValue": {
"number": "449460",
"unit": "IRT"
}
}
}
}/v1/shop/telegram/adsTops up a Telegram Ads account and pays for it from your TON balance at once. The account is then credited with the amount you asked for.
You pay the amount plus a fee of 1 TON + 1% of the amount: for 20 TON, that’s 21.2 TON.
accountstringRequiredTelegram Ads account ID, from the Telegram Ads platform.
amountMoneyRequiredTop-up amount, in TON, without the fee.
numberdecimal stringRequiredThe amount as a decimal string. Trailing zeros are dropped, so 0.5, not 0.50.
unitstringRequiredThe token symbol, such as USDT, TON or BTC. IRT is the Toman; USD marks a value in US dollars.
Returns the Transaction object of the payment, with type PAYMENT. Its payment.invoice shows the amount and the fee.
VALIDATION_FAILEDaccount isn’t 43 to 64 allowed characters.
TELEGRAM_ADS_MINIMUM_AMOUNT_NOT_MEETamount is below 20 TON.
INVALID_TOKEN_ENUMamount.unit isn’t TON.
INSUFFICIENT_USER_BALANCEYour TON balance doesn’t cover the amount plus the fee.
USER_BALANCE_LOCKEDThe TON needed is still under the 72-hour rule.
LIMIT_DAILY_WITHDRAW_EXCEEDEDOver your daily crypto withdrawal limit, which payments count toward.
SHOP_CLOSED_FOR_USERThe shop isn’t available for this account.
curl -X POST https://swapwallet.app/api/v1/shop/telegram/ads \
-H "Authorization: Bearer $SWAPWALLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"account": "PtYgjmUhBel31iEl2hpChYgCfrL1spNxnyVmihA-2O7",
"amount": {
"number": "20",
"unit": "TON"
}
}'const response = await fetch('https://swapwallet.app/api/v1/shop/telegram/ads', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SWAPWALLET_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
account: 'PtYgjmUhBel31iEl2hpChYgCfrL1spNxnyVmihA-2O7',
amount: {
number: '20',
unit: 'TON',
},
}),
});
const data = await response.json();
console.log(data.result);import os
import requests
response = requests.post(
"https://swapwallet.app/api/v1/shop/telegram/ads",
headers={"Authorization": f"Bearer {os.environ['SWAPWALLET_API_KEY']}"},
json={
"account": "PtYgjmUhBel31iEl2hpChYgCfrL1spNxnyVmihA-2O7",
"amount": {
"number": "20",
"unit": "TON",
},
},
)
print(response.json()["result"])<?php
$ch = curl_init('https://swapwallet.app/api/v1/shop/telegram/ads');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SWAPWALLET_API_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'account' => 'PtYgjmUhBel31iEl2hpChYgCfrL1spNxnyVmihA-2O7',
'amount' => [
'number' => '20',
'unit' => 'TON',
],
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['result']);package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{
"account": "PtYgjmUhBel31iEl2hpChYgCfrL1spNxnyVmihA-2O7",
"amount": {
"number": "20",
"unit": "TON"
}
}`)
req, _ := http.NewRequest("POST", "https://swapwallet.app/api/v1/shop/telegram/ads", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("SWAPWALLET_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}{
"status": "OK",
"result": {
"id": 3053311,
"supportCode": "SW-T4ADS9Q-KW7N",
"timestamp": 1795173641000,
"type": "PAYMENT",
"status": "SUCCEED",
"network": "INTERNAL",
"exchangeFee": {
"number": "0",
"unit": "TON"
},
"payment": {
"invoice": {
"id": 98251,
"supportCode": "NN-7KQ2M4D-XR3T",
"status": "PAID",
"title": "TELEGRAM_ADS",
"readableTitle": "شارژ تبلیغات تلگرام",
"type": "TELEGRAM_ADS",
"amount": {
"number": "21.2",
"unit": "TON"
},
"value": {
"number": "5659340",
"unit": "IRT"
},
"allowedPaymentTokens": [
"USDT",
"IRT",
"TON"
],
"allowedLockedFunds": false,
"fee": {
"number": "1.2",
"unit": "TON"
},
"createdAt": "2026-11-20T11:20:00.204517Z",
"expiredAt": "2026-11-20T11:23:00.204517Z",
"paidWith": {
"number": "21.2",
"unit": "TON"
},
"paidAt": "2026-11-20T11:20:41.506930Z",
"originalAmount": null,
"discountAmount": null,
"discountCode": null
},
"amount": {
"number": "21.2",
"unit": "TON"
},
"value": {
"number": "20.776",
"unit": "USD"
},
"userCurrencyValue": {
"number": "5659340",
"unit": "IRT"
}
}
}
}