Gestión de merchants
curl --request GET \
--url https://api.example.com/admin/merchantsimport requests
url = "https://api.example.com/admin/merchants"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/merchants', 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/merchants",
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/merchants"
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/merchants")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/admin/merchants")
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": "merch_abc123",
"name": "Mi Tienda Online",
"status": "active",
"owner": "Juan Pérez",
"createdAt": "2026-02-01T10:00:00Z"
}
],
"page": 1,
"limit": 20,
"total": 1
}
Admin
Gestión de merchants
Endpoints para la gestión de merchants de la plataforma. Requiere rol ADMIN.
GET
/
admin
/
merchants
Gestión de merchants
curl --request GET \
--url https://api.example.com/admin/merchantsimport requests
url = "https://api.example.com/admin/merchants"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/merchants', 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/merchants",
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/merchants"
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/merchants")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/admin/merchants")
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": "merch_abc123",
"name": "Mi Tienda Online",
"status": "active",
"owner": "Juan Pérez",
"createdAt": "2026-02-01T10:00:00Z"
}
],
"page": 1,
"limit": 20,
"total": 1
}
Requiere autenticación con Bearer token y rol ADMIN.
Listar merchants
integer
Número de página. Por defecto
1.integer
Cantidad de resultados por página. Por defecto
20.string
Texto de búsqueda por nombre del merchant.
string
Filtrar por estado del merchant:
active, inactive, pending.Respuesta
array
Lista paginada de merchants.
integer
Página actual.
integer
Cantidad de resultados por página.
integer
Total de merchants que coinciden con los filtros.
{
"data": [
{
"id": "merch_abc123",
"name": "Mi Tienda Online",
"status": "active",
"owner": "Juan Pérez",
"createdAt": "2026-02-01T10:00:00Z"
}
],
"page": 1,
"limit": 20,
"total": 1
}
Obtener merchant por ID
GET /admin/merchants/{id}
string
required
Identificador único del merchant.
{
"id": "merch_abc123",
"name": "Mi Tienda Online",
"status": "active",
"owner": {
"id": "usr_abc123",
"name": "Juan Pérez",
"email": "juan@ejemplo.com"
},
"rif": "J-12345678-9",
"environment": "production",
"createdAt": "2026-02-01T10:00:00Z"
}