Integrando produtos digitais ao seu produto
Este guia é para proprietários de bots e serviços no Telegram que desejam usar o Tribute como sistema de pagamento. Aceite pagamentos via SBP e Telegram Stars, receba saques em USDT sem um provedor de pagamento complexo
Benefícios da integração dos Produtos Digitais do Tribute
Para você, como dono do serviço:
Para seus usuários:
Como funciona: esquema geral
1. Você cria um produto digital no Tribute
2. Obtenha um link de pagamento exclusivo
3. Direcione os usuários para este link
4. O usuário paga
5. Você recebe um webhook sobre o pagamento realizado com sucesso
6. Forneça acesso ao usuário
Instruções de configuração passo a passo
Etapa 1: Registro no Tribute
Etapa 2: Criação de um produto digital
Etapa 3: Obtenção da chave de API
Etapa 4: Configuração de webhooks
Etapa 5: Processamento de webhooks no seu servidor
Etapa 6: Integração ao seu bot
Trabalhando com a API
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
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 possíveis: 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 possíveis: 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
Criando diferentes tarifas
Tratamento de tentativas de reenvio
Saques
Perguntas frequentes
Atualizado