Integración de productos digitales en tu producto
Esta guía es para propietarios de bots y servicios de Telegram que desean usar Tribute como sistema de pago. Acepte pagos a través de SBP y Telegram Stars, reciba retiros en USDT sin un proveedor de pagos complejo
Beneficios de la integración de productos digitales de Tribute
Para ti, como propietario del servicio:
Para tus usuarios:
Cómo funciona: esquema general
1. Tú creas un producto digital en Tribute
2. Obtén un enlace de pago único
3. Dirige a los usuarios a este enlace
4. El usuario paga
5. Recibes un webhook sobre el pago exitoso
6. Proporciona acceso al usuario
Instrucciones de configuración paso a paso
Paso 1: Registro en Tribute
Paso 2: Creación de un producto digital
Paso 3: Obtención de la clave API
Paso 4: Configuración de webhooks
Paso 5: Procesamiento de webhooks en tu servidor
Paso 6: Integración en tu bot
Trabajando con la API
API key for authentication.
Product ID
Successful response
Product ID
2548Product type
digitalValores posibles: 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 posibles: Price in Telegram Stars
100Whether payment with Stars is enabled
trueProduct status
approvedValores posibles: 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
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)
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
Notification about a digital product purchase
new_digital_productValores posibles: Event creation time
2025-03-20T01:15:58.33246ZEvent sending time
2025-03-20T01:15:58.542279448ZWebhook successfully processed
okInvalid webhook data
Invalid webhook signature
Payload
Notification about a digital product refund. This webhook is triggered when:
- A user refunds Stars through App Store, Google Play, or their bank
- A creator initiates a refund via the API
Important: Use purchase_id to match refunds with original purchases and revoke access to digital content.
digital_product_refundedValores posibles: Event creation time
2025-03-20T01:15:58.33246ZEvent sending time
2025-03-20T01:15:58.542279448ZWebhook successfully processed
okInvalid webhook data
Invalid webhook signature
Payload
Creación de diferentes tarifas
Gestión de reintentos
Retiradas
Preguntas frecuentes
Última actualización