Products
Product operations. Products exist in three types:
digital- Digital product. Any Telegram message with optional attachmentscustom- Custom product. On-demand content, e.g., personalized video greetingsphysical- Physical product. Merchandise with shipping, e.g., printed t-shirts
All amounts are in smallest currency units (cents/kopecks)
Returns a paginated list of products
API key for authentication.
Page number
1Items per page
20Filter by product type
Sort by ID descending
falseSuccessful response
Bad request
Unauthorized (invalid API key)
GET /api/v1/products HTTP/1.1
Host: tribute.tg
Api-Key: YOUR_API_KEY
Accept: */*
{
"rows": [
{
"id": 2548,
"type": "digital",
"name": "VPN Access - 1 Month",
"description": "High-speed VPN service with unlimited bandwidth and 50+ server locations worldwide",
"amount": 499,
"currency": "usd",
"starsAmount": 100,
"starsAmountEnabled": true,
"status": "approved",
"isCustom": false,
"acceptCards": true,
"acceptWalletPay": false,
"protectContent": true,
"created": "2025-08-25T10:30:00Z",
"updated": "2025-08-25T10:30:00Z",
"pendingOrders": 3,
"imageUrl": "https://cdn.example.com/image.jpg",
"link": "https://t.me/tribute_bot/app?startapp=pf6",
"webLink": "https://web.tribute.tg/p/f6"
}
],
"meta": {
"total": 1,
"offset": 1,
"limit": 1
}
}Returns a single product by its ID
API key for authentication.
Product ID
Successful response
Product ID
2548Product type
digitalValores possíveis: Product name
VPN Access - 1 MonthProduct description
High-speed VPN service with unlimited bandwidth and 50+ server locations worldwideProduct price in smallest currency units (cents for USD/EUR, kopecks for RUB). For physical products this is the starting price, taken from the cheapest variant.
499Currency code
usdValores possíveis: Price in Telegram Stars
100Whether payment with Stars is enabled
trueProduct status
approvedValores possíveis: Whether this is a custom product
falseWhether card payments are accepted
trueWhether wallet payments are accepted
falseWhether content protection is enabled
trueProduct creation date
2025-08-25T10:30:00ZProduct last update date
2025-08-25T10:30:00ZNumber of pending orders (for custom products)
3Product image URL
https://cdn.example.com/image.jpgDirect link to product in Telegram app
https://t.me/tribute_bot/app?startapp=pf6Web link to product
https://web.tribute.tg/p/f6Bad request (invalid product ID format)
Unauthorized (invalid API key)
Access denied
Product not found
GET /api/v1/products/{id} HTTP/1.1
Host: tribute.tg
Api-Key: YOUR_API_KEY
Accept: */*
{
"id": 2548,
"type": "digital",
"name": "VPN Access - 1 Month",
"description": "High-speed VPN service with unlimited bandwidth and 50+ server locations worldwide",
"amount": 499,
"currency": "usd",
"starsAmount": 100,
"starsAmountEnabled": true,
"status": "approved",
"isCustom": false,
"acceptCards": true,
"acceptWalletPay": false,
"protectContent": true,
"created": "2025-08-25T10:30:00Z",
"updated": "2025-08-25T10:30:00Z",
"pendingOrders": 3,
"imageUrl": "https://cdn.example.com/image.jpg",
"link": "https://t.me/tribute_bot/app?startapp=pf6",
"webLink": "https://web.tribute.tg/p/f6"
}Cancels a digital product purchase and refunds the payment.
Important: This endpoint only supports refunds for purchases paid with Telegram Stars. Purchases paid with other payment methods cannot be refunded via this endpoint.
API key for authentication.
Digital product purchase ID (ProductPurchase.ID)
12345Purchase successfully cancelled and payment refunded
Operation success status
trueCancelled purchase ID
12345Success message
purchase cancelled and payment refundedBad request
Unauthorized (invalid API key)
Access denied (not the product owner)
Purchase or user not found
Internal server error
POST /api/v1/products/purchases/{purchaseId}/cancel HTTP/1.1
Host: tribute.tg
Api-Key: YOUR_API_KEY
Accept: */*
{
"success": true,
"purchaseId": 12345,
"message": "purchase cancelled and payment refunded"
}Atualizado