Webhooks technical reference
Payment webhook routes, cryptographic signature headers verified per provider, and Telegram Bot API webhook specifications.
StreamBot webhook architecture
StreamBot processes two categories of HTTPS webhooks:
- Telegram Bot API Webhooks (handled by the Go engine using
X-Telegram-Bot-Api-Secret-Token). - Payment Gateway Webhooks across all 11 integrated providers (verified via cryptographic signature headers plus an active status query against the provider’s API).
Payment webhook route format
Each gateway account connected under Payment methods (/panel/payments) is assigned a dedicated endpoint:
POST https://streambot.com.br/api/webhooks/bot-payments/{provider}/{accountId}
Content-Type: application/jsonWhere {provider} is one of: stripe, paypal, asaas, mercadopago, dotfy, pagbank, infinitepay, woovi, pagarme, ebanx, or pagsmile.
Verification headers & events by provider
Provider ({provider}) | Verification mechanism | Handled events |
|---|---|---|
stripe | Stripe-Signature (HMAC-SHA256 with whsec_...) | checkout.session.completed, invoice.paid, invoice.payment_failed, customer.subscription.deleted, charge.refunded, charge.dispute.created |
mercadopago | x-signature + x-request-id (HMAC-SHA256) + GET /v1/payments/{id} | payment.created, payment.updated |
asaas | asaas-access-token + GET /v3/payments/{id} verification | PAYMENT_RECEIVED, PAYMENT_CONFIRMED, PAYMENT_REFUNDED |
paypal | PAYPAL-TRANSMISSION-SIG + POST /v1/notifications/verify-webhook-signature | CHECKOUT.ORDER.APPROVED, PAYMENT.CAPTURE.COMPLETED, PAYMENT.CAPTURE.REFUNDED |
pagbank | Order notification + GET /orders/{id} with Bearer Token | PAID, DECLINED, CANCELED |
pagarme | Core v5 authentication + GET /core/v5/orders/{id} | order.paid, charge.paid, charge.refunded |
woovi | x-openpix-signature + GET /api/v1/charge/{id} | OPENPIX:CHARGE_COMPLETED, OPENPIX:CHARGE_EXPIRED |
infinitepay | Payload verification + invoice status check via InfiniteTag | Pix payment confirmation |
dotfy | HMAC signature with API Secret + Dotfy API status check | payment.approved, payment.refunded |
ebanx | RSA-4096 JWS signature + EBANX Direct status lookup | Pix Direct confirmation & refund |
pagsmile | Security Key signature + Pagsmile transaction lookup | TRADE_SUCCESS, REFUND_SUCCESS |
Expected response
All StreamBot webhook endpoints return HTTP 200 OK with a JSON payload when verification succeeds:
{
"ok": true
}