API & integrations1 min read

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:

  1. Telegram Bot API Webhooks (handled by the Go engine using X-Telegram-Bot-Api-Secret-Token).
  2. 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:

http
POST https://streambot.com.br/api/webhooks/bot-payments/{provider}/{accountId}
Content-Type: application/json

Where {provider} is one of: stripe, paypal, asaas, mercadopago, dotfy, pagbank, infinitepay, woovi, pagarme, ebanx, or pagsmile.

Verification headers & events by provider

Provider ({provider})Verification mechanismHandled events
stripeStripe-Signature (HMAC-SHA256 with whsec_...)checkout.session.completed, invoice.paid, invoice.payment_failed, customer.subscription.deleted, charge.refunded, charge.dispute.created
mercadopagox-signature + x-request-id (HMAC-SHA256) + GET /v1/payments/{id}payment.created, payment.updated
asaasasaas-access-token + GET /v3/payments/{id} verificationPAYMENT_RECEIVED, PAYMENT_CONFIRMED, PAYMENT_REFUNDED
paypalPAYPAL-TRANSMISSION-SIG + POST /v1/notifications/verify-webhook-signatureCHECKOUT.ORDER.APPROVED, PAYMENT.CAPTURE.COMPLETED, PAYMENT.CAPTURE.REFUNDED
pagbankOrder notification + GET /orders/{id} with Bearer TokenPAID, DECLINED, CANCELED
pagarmeCore v5 authentication + GET /core/v5/orders/{id}order.paid, charge.paid, charge.refunded
woovix-openpix-signature + GET /api/v1/charge/{id}OPENPIX:CHARGE_COMPLETED, OPENPIX:CHARGE_EXPIRED
infinitepayPayload verification + invoice status check via InfiniteTagPix payment confirmation
dotfyHMAC signature with API Secret + Dotfy API status checkpayment.approved, payment.refunded
ebanxRSA-4096 JWS signature + EBANX Direct status lookupPix Direct confirmation & refund
pagsmileSecurity Key signature + Pagsmile transaction lookupTRADE_SUCCESS, REFUND_SUCCESS

Expected response

All StreamBot webhook endpoints return HTTP 200 OK with a JSON payload when verification succeeds:

json
{
  "ok": true
}
Didn’t find what you need?

Talk to our team via live chat or open authenticated support in the dashboard.

Webhooks technical reference — Documentation Center — StreamBot