Transactions are created automatically when a customer completes (or attempts) a payment through the captive portal. These read-only endpoints give client admins visibility into payment activity, revenue totals, and recent events — without requiring access to the payment gateway dashboard. All endpoints requireDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sistemashm24/pagos_hotspot_api/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <session_token> for a cliente_admin user.
GET /api/v1/admin/mi-empresa/transacciones
Returns a paginated list of all transactions for the authenticated company, sorted by creation date descending (most recent first).cURL
Query Parameters
Maximum number of transactions to return. Use together with
offset to page through large result sets.Number of records to skip before returning results. For example, to fetch page 3 with 20 items per page:
offset=40&limit=20.Response
The company ID that owns these transactions.
Total number of transactions in the database for this company (across all pages). Use this to calculate total page count.
The
limit value applied to this response.The
offset value applied to this response.Array of transaction objects.
Example Response
Pagination Example
cURL — Page 2 (items 21–40)
GET /api/v1/admin/mi-empresa/dashboard
Returns a summary of company activity: aggregate statistics computed from all transactions plus the 5 most recent transactions. Designed for the main admin dashboard view.cURL
Response
The 5 most recent transactions, ordered by
creada_en descending.Example Response
Transaccion Model Fields
All transaction objects stored in thetransacciones table share the following columns. The list endpoint returns only a subset (see above); the full schema is documented here for reference.
Auto-incremented internal database ID.
Unique transaction reference string generated at payment creation. For Conekta this is the Order ID (e.g.
"ord_2xxxxxxxxxxxxxb"); for Mercado Pago it is derived from the preference or payment ID. Unique across the platform.External reference string used as the correlation key in payment gateway webhooks. Unique across the platform.
ID of the company that owns this transaction (e.g.
"EMP_3A9F1C0B2D").ID of the router through which the hotspot session is granted (e.g.
"RTR_A1B2C3D4").ID of the product (plan) the customer purchased. May be
null for legacy transactions created before products were introduced.Transaction amount as a decimal, e.g.
50.00.ISO 4217 currency code. Defaults to
"MXN".Customer full name collected at checkout.
null if not captured.Customer email address.
null if not captured.Customer phone number.
null if not captured.MikroTik Hotspot username generated for the customer upon successful payment.
null before payment is confirmed.MikroTik Hotspot password paired with
usuario_hotspot. null before payment is confirmed.Timestamp when the hotspot session will expire. Derived from the MikroTik profile’s
session_timeout. null before the hotspot user is created.Payment gateway state. See Payment States below. Defaults to
"pending".State of the hotspot user creation step.
"pending" until the webhook is processed; set to "created" once the MikroTik user is created, or "failed" if creation failed. Defaults to "pending".true once the payment gateway webhook has been received and processed. Defaults to false.Mercado Pago notification ID from the incoming webhook payload. Used for idempotency.
null for Conekta transactions.Arbitrary JSON metadata attached to the transaction. Contains gateway-specific raw response data. Stored as JSONB.
SHA-256 hash (first 64 chars) of the router API key that was used to create this transaction. Used for auditing.
Timestamp when the transaction record was inserted. Defaults to
CURRENT_TIMESTAMP.Timestamp when the payment was confirmed by the gateway webhook.
null until payment is confirmed.Timestamp when the MikroTik hotspot user was created.
null until the hotspot step completes.Timestamp when the payment gateway webhook was received by the API server.
null if no webhook has been received yet.Payment States
Theestado_pago field on a transaction can hold the following values:
| Value | Gateway | Meaning |
|---|---|---|
"pending" | All | Transaction created, payment not yet confirmed. The customer may still be on the payment page. |
"paid" | Conekta | Payment confirmed by Conekta webhook. Hotspot user has been created. |
"approved" | Mercado Pago | Payment approved by Mercado Pago webhook. Hotspot user has been created. |
"rejected" | Mercado Pago | Payment rejected by Mercado Pago (e.g. insufficient funds, card declined). |
The
ingresos_totales field in the dashboard aggregates all transaction amounts regardless of state, including "pending" and "rejected" records. For confirmed revenue, multiply transacciones_pagadas by average ticket size, or query the transaction list and filter client-side.