Use this file to discover all available pages before exploring further.
Telegram notifications are an optional per-company feature that delivers real-time payment alerts directly to a Telegram chat or group. When enabled, the API sends a formatted HTML message every time a payment is approved or rejected through either Conekta or Mercado Pago. This gives business owners and operators immediate visibility into sales activity without needing to check a dashboard.
Token issued by @BotFather when you create a bot (e.g. 7123456789:AAHxxxxxx)
telegram_chat_id
Numeric ID of the chat or group where messages will be delivered
notificaciones_telegram
Boolean flag — must be true for alerts to be sent
How to get a bot token from @BotFather:
Open Telegram and search for @BotFather.
Send the command /newbot and follow the prompts to choose a name and username for your bot.
@BotFather will reply with a token in the format 1234567890:AABBCCddEEff.... Copy this value.
Start a conversation with your new bot (or add it to a group) so it can send messages.
To get your chat_id, forward a message from your bot chat to @userinfobot, or call https://api.telegram.org/bot<token>/getUpdates and read the chat.id from the JSON response.
Before relying on live payment notifications, verify that the bot token and chat ID are correct by sending a test message.
POST /api/v1/admin/test-telegram
The request body accepts the credentials you want to test. If the body fields are omitted, the endpoint falls back to the values already stored in the database for the authenticated company — useful for verifying saved credentials without re-entering them.
Sent when a payment is declined (HTTP 402 response from the payment gateway).
❌ Pago Rechazado🏢 Empresa: Mi Empresa📦 Plan: Internet 1 Hora💰 Monto: $30 MXN👤 Cliente: Juan Pérez⚠️ Motivo: Fondos insuficientes en la tarjeta.
Notifications are dispatched as FastAPI background tasks so they never
delay the payment response returned to the customer. A failure to reach
Telegram (e.g. network timeout) is logged but does not affect the payment
outcome or the delivery of WiFi credentials.