Gestión de transacciones
curl --request GET \
--url https://api.example.com/admin/transactionsimport requests
url = "https://api.example.com/admin/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/admin/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/transactions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/admin/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/admin/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "txn_abc123",
"merchantId": "merch_abc123",
"amount": 50.00,
"currency": "USD",
"status": "completed",
"environment": "production",
"createdAt": "2026-03-30T15:00:00Z"
}
],
"page": 1,
"limit": 20,
"total": 1
}
Admin
Gestión de transacciones
Endpoints para la gestión de transacciones de la plataforma. Requiere rol ADMIN.
GET
/
admin
/
transactions
Gestión de transacciones
curl --request GET \
--url https://api.example.com/admin/transactionsimport requests
url = "https://api.example.com/admin/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/admin/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/transactions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/admin/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/admin/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "txn_abc123",
"merchantId": "merch_abc123",
"amount": 50.00,
"currency": "USD",
"status": "completed",
"environment": "production",
"createdAt": "2026-03-30T15:00:00Z"
}
],
"page": 1,
"limit": 20,
"total": 1
}
Requiere autenticación con Bearer token y rol ADMIN.
Listar transacciones
integer
Número de página. Por defecto
1.integer
Cantidad de resultados por página. Por defecto
20.string
Filtrar por estado de la transacción:
pending, completed, failed, refunded.string
Filtrar por entorno:
sandbox, production.string
Filtrar por identificador del merchant.
Respuesta
array
Lista paginada de transacciones.
integer
Página actual.
integer
Cantidad de resultados por página.
integer
Total de transacciones que coinciden con los filtros.
{
"data": [
{
"id": "txn_abc123",
"merchantId": "merch_abc123",
"amount": 50.00,
"currency": "USD",
"status": "completed",
"environment": "production",
"createdAt": "2026-03-30T15:00:00Z"
}
],
"page": 1,
"limit": 20,
"total": 1
}
Obtener transacción por ID
GET /admin/transactions/{id}
string
required
Identificador único de la transacción.
{
"id": "txn_abc123",
"merchantId": "merch_abc123",
"merchantName": "Mi Tienda Online",
"amount": 50.00,
"currency": "USD",
"status": "completed",
"environment": "production",
"paymentMethod": "pago_movil",
"reference": "REF-123456",
"createdAt": "2026-03-30T15:00:00Z",
"completedAt": "2026-03-30T15:01:30Z"
}