Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {ACCESS_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Autenticación 2FA
Controlador para manejar la autenticación de dos factores (2FA). Permite configurar y verificar códigos usando Email, WhatsApp y TOTP.
Configuración Inicial
Configuración inicial de 2FA
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/configuracion-inicial" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"temp_token\": \"a1b2c3d4...\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/configuracion-inicial"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"temp_token": "a1b2c3d4..."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"data": {
"usuario_nombre": "Juan Pérez",
"metodos_disponibles": [
{
"tipo": "Email",
"nombre": "Correo Electrónico",
"descripcion": "Solicitaremos tu correo electrónico",
"destino": "u***r@domain.com",
"icono": "mail"
}
],
"mensaje": "Necesitamos aumentar la seguridad de tu cuenta..."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Configurar método inicial de 2FA
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/configurar-metodo-inicial" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"temp_token\": \"a1b2c3d4...\",
\"metodo\": \"TOTP\",
\"numero_whatsapp\": \"+521234567890\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/configurar-metodo-inicial"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"temp_token": "a1b2c3d4...",
"metodo": "TOTP",
"numero_whatsapp": "+521234567890"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Escanea el código QR con Microsoft Authenticator",
"require_qr_setup": true,
"qr_url": "https://chart.googleapis.com/chart?chs=200x200...",
"manual_key": "JBSWY3DPEHPK3PXP",
"temp_token": "a1b2c3d4..."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar TOTP durante configuración inicial
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/activar-totp-inicial" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"temp_token\": \"a1b2c3d4...\",
\"codigo\": \"123456\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/activar-totp-inicial"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"temp_token": "a1b2c3d4...",
"codigo": "123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Microsoft Authenticator activado correctamente",
"metodo_configurado": "TOTP",
"temp_token": "new_temp_token",
"redirect_to": "2fa-verification"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verificación de 2FA
Seleccionar método de 2FA después del login
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/seleccionar-metodo" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"usuario_id\": \"eyJpdiI6Ik...\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/seleccionar-metodo"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"usuario_id": "eyJpdiI6Ik..."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"metodos": [
{
"tipo": "Email",
"descripcion": "Código enviado a tu correo electrónico",
"destino": "u***r@domain.com"
}
],
"metodo_preferido": "Email"
}
Example response (404):
{
"code": 404,
"message": "Usuario no encontrado"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enviar código de verificación
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/enviar-codigo" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"temp_token\": \"a1b2c3d4...\",
\"metodo\": \"Email\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/enviar-codigo"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"temp_token": "a1b2c3d4...",
"metodo": "Email"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Código enviado a tu correo electrónico",
"destino": "u***r@domain.com",
"expira_en": 600
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verificar código y completar login
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/verificar-codigo" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"temp_token\": \"a1b2c3d4...\",
\"metodo\": \"Email\",
\"codigo\": \"1A2B3C\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/verificar-codigo"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"temp_token": "a1b2c3d4...",
"metodo": "Email",
"codigo": "1A2B3C"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Verificación exitosa. Bienvenido.",
"token": "auth_token_here",
"usuario": {
"id": 1,
"nombre": "Juan Pérez",
"perfil": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Configuración de 2FA
Configurar 2FA para un usuario autenticado
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/configurar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"metodo\": \"TOTP\",
\"numero_whatsapp\": \"+521234567890\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/configurar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"metodo": "TOTP",
"numero_whatsapp": "+521234567890"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"code": 200,
"message": "2FA habilitado con método: TOTP",
"data": {
"metodo_activo": "TOTP"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Obtener estado actual de 2FA del usuario autenticado
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/2fa/estado" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/estado"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"data": {
"habilitado": true,
"metodo_activo": "Email",
"tiene_secreto_totp": false,
"metodos_disponibles": [
"Email",
"TOTP"
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Configurar Microsoft Authenticator (generar QR)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/configurar-totp" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/configurar-totp"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Escanea el código QR con Microsoft Authenticator",
"qr_url": "https://chart.googleapis.com/chart?chs=200x200...",
"manual_key": "JBSWY3DPEHPK3PXP",
"issuer": "Educa Deporte",
"account": "user@example.com"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verificar y activar Microsoft Authenticator
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/2fa/activar-totp" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo\": \"123456\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/2fa/activar-totp"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo": "123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"code": 200,
"message": "Microsoft Authenticator activado correctamente",
"data": {
"metodo_activo": "TOTP"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Base
Ruta
Importar rutas
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/ruta/importar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/importar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autocomplete de rutas
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/ruta/autocomplete-web-php" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/autocomplete-web-php"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Accion de ruta
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/ruta/accion-ruta" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"rutaURL\": \"http:\\/\\/kunze.biz\\/iste-laborum-eius-est-dolor.html\",
\"rutaMetodo\": \"consequatur\",
\"rutaClasificacion\": \"consequatur\",
\"rutaModulo\": \"consequatur\",
\"rutaDescripcion\": \"consequatur\",
\"rutaControlador\": \"consequatur\",
\"idRuta\": 17,
\"rutaPermiso\": \"consequatur\",
\"rutaParametros\": \"consequatur\",
\"rutaAccion\": \"consequatur\",
\"rutaMiddleware\": \"consequatur\",
\"rutaPrefix\": \"consequatur\",
\"rutaControladorDirectorio\": \"consequatur\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/accion-ruta"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rutaURL": "http:\/\/kunze.biz\/iste-laborum-eius-est-dolor.html",
"rutaMetodo": "consequatur",
"rutaClasificacion": "consequatur",
"rutaModulo": "consequatur",
"rutaDescripcion": "consequatur",
"rutaControlador": "consequatur",
"idRuta": 17,
"rutaPermiso": "consequatur",
"rutaParametros": "consequatur",
"rutaAccion": "consequatur",
"rutaMiddleware": "consequatur",
"rutaPrefix": "consequatur",
"rutaControladorDirectorio": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar ruta
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/ruta/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/base/ruta/validar
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/ruta/validar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/validar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar ruta
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/ruta/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de rutas editado
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/ruta/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ver ruta
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/ruta/ver-ruta/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/ver-ruta/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Informacion de ruta
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/ruta/info-ruta/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/ruta/info-ruta/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Usuario
Lista de usuarios
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/usuario/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Accion de usuario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/usuario/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"usuarioNombre\": \"vmqeopfuudtdsufvyvddq\",
\"usuarioAlias\": \"Juan Pérez\",
\"usuarioEmail\": \"juan@example.com\",
\"idPerfil\": 1,
\"usuarioPassword\": \"password123\",
\"usuarioNotificacionWeb\": \"\\\"Si\\\"\",
\"usuarioNotificacionWhatsApp\": \"\\\"No\\\"\",
\"usuarioNotificacionMail\": \"\\\"Si\\\"\",
\"usuarioWhatsAppNumero\": \"1562\",
\"usuario2FAMetodo\": \"SMS\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"usuarioNombre": "vmqeopfuudtdsufvyvddq",
"usuarioAlias": "Juan Pérez",
"usuarioEmail": "juan@example.com",
"idPerfil": 1,
"usuarioPassword": "password123",
"usuarioNotificacionWeb": "\"Si\"",
"usuarioNotificacionWhatsApp": "\"No\"",
"usuarioNotificacionMail": "\"Si\"",
"usuarioWhatsAppNumero": "1562",
"usuario2FAMetodo": "SMS"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar usuario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/usuario/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"usuarioNombre\": \"vmqeopfuudtdsufvyvddq\",
\"usuarioAlias\": \"amniihfqcoynlazghdtqt\",
\"usuarioEmail\": \"andreanne00@example.org\",
\"idPerfil\": \"consequatur\",
\"usuarioNotificacionWeb\": \"Si\",
\"usuarioNotificacionWhatsApp\": \"Si\",
\"usuarioNotificacionMail\": \"No\",
\"usuarioWhatsAppNumero\": \"1562\",
\"usuario2FAMetodo\": \"Email\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"usuarioNombre": "vmqeopfuudtdsufvyvddq",
"usuarioAlias": "amniihfqcoynlazghdtqt",
"usuarioEmail": "andreanne00@example.org",
"idPerfil": "consequatur",
"usuarioNotificacionWeb": "Si",
"usuarioNotificacionWhatsApp": "Si",
"usuarioNotificacionMail": "No",
"usuarioWhatsAppNumero": "1562",
"usuario2FAMetodo": "Email"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar usuario
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/usuario/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Informacion de usuario
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/usuario/info-usuario/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/info-usuario/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar usuario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/usuario/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detalle de usuario
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/usuario/detalle/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/detalle/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/usuario/datosParaFormulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/datosParaFormulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Guardar perfiles de usuario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/usuario/guardarPerfilesUsuario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/guardarPerfilesUsuario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Desbloquear usuario
requires authentication
Desbloquea un usuario bloqueado, cambiando su estado a "Activo" y reseteando el contador de intentos fallidos a 0.
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/usuario/desbloquear/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/usuario/desbloquear/1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Usuario desbloqueado correctamente. El usuario ahora puede iniciar sesión."
}
Example response (404):
{
"success": false,
"message": "Usuario no encontrado."
}
Example response (500):
{
"success": false,
"message": "Error al desbloquear el usuario."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Menu
Lista de menus
requires authentication
Accion de menu
requires authentication
Editar menú
requires authentication
Eliminar menú
requires authentication
Informacion de menu
requires authentication
Activar menu
requires authentication
Datos para formulario
requires authentication
Perfil
Lista de perfiles
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/perfil/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Accion de perfil
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/perfil/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"perfilNombre\": \"vmqeopfuudtdsufvyvddq\",
\"perfilURLInicial\": \"\\/admin\",
\"perfilAlias\": \"Administrador\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"perfilNombre": "vmqeopfuudtdsufvyvddq",
"perfilURLInicial": "\/admin",
"perfilAlias": "Administrador"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar perfil
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/perfil/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"perfilNombre\": \"vmqeopfuudtdsufvyvddq\",
\"perfilURLInicial\": \"\\/admin\",
\"idPerfil\": 2,
\"perfilAlias\": \"Administrador\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"perfilNombre": "vmqeopfuudtdsufvyvddq",
"perfilURLInicial": "\/admin",
"idPerfil": 2,
"perfilAlias": "Administrador"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar perfil
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/perfil/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPerfil\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPerfil": 2
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Informacion de perfil
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/perfil/info-perfil/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPerfil\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/info-perfil/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPerfil": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar perfil
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/perfil/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPerfil\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPerfil": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de perfiles menus
requires authentication
Accion de perfil menu
requires authentication
Eliminar perfil menu
requires authentication
Lista de perfiles rutas
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/perfil/lista-perfil-ruta" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/lista-perfil-ruta"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Accion de perfil ruta
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/perfil/accion-perfil-ruta" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/accion-perfil-ruta"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar perfil ruta
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/perfil/eliminar-perfil-ruta/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/eliminar-perfil-ruta/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de menus
requires authentication
Lista de rutas
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/perfil/lista-rutas/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/perfil/lista-rutas/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
País
Lista de países
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/pais/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/pais/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar país
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/pais/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"paisAlias\": \"Perú\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/pais/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"paisAlias": "Perú"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar país
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/pais/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"paisAlias\": \"Perú2\",
\"idPais\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/pais/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"paisAlias": "Perú2",
"idPais": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar país
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/pais/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPais\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/pais/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPais": 2
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de país
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/pais/info-pais/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPais\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/pais/info-pais/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPais": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar país
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/pais/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPais\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/pais/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPais": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de país
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/pais/datosParaFormulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/pais/datosParaFormulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Estado
Lista de estados
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/estado/lista/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPais\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/estado/lista/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPais": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar estado
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/estado/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"estadoAlias\": \"Lima\",
\"idPais\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/estado/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"estadoAlias": "Lima",
"idPais": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar estado
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/estado/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"estadoAlias\": \"Limas\",
\"idPais\": \"consequatur\",
\"idEstado\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/estado/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"estadoAlias": "Limas",
"idPais": "consequatur",
"idEstado": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar estado
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/estado/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idEstado\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/estado/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idEstado": 2
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de estado
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/estado/info-estado/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idEstado\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/estado/info-estado/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idEstado": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar estado
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/estado/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idEstado\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/estado/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idEstado": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de estado
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/estado/datosParaFormulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/estado/datosParaFormulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delegación
Lista de delegaciones
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/delegacion/lista/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idEstado\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/delegacion/lista/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idEstado": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar delegación
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/delegacion/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"delegacionAlias\": \"Delegación Lima\",
\"delegacionLada\": \"amnii\",
\"idEstado\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/delegacion/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"delegacionAlias": "Delegación Lima",
"delegacionLada": "amnii",
"idEstado": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar delegación
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/delegacion/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"delegacionAlias\": \"Delegación Lima\",
\"delegacionLada\": \"amnii\",
\"idEstado\": \"consequatur\",
\"idDelegacion\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/delegacion/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"delegacionAlias": "Delegación Lima",
"delegacionLada": "amnii",
"idEstado": "consequatur",
"idDelegacion": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar delegación
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/delegacion/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idDelegacion\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/delegacion/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idDelegacion": 2
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de delegación
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/delegacion/info-delegacion/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idDelegacion\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/delegacion/info-delegacion/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idDelegacion": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar delegación
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/delegacion/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/delegacion/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de delegación
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/delegacion/datosParaFormulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/delegacion/datosParaFormulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Colonia
Lista de colonias
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/colonia/lista/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idDelegacion\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/colonia/lista/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idDelegacion": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar colonia
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/colonia/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"coloniaAlias\": \"Colonia Lima\",
\"coloniaCodigoPostal\": \"12345\",
\"idDelegacion\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/colonia/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"coloniaAlias": "Colonia Lima",
"coloniaCodigoPostal": "12345",
"idDelegacion": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar colonia
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/colonia/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"coloniaAlias\": \"Colonia Lima\",
\"coloniaCodigoPostal\": \"12345\",
\"idDelegacion\": 1,
\"idColonia\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/colonia/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"coloniaAlias": "Colonia Lima",
"coloniaCodigoPostal": "12345",
"idDelegacion": 1,
"idColonia": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar colonia
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/colonia/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/colonia/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de colonia
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/colonia/info-colonia/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/colonia/info-colonia/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar colonia
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/colonia/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/colonia/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de colonia
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/colonia/datosParaFormulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/colonia/datosParaFormulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Código Postal
Buscar información geográfica completa por código postal
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/buscar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo_postal\": \"12345\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/buscar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo_postal": "12345"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Obtener colonias para componente select
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/colonias-select" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo_postal\": \"12345\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/colonias-select"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo_postal": "12345"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validar código postal
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/validar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo_postal\": \"12345\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/validar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo_postal": "12345"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
valido
boolean
Indica si el código postal es válido. Example: true
Datos para autocompletado de formularios
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/datos-formulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo_postal\": \"12345\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/datos-formulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo_postal": "12345"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Búsqueda rápida de código postal
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/busqueda-rapida" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"codigo_postal\": \"12345\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/codigo-postal/busqueda-rapida"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"codigo_postal": "12345"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Banco
Lista de bancos
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/banco/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/banco/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar banco
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/banco/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"bancoAlias\": \"Banco de Prueba\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/banco/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"bancoAlias": "Banco de Prueba"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar banco
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/banco/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"bancoAlias\": \"Banco de Prueba\",
\"idBanco\": 0
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/banco/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"bancoAlias": "Banco de Prueba",
"idBanco": 0
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar banco
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/banco/eliminar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idBanco\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/banco/eliminar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idBanco": 1
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Informacion de banco
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/banco/info-banco/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idBanco\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/banco/info-banco/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idBanco": 1
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar banco
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/banco/activar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idBanco\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/banco/activar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idBanco": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/banco/datosParaFormulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/banco/datosParaFormulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Empresa
Lista de empresas
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/empresa/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresaNombre\": \"Tequila y Mezcales\",
\"empresaRFC\": \"TMX010203ABC\",
\"empresaEmail\": \"contacto@tms.com\",
\"empresaTipo\": \"Interna\",
\"empresaTipoContribuyente\": \"Moral\",
\"empresaEstado\": \"Activo\",
\"searchQuery\": \"tequila\",
\"sort_field\": \"idEmpresa\",
\"sort_direction\": \"asc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresaNombre": "Tequila y Mezcales",
"empresaRFC": "TMX010203ABC",
"empresaEmail": "contacto@tms.com",
"empresaTipo": "Interna",
"empresaTipoContribuyente": "Moral",
"empresaEstado": "Activo",
"searchQuery": "tequila",
"sort_field": "idEmpresa",
"sort_direction": "asc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear empresa
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/empresa/crear" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"empresaNombre\": \"Tequila y Mezcales\",
\"empresaDireccion\": \"vmqeopfuudtdsufvyvddq\",
\"empresaRazonSocial\": \"amniihfqcoynlazghdtqt\",
\"empresaRFC\": \"TMX010203ABC\",
\"empresaTelefono\": \"+52 33 1234 5678\",
\"empresaEmail\": \"contacto@tms.com\",
\"empresaCoordenadas\": \"yvojcybzvrbyickznkygl\",
\"empresaTipoContribuyente\": \"Moral\",
\"empresaTipo\": \"Interna\",
\"empresaFechaAlta\": \"2025-01-15\",
\"empresaEstado\": \"consequatur\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/crear"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"empresaNombre": "Tequila y Mezcales",
"empresaDireccion": "vmqeopfuudtdsufvyvddq",
"empresaRazonSocial": "amniihfqcoynlazghdtqt",
"empresaRFC": "TMX010203ABC",
"empresaTelefono": "+52 33 1234 5678",
"empresaEmail": "contacto@tms.com",
"empresaCoordenadas": "yvojcybzvrbyickznkygl",
"empresaTipoContribuyente": "Moral",
"empresaTipo": "Interna",
"empresaFechaAlta": "2025-01-15",
"empresaEstado": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar empresa
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/empresa/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idEmpresa\": \"MQ==\",
\"empresaNombre\": \"consequatur\",
\"empresaDireccion\": \"vmqeopfuudtdsufvyvddq\",
\"empresaRazonSocial\": \"amniihfqcoynlazghdtqt\",
\"empresaRFC\": \"consequatur\",
\"empresaTelefono\": \"consequatur\",
\"empresaEmail\": \"qkunze@example.com\",
\"empresaCoordenadas\": \"yvojcybzvrbyickznkygl\",
\"empresaTipoContribuyente\": \"consequatur\",
\"empresaTipo\": \"consequatur\",
\"empresaFechaAlta\": \"consequatur\",
\"empresaEstado\": \"consequatur\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idEmpresa": "MQ==",
"empresaNombre": "consequatur",
"empresaDireccion": "vmqeopfuudtdsufvyvddq",
"empresaRazonSocial": "amniihfqcoynlazghdtqt",
"empresaRFC": "consequatur",
"empresaTelefono": "consequatur",
"empresaEmail": "qkunze@example.com",
"empresaCoordenadas": "yvojcybzvrbyickznkygl",
"empresaTipoContribuyente": "consequatur",
"empresaTipo": "consequatur",
"empresaFechaAlta": "consequatur",
"empresaEstado": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inactivar empresa
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/empresa/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar empresa
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/empresa/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de empresa
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/empresa/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de empresa
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/empresa/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle de empresa
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/empresa/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/empresa/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sucursal
Lista de sucursales
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idSucursal\": \"MQ==\",
\"idEmpresa\": \"MQ==\",
\"idSucursalSuperior\": \"Mg==\",
\"sucursalNombre\": \"Sucursal Centro\",
\"sucursalTipo\": \"Sucursal\",
\"sucursalVentaNocturna\": \"No\",
\"sucursalEstado\": \"Activo\",
\"searchQuery\": \"Centro\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idSucursal": "MQ==",
"idEmpresa": "MQ==",
"idSucursalSuperior": "Mg==",
"sucursalNombre": "Sucursal Centro",
"sucursalTipo": "Sucursal",
"sucursalVentaNocturna": "No",
"sucursalEstado": "Activo",
"searchQuery": "Centro"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de sucursal
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/sucursal/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de sucursal
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/sucursal/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar sucursal
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal/crear" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idEmpresa\": \"MQ==\",
\"idSucursalSuperior\": \"Mg==\",
\"sucursalNombre\": \"Sucursal Centro\",
\"sucursalDireccion\": \"Av. Reforma 123\",
\"sucursalTelefono\": \"555-1234\",
\"sucursalEmail\": \"centro@empresa.com\",
\"sucursalTipo\": \"Sucursal\",
\"sucursalVentaNocturna\": \"No\",
\"sucursalVentaNocturnaHoraInicio\": \"20:00\",
\"sucursalVentaNocturnaHoraFin\": \"23:00\",
\"sucursalVentaNocturnaPorcentaje\": 10.5
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/crear"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idEmpresa": "MQ==",
"idSucursalSuperior": "Mg==",
"sucursalNombre": "Sucursal Centro",
"sucursalDireccion": "Av. Reforma 123",
"sucursalTelefono": "555-1234",
"sucursalEmail": "centro@empresa.com",
"sucursalTipo": "Sucursal",
"sucursalVentaNocturna": "No",
"sucursalVentaNocturnaHoraInicio": "20:00",
"sucursalVentaNocturnaHoraFin": "23:00",
"sucursalVentaNocturnaPorcentaje": 10.5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar sucursal
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idSucursal\": \"MQ==\",
\"idEmpresa\": \"MQ==\",
\"idSucursalSuperior\": \"Mg==\",
\"sucursalNombre\": \"Sucursal Centro\",
\"sucursalDireccion\": \"Av. Reforma 123\",
\"sucursalTelefono\": \"555-1234\",
\"sucursalEmail\": \"centro@empresa.com\",
\"sucursalTipo\": \"Sucursal\",
\"sucursalVentaNocturna\": \"No\",
\"sucursalVentaNocturnaHoraInicio\": \"20:00\",
\"sucursalVentaNocturnaHoraFin\": \"23:00\",
\"sucursalVentaNocturnaPorcentaje\": 10.5,
\"sucursalEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idSucursal": "MQ==",
"idEmpresa": "MQ==",
"idSucursalSuperior": "Mg==",
"sucursalNombre": "Sucursal Centro",
"sucursalDireccion": "Av. Reforma 123",
"sucursalTelefono": "555-1234",
"sucursalEmail": "centro@empresa.com",
"sucursalTipo": "Sucursal",
"sucursalVentaNocturna": "No",
"sucursalVentaNocturnaHoraInicio": "20:00",
"sucursalVentaNocturnaHoraFin": "23:00",
"sucursalVentaNocturnaPorcentaje": 10.5,
"sucursalEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inactivar sucursal (eliminar lógico)
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/base/sucursal/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar sucursal
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle de sucursal
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/sucursal/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sucursal-Usuario
Lista de asignaciones usuario-sucursal
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idSucursalUsuario\": \"MQ==\",
\"idUsuario\": \"MQ==\",
\"idSucursal\": \"MQ==\",
\"sucursalUsuarioEstado\": \"Activo\",
\"perPage\": 10,
\"sort_field\": \"idSucursalUsuario\",
\"sort_direction\": \"asc\",
\"typeData\": \"all\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idSucursalUsuario": "MQ==",
"idUsuario": "MQ==",
"idSucursal": "MQ==",
"sucursalUsuarioEstado": "Activo",
"perPage": 10,
"sort_field": "idSucursalUsuario",
"sort_direction": "asc",
"typeData": "all"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de asignación Devuelve usuarios, todas las sucursales activas y, si se envía idUsuario, separa las sucursales en disponibles y asignadas.
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idUsuario\": \"MQ==\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idUsuario": "MQ=="
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de una asignación
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear/actualizar asignaciones usuario-sucursal (múltiple)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/crear" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idUsuario\": \"MQ==\",
\"idSucursal\": 17,
\"idSucursales\": [
1,
2,
3
],
\"sucursalesEliminadas\": [
4,
5,
6
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/crear"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idUsuario": "MQ==",
"idSucursal": 17,
"idSucursales": [
1,
2,
3
],
"sucursalesEliminadas": [
4,
5,
6
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inactivar asignaciones (eliminación lógica múltiple)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/eliminar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/eliminar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar asignación
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/base/sucursal-usuario/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Compras
Categoria Proveedor
Lista de categorías de proveedores
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaProveedorSuperior\": \"MQ==\",
\"categoriaProveedorAlias\": \"VIP\",
\"categoriaProveedorEstado\": \"Activo\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaProveedorSuperior": "MQ==",
"categoriaProveedorAlias": "VIP",
"categoriaProveedorEstado": "Activo",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de categoría proveedor
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/info-categoria-proveedor/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/info-categoria-proveedor/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar categoría proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaProveedorSuperior\": \"MQ==\",
\"categoriaProveedorAlias\": \"VIP\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaProveedorSuperior": "MQ==",
"categoriaProveedorAlias": "VIP"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar categoría proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaProveedor\": \"MQ==\",
\"idCategoriaProveedorSuperior\": \"MQ==\",
\"categoriaProveedorAlias\": \"VIP\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaProveedor": "MQ==",
"idCategoriaProveedorSuperior": "MQ==",
"categoriaProveedorAlias": "VIP"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar categoría proveedor
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar categoría proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/categoria-proveedor/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Proveedor
Lista de proveedores
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProveedor\": \"MQ==\",
\"idBanco\": \"MQ==\",
\"proveedorNombre\": \"VIP\",
\"proveedorRazonSocial\": \"VIP S.A.\",
\"proveedorDireccion\": \"Calle 123\",
\"proveedorCuenta\": \"1234567890\",
\"proveedorTelefono\": 555,
\"proveedorEmail\": \"vip@example.com\",
\"proveedorRFC\": \"VIP123456789\",
\"proveedorContacto\": \"Juan Perez\",
\"proveedorEstado\": \"Activo\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProveedor": "MQ==",
"idBanco": "MQ==",
"proveedorNombre": "VIP",
"proveedorRazonSocial": "VIP S.A.",
"proveedorDireccion": "Calle 123",
"proveedorCuenta": "1234567890",
"proveedorTelefono": 555,
"proveedorEmail": "vip@example.com",
"proveedorRFC": "VIP123456789",
"proveedorContacto": "Juan Perez",
"proveedorEstado": "Activo",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/datos-para-formulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/datos-para-formulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Informacion de proveedor
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/compras/proveedor/info-proveedor/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/info-proveedor/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idBanco\": \"MQ==\",
\"idCategoriaProveedor\": \"Mg==\",
\"proveedorNombre\": \"VIP\",
\"proveedorRazonSocial\": \"VIP S.A.\",
\"proveedorDireccion\": \"Calle 123\",
\"proveedorCuenta\": \"1234567890\",
\"proveedorTelefono\": \"555-1234\",
\"proveedorEmail\": \"vip@example.com\",
\"proveedorRFC\": \"consequatur\",
\"proveedorContacto\": \"Juan Perez\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idBanco": "MQ==",
"idCategoriaProveedor": "Mg==",
"proveedorNombre": "VIP",
"proveedorRazonSocial": "VIP S.A.",
"proveedorDireccion": "Calle 123",
"proveedorCuenta": "1234567890",
"proveedorTelefono": "555-1234",
"proveedorEmail": "vip@example.com",
"proveedorRFC": "consequatur",
"proveedorContacto": "Juan Perez"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idBanco\": \"MQ==\",
\"idCategoriaProveedor\": \"Mg==\",
\"idProveedor\": \"MQ==\",
\"proveedorNombre\": \"VIP\",
\"proveedorRazonSocial\": \"VIP S.A.\",
\"proveedorDireccion\": \"Calle 123\",
\"proveedorCuenta\": \"1234567890\",
\"proveedorTelefono\": \"555-1234\",
\"proveedorEmail\": \"vip@example.com\",
\"proveedorRFC\": \"consequatur\",
\"proveedorContacto\": \"Juan Perez\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idBanco": "MQ==",
"idCategoriaProveedor": "Mg==",
"idProveedor": "MQ==",
"proveedorNombre": "VIP",
"proveedorRazonSocial": "VIP S.A.",
"proveedorDireccion": "Calle 123",
"proveedorCuenta": "1234567890",
"proveedorTelefono": "555-1234",
"proveedorEmail": "vip@example.com",
"proveedorRFC": "consequatur",
"proveedorContacto": "Juan Perez"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar PDF proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/exportar-pdf" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchQuery\": \"juan\",
\"idProveedor\": \"MQ==\",
\"idBanco\": \"MQ==\",
\"proveedorNombre\": \"VIP\",
\"proveedorRazonSocial\": \"VIP S.A.\",
\"proveedorDireccion\": \"Calle 123\",
\"proveedorCuenta\": \"1234567890\",
\"proveedorTelefono\": 555,
\"proveedorEmail\": \"vip@example.com\",
\"proveedorRFC\": \"VIP123456789\",
\"proveedorContacto\": \"Juan Perez\",
\"proveedorEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/exportar-pdf"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchQuery": "juan",
"idProveedor": "MQ==",
"idBanco": "MQ==",
"proveedorNombre": "VIP",
"proveedorRazonSocial": "VIP S.A.",
"proveedorDireccion": "Calle 123",
"proveedorCuenta": "1234567890",
"proveedorTelefono": 555,
"proveedorEmail": "vip@example.com",
"proveedorRFC": "VIP123456789",
"proveedorContacto": "Juan Perez",
"proveedorEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar EXCEL proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/exportar-excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchQuery\": \"juan\",
\"idProveedor\": \"MQ==\",
\"idBanco\": \"MQ==\",
\"proveedorNombre\": \"VIP\",
\"proveedorRazonSocial\": \"VIP S.A.\",
\"proveedorDireccion\": \"Calle 123\",
\"proveedorCuenta\": \"1234567890\",
\"proveedorTelefono\": 555,
\"proveedorEmail\": \"vip@example.com\",
\"proveedorRFC\": \"VIP123456789\",
\"proveedorContacto\": \"Juan Perez\",
\"proveedorEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/exportar-excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchQuery": "juan",
"idProveedor": "MQ==",
"idBanco": "MQ==",
"proveedorNombre": "VIP",
"proveedorRazonSocial": "VIP S.A.",
"proveedorDireccion": "Calle 123",
"proveedorCuenta": "1234567890",
"proveedorTelefono": 555,
"proveedorEmail": "vip@example.com",
"proveedorRFC": "VIP123456789",
"proveedorContacto": "Juan Perez",
"proveedorEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Subir EXCEL proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/subir-excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "archivoExcel=@C:\Users\gdomi\AppData\Local\Temp\php46CA.tmp" const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/subir-excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('archivoExcel', document.querySelector('input[name="archivoExcel"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validar duplicados proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/validar-duplicados" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"proveedoresSeleccionados\": [
{
\"proveedorNombre\": \"Proveedor 1\",
\"proveedorRFC\": \"ABC123456XYZ\",
\"proveedorRazonSocial\": \"Proveedor 1 S.A.\"
},
{
\"proveedorNombre\": \"Proveedor 2\",
\"proveedorRFC\": \"DEF654321ABC\",
\"proveedorRazonSocial\": \"Proveedor 2 S.A.\"
}
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/validar-duplicados"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"proveedoresSeleccionados": [
{
"proveedorNombre": "Proveedor 1",
"proveedorRFC": "ABC123456XYZ",
"proveedorRazonSocial": "Proveedor 1 S.A."
},
{
"proveedorNombre": "Proveedor 2",
"proveedorRFC": "DEF654321ABC",
"proveedorRazonSocial": "Proveedor 2 S.A."
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resumen final antes de importar
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/resumen-proveedores" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"proveedoresValidos\": [
{
\"proveedorNombre\": \"Pedro López\",
\"idCategoriaProveedor\": 1,
\"idListaPrecio\": 1,
\"proveedorFolio\": \"FOLIO-456\",
\"proveedorDireccion\": \"Calle Verdadera 456\",
\"proveedorRFC\": \"RFC987654321\",
\"proveedorEmail\": \"pedro@example.com\",
\"proveedorTelefono\": \"7461200656\"
}
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/resumen-proveedores"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"proveedoresValidos": [
{
"proveedorNombre": "Pedro López",
"idCategoriaProveedor": 1,
"idListaPrecio": 1,
"proveedorFolio": "FOLIO-456",
"proveedorDireccion": "Calle Verdadera 456",
"proveedorRFC": "RFC987654321",
"proveedorEmail": "pedro@example.com",
"proveedorTelefono": "7461200656"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Importar proveedores confirmados
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/importar-confirmados" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"proveedoresConfirmados\": [
{
\"proveedorNombre\": \"Pedro López\",
\"proveedorFolio\": \"FOLIO-456\",
\"proveedorDireccion\": \"Calle Verdadera 456\",
\"proveedorRFC\": \"RFC987654321\",
\"proveedorEmail\": \"pedro@example.com\"
}
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/importar-confirmados"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"proveedoresConfirmados": [
{
"proveedorNombre": "Pedro López",
"proveedorFolio": "FOLIO-456",
"proveedorDireccion": "Calle Verdadera 456",
"proveedorRFC": "RFC987654321",
"proveedorEmail": "pedro@example.com"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle de proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/proveedor/datos-para-detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/datos-para-detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Descargar plantilla de Excel para proveedores
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/compras/proveedor/descargar-plantilla" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/proveedor/descargar-plantilla"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Requisicion
Lista de requisicion
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"requisicionNo\": \"2025-0001\",
\"requisicionFecha\": \"2025-01-01\",
\"usuarioAlias\": \"Juan\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"requisicionNo": "2025-0001",
"requisicionFecha": "2025-01-01",
"usuarioAlias": "Juan",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de historial requisicion
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/lista-historial" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"requisicionNo\": \"2025-0001\",
\"requisicionFecha\": \"2025-01-01\",
\"usuarioAlias\": \"Juan\",
\"pedidoFecha\": \"2025-01-01\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/lista-historial"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"requisicionNo": "2025-0001",
"requisicionFecha": "2025-01-01",
"usuarioAlias": "Juan",
"pedidoFecha": "2025-01-01",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de requisicion
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/datos-para-formulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/datos-para-formulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Productos adicionales
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/producto-adicional" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProducto\": \"MQ==\",
\"cantidad\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/producto-adicional"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProducto": "MQ==",
"cantidad": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
informacion de requisicion
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/info-requisicion/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/info-requisicion/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
informacion requisicion detalle
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/info-requisicion-detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/info-requisicion-detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
informacion requisicion historial
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/info-requisicion-historial/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/info-requisicion-historial/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear o editar requisición
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idRequisicion\": \"MQ==\",
\"idSucursal\": \"MQ==\",
\"idUsuario\": \"MQ==\",
\"requisicionDescripcion\": \"Requisición de oficina\",
\"requisicionObservaciones\": \"Urgente\",
\"requisicionTipo\": \"Externa\",
\"productos\": [
\"consequatur\"
],
\"productosAdicionales\": [
\"consequatur\"
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idRequisicion": "MQ==",
"idSucursal": "MQ==",
"idUsuario": "MQ==",
"requisicionDescripcion": "Requisición de oficina",
"requisicionObservaciones": "Urgente",
"requisicionTipo": "Externa",
"productos": [
"consequatur"
],
"productosAdicionales": [
"consequatur"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar requisicion
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar requisicion
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Solicitar cotización
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/solicitar-cotizacion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idRequisicion\": \"MQ==\",
\"idProveedores\": [
1,
2,
3
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/solicitar-cotizacion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idRequisicion": "MQ==",
"idProveedores": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Todos los productos están relacionados"
}
Example response (200):
{
"success": false,
"incluirNoRelacionados": true,
"idRequisicion": 1,
"idProveedores": [
1,
2,
3
],
"message": "Existen productos que no están relacionados con los proveedores seleccionados..."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generar cotizaciones
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/generar-cotizaciones" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idRequisicion\": \"MQ==\",
\"idProveedores\": [
1,
2,
3
],
\"incluirNoRelacionados\": true
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/requisicion-externa/generar-cotizaciones"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idRequisicion": "MQ==",
"idProveedores": [
1,
2,
3
],
"incluirNoRelacionados": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"success": true,
"message": "Cotizaciones generadas exitosamente."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Pedidos proveedor
Lista de pedidos Proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/compras/pedidos-al-proveedor/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"pedidoNo\": \"2025-000\",
\"pedidoFecha\": \"2025-01-01\",
\"idProveedor\": \"MQ==\",
\"pedidoFechaRecepcion\": \"2025-01-01\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/pedidos-al-proveedor/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pedidoNo": "2025-000",
"pedidoFecha": "2025-01-01",
"idProveedor": "MQ==",
"pedidoFechaRecepcion": "2025-01-01"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de Lista
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/compras/pedidos-al-proveedor/datos-para-formulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/compras/pedidos-al-proveedor/datos-para-formulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Dashboard
Métricas
Obtener todas las métricas del dashboard
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/obtener-metricas" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idSucursal\": 1,
\"fecha_desde\": \"2025-01-01\",
\"fecha_hasta\": \"2025-12-31\",
\"periodo\": \"Mensual\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/obtener-metricas"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idSucursal": 1,
"fecha_desde": "2025-01-01",
"fecha_hasta": "2025-12-31",
"periodo": "Mensual"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcular total en ventas (público y reutilizable)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/total-ventas" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"fecha_desde\": \"2025-01-01\",
\"fecha_hasta\": \"2025-12-31\",
\"idSucursal\": 1
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/total-ventas"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"fecha_desde": "2025-01-01",
"fecha_hasta": "2025-12-31",
"idSucursal": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcular ganancias (público y reutilizable) Ganancia = (Precio Venta - Precio Compra) * Cantidad Vendida
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/ganancias" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/ganancias"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcular pérdidas (público y reutilizable) Pérdidas = Costo * Cantidad perdida en Ajustes (Egreso)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/perdidas" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/perdidas"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcular ingresos y egresos por periodo (público y reutilizable)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/ingresos-egresos" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/ingresos-egresos"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ventas
Obtener últimas ventas
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/ultimas-ventas" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idSucursal\": 1,
\"limite\": 5
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/ultimas-ventas"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idSucursal": 1,
"limite": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cotizaciones
Obtener últimas cotizaciones
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/ultimas-cotizaciones" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idSucursal\": 1,
\"limite\": 5
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/ultimas-cotizaciones"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idSucursal": 1,
"limite": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Productos
Obtener top 5 de productos
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/dashboard/top5-productos" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"tipo\": \"mas_vendidos\",
\"idSucursal\": 1,
\"fecha_desde\": \"2025-01-01\",
\"fecha_hasta\": \"2025-12-31\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/dashboard/top5-productos"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"tipo": "mas_vendidos",
"idSucursal": 1,
"fecha_desde": "2025-01-01",
"fecha_hasta": "2025-12-31"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inventario
Categoría Producto
Lista de categorías de productos
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaProductoSuperior\": \"MQ==\",
\"categoriaProductoAlias\": \"Abarrotes\",
\"categoriaProductoEstado\": \"Activo\",
\"searchQuery\": \"Abar\",
\"sort_field\": \"idCategoriaProducto\",
\"sort_direction\": \"asc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaProductoSuperior": "MQ==",
"categoriaProductoAlias": "Abarrotes",
"categoriaProductoEstado": "Activo",
"searchQuery": "Abar",
"sort_field": "idCategoriaProducto",
"sort_direction": "asc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar categoría de producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaProductoSuperior\": \"MQ==\",
\"categoriaProductoAlias\": \"Lácteos\",
\"categoriaProductoIcono\": \"\\/images\\/categorias\\/lacteos.png\",
\"categoriaProductoEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaProductoSuperior": "MQ==",
"categoriaProductoAlias": "Lácteos",
"categoriaProductoIcono": "\/images\/categorias\/lacteos.png",
"categoriaProductoEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar categoría de producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaProducto\": \"MQ==\",
\"idCategoriaProductoSuperior\": \"MQ==\",
\"categoriaProductoAlias\": \"Lácteos frescos\",
\"categoriaProductoIcono\": \"\\/images\\/categorias\\/lacteos.png\",
\"categoriaProductoEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaProducto": "MQ==",
"idCategoriaProductoSuperior": "MQ==",
"categoriaProductoAlias": "Lácteos frescos",
"categoriaProductoIcono": "\/images\/categorias\/lacteos.png",
"categoriaProductoEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar (inactivar) categoría de producto
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar categoría de producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de categoría (catálogos)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información puntual de categoría (por ID)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/categoria-producto/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Producto
Lista de productos
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idUnidad\": 3,
\"idCategoriaProducto\": 1,
\"idProductoCompuesto\": \"MQ==\",
\"productoAlias\": \"Paracetamol\",
\"productoMarca\": \"ACME\",
\"productoCodigoBarras\": \"7501234567890\",
\"productoSKU\": \"SKU-001\",
\"productoTipo\": \"P\",
\"productoSaldo\": \"S\",
\"productoControlCaducidad\": \"Sí\",
\"productoTasaIVA\": \"A\",
\"productoEstado\": \"Activo\",
\"searchQuery\": \"ACME\",
\"sort_field\": \"idProducto\",
\"sort_direction\": \"asc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idUnidad": 3,
"idCategoriaProducto": 1,
"idProductoCompuesto": "MQ==",
"productoAlias": "Paracetamol",
"productoMarca": "ACME",
"productoCodigoBarras": "7501234567890",
"productoSKU": "SKU-001",
"productoTipo": "P",
"productoSaldo": "S",
"productoControlCaducidad": "Sí",
"productoTasaIVA": "A",
"productoEstado": "Activo",
"searchQuery": "ACME",
"sort_field": "idProducto",
"sort_direction": "asc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "idProductoCompuesto=consequatur"\
--form "idCategoriaProducto=1"\
--form "idUnidad=1"\
--form "productoAlias=Paracetamol 500mg"\
--form "productoMarca=ACME"\
--form "productoFabricante=Laboratorios Salud"\
--form "productoModelo=X100"\
--form "productoSKU=PARA-500"\
--form "productoCodigoBarras=ABC-75"\
--form "productoSerie=S-0001"\
--form "productoPresentacion=Caja con 20 tabletas"\
--form "productoTipoCompuesto=Caja"\
--form "productoComposicionCantidad=500"\
--form "productoSabor=Fresa"\
--form "productoTipo=Simple"\
--form "productoSaldo=Sí"\
--form "productoTasaIVA=16%"\
--form "productoIEPS=8"\
--form "productoEstado=Activo"\
--form "productoControlCaducidad=Sí"\
--form "Imagen=@C:\Users\gdomi\AppData\Local\Temp\php475A.tmp" const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('idProductoCompuesto', 'consequatur');
body.append('idCategoriaProducto', '1');
body.append('idUnidad', '1');
body.append('productoAlias', 'Paracetamol 500mg');
body.append('productoMarca', 'ACME');
body.append('productoFabricante', 'Laboratorios Salud');
body.append('productoModelo', 'X100');
body.append('productoSKU', 'PARA-500');
body.append('productoCodigoBarras', 'ABC-75');
body.append('productoSerie', 'S-0001');
body.append('productoPresentacion', 'Caja con 20 tabletas');
body.append('productoTipoCompuesto', 'Caja');
body.append('productoComposicionCantidad', '500');
body.append('productoSabor', 'Fresa');
body.append('productoTipo', 'Simple');
body.append('productoSaldo', 'Sí');
body.append('productoTasaIVA', '16%');
body.append('productoIEPS', '8');
body.append('productoEstado', 'Activo');
body.append('productoControlCaducidad', 'Sí');
body.append('Imagen', document.querySelector('input[name="Imagen"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"code": 200,
"message": "Producto agregado correctamente",
"data": {
"idProducto": 9
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
data
object
idProducto
integer
ID del producto recién creado.
Editar producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "idProducto=MQ=="\
--form "idProductoCompuesto=MQ=="\
--form "idCategoriaProducto=1"\
--form "idUnidad=5"\
--form "productoAlias=Paracetamol 500mg tabs"\
--form "productoMarca=ACME"\
--form "productoFabricante=Laboratorios Salud"\
--form "productoModelo=X101"\
--form "productoSKU=PARA-500"\
--form "productoCodigoBarras=ABC-75"\
--form "productoSerie=S-0002"\
--form "productoPresentacion=Caja con 20 tabletas"\
--form "productoTipoCompuesto=Charola"\
--form "productoComposicionCantidad=500"\
--form "productoSabor=Fresa"\
--form "productoTipo=Simple"\
--form "productoSaldo=Sí"\
--form "productoTasaIVA=16%"\
--form "productoIEPS=8"\
--form "productoEstado=Activo"\
--form "productoControlCaducidad=Sí"\
--form "precio_publico=40"\
--form "precio_medio=30"\
--form "precio_mayoreo=25"\
--form "Imagen=@C:\Users\gdomi\AppData\Local\Temp\php475D.tmp" const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('idProducto', 'MQ==');
body.append('idProductoCompuesto', 'MQ==');
body.append('idCategoriaProducto', '1');
body.append('idUnidad', '5');
body.append('productoAlias', 'Paracetamol 500mg tabs');
body.append('productoMarca', 'ACME');
body.append('productoFabricante', 'Laboratorios Salud');
body.append('productoModelo', 'X101');
body.append('productoSKU', 'PARA-500');
body.append('productoCodigoBarras', 'ABC-75');
body.append('productoSerie', 'S-0002');
body.append('productoPresentacion', 'Caja con 20 tabletas');
body.append('productoTipoCompuesto', 'Charola');
body.append('productoComposicionCantidad', '500');
body.append('productoSabor', 'Fresa');
body.append('productoTipo', 'Simple');
body.append('productoSaldo', 'Sí');
body.append('productoTasaIVA', '16%');
body.append('productoIEPS', '8');
body.append('productoEstado', 'Activo');
body.append('productoControlCaducidad', 'Sí');
body.append('precio_publico', '40');
body.append('precio_medio', '30');
body.append('precio_mayoreo', '25');
body.append('Imagen', document.querySelector('input[name="Imagen"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inactivar producto
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/inventario/producto/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Descontinuar producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/descontinuar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/descontinuar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar PDF producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/exportar/pdf" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchQuery\": \"gansi\",
\"idProducto\": \"MQ==\",
\"idUnidad\": \"MQ==\",
\"idCategoriaProducto\": \"MQ==\",
\"idProductoCompuesto\": \"MQ==\",
\"productoAlias\": \"Gansito 50g\",
\"productoMarca\": \"Marinela\",
\"productoFabricante\": \"Bimbo\",
\"productoModelo\": \"2024\",
\"productoSKU\": \"GAN-50\",
\"productoCodigoBarras\": \"75010001111\",
\"productoSerie\": \"S-001\",
\"productoPresentacion\": \"50g\",
\"productoTipoCompuesto\": \"Caja\",
\"productoSabor\": \"Chocolate\",
\"productoTipo\": \"Simple\",
\"productoSaldo\": \"Sí\",
\"productoControlCaducidad\": \"Sí\",
\"productoTasaIVA\": \"16%\",
\"productoEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/exportar/pdf"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchQuery": "gansi",
"idProducto": "MQ==",
"idUnidad": "MQ==",
"idCategoriaProducto": "MQ==",
"idProductoCompuesto": "MQ==",
"productoAlias": "Gansito 50g",
"productoMarca": "Marinela",
"productoFabricante": "Bimbo",
"productoModelo": "2024",
"productoSKU": "GAN-50",
"productoCodigoBarras": "75010001111",
"productoSerie": "S-001",
"productoPresentacion": "50g",
"productoTipoCompuesto": "Caja",
"productoSabor": "Chocolate",
"productoTipo": "Simple",
"productoSaldo": "Sí",
"productoControlCaducidad": "Sí",
"productoTasaIVA": "16%",
"productoEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar EXCEL producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/exportar/excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchQuery\": \"gansi\",
\"idProducto\": \"MQ==\",
\"idUnidad\": \"MQ==\",
\"idCategoriaProducto\": \"MQ==\",
\"idProductoCompuesto\": \"MQ==\",
\"productoAlias\": \"Gansito 50g\",
\"productoMarca\": \"Marinela\",
\"productoFabricante\": \"Bimbo\",
\"productoModelo\": \"2024\",
\"productoSKU\": \"GAN-50\",
\"productoCodigoBarras\": \"75010001111\",
\"productoSerie\": \"S-001\",
\"productoPresentacion\": \"50g\",
\"productoTipoCompuesto\": \"Caja\",
\"productoSabor\": \"Chocolate\",
\"productoTipo\": \"Simple\",
\"productoSaldo\": \"Sí\",
\"productoControlCaducidad\": \"Sí\",
\"productoTasaIVA\": \"16%\",
\"productoEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/exportar/excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchQuery": "gansi",
"idProducto": "MQ==",
"idUnidad": "MQ==",
"idCategoriaProducto": "MQ==",
"idProductoCompuesto": "MQ==",
"productoAlias": "Gansito 50g",
"productoMarca": "Marinela",
"productoFabricante": "Bimbo",
"productoModelo": "2024",
"productoSKU": "GAN-50",
"productoCodigoBarras": "75010001111",
"productoSerie": "S-001",
"productoPresentacion": "50g",
"productoTipoCompuesto": "Caja",
"productoSabor": "Chocolate",
"productoTipo": "Simple",
"productoSaldo": "Sí",
"productoControlCaducidad": "Sí",
"productoTasaIVA": "16%",
"productoEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Subir EXCEL productos (solo preview)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/subir-excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "archivoExcel=@C:\Users\gdomi\AppData\Local\Temp\php477D.tmp" const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/subir-excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('archivoExcel', document.querySelector('input[name="archivoExcel"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validar duplicados internos por Código de Barras dentro de la selección del usuario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/validar-duplicados" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"productosSeleccionados\": [
{
\"productoAlias\": \"Gansito\",
\"productoCodigoBarras\": \"75010001111\",
\"idUnidad\": \"MQ==\"
}
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/validar-duplicados"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"productosSeleccionados": [
{
"productoAlias": "Gansito",
"productoCodigoBarras": "75010001111",
"idUnidad": "MQ=="
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resumen final antes de importar (valida contra reglas)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/resumen" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"productosSeleccionados\": [
\"consequatur\"
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/resumen"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"productosSeleccionados": [
"consequatur"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Importar productos confirmados
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/confirmar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"productosConfirmados\": [
\"consequatur\"
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/confirmar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"productosConfirmados": [
"consequatur"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de producto (catálogos y combos)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/producto/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información puntual de producto (por ID)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/producto/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle de producto (prefill de formulario)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/producto/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de ajuste de precio de producto
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/producto/info-ajuste-precio/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/info-ajuste-precio/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ajustar precio de producto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/accion-ajuste-precio" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecioDetalle\": \"MQ==\",
\"precioVenta\": 45.5
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/accion-ajuste-precio"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecioDetalle": "MQ==",
"precioVenta": 45.5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Descargar plantilla de Excel Con Precios
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/producto/plantilla/con-precios" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/plantilla/con-precios"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Descargar plantilla de Excel Sin Precios
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/producto/plantilla/sin-precios" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/plantilla/sin-precios"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear producto compuesto
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/compuesto/crear" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProductoBase\": \"MQ==\",
\"productoTipoCompuesto\": \"Caja\",
\"productoComposicionCantidad\": 12
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/compuesto/crear"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProductoBase": "MQ==",
"productoTipoCompuesto": "Caja",
"productoComposicionCantidad": 12
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Guardar precios del producto en las listas 1,2,3
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/producto/consequatur/precios" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": \"MQ==\",
\"precio_publico\": 40,
\"precio_medio\": 30,
\"precio_mayoreo\": 25,
\"listas_precios\": []
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/producto/consequatur/precios"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": "MQ==",
"precio_publico": 40,
"precio_medio": 30,
"precio_mayoreo": 25,
"listas_precios": []
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Proveedor Producto
Lista de proveedores
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProveedor\": \"MQ==\",
\"idProducto\": \"MQ==\",
\"productoAlias\": \"VIP\",
\"productoMarca\": \"VIP\",
\"productoPresentacion\": \"Caja\",
\"unidadTipo\": \"Piezas\",
\"proveedorProductoEstado\": \"Activo\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProveedor": "MQ==",
"idProducto": "MQ==",
"productoAlias": "VIP",
"productoMarca": "VIP",
"productoPresentacion": "Caja",
"unidadTipo": "Piezas",
"proveedorProductoEstado": "Activo",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar/reactivar producto al proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProveedor\": \"Mg==\",
\"idProducto\": \"MQ== o [\\\"MQ==\\\",\\\"Mg==\\\"]\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProveedor": "Mg==",
"idProducto": "MQ== o [\"MQ==\",\"Mg==\"]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar producto del proveedor
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar producto del proveedor
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario (catálogos y combos)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/form-data?idProveedor=MQ%3D%3D" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/form-data"
);
const params = {
"idProveedor": "MQ==",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información puntual de la relación proveedor-producto
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle (prefill de edición) de la relación proveedor-producto
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/proveedor-producto/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unidad
Lista de unidades
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/unidad/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"unidadTipo\": \"Pieza\",
\"unidadEstado\": \"Activo\",
\"searchQuery\": \"Piez\",
\"sort_field\": \"idUnidad\",
\"sort_direction\": \"asc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"unidadTipo": "Pieza",
"unidadEstado": "Activo",
"searchQuery": "Piez",
"sort_field": "idUnidad",
"sort_direction": "asc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar unidad
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/unidad/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"unidadTipo\": \"Pieza\",
\"unidadEstado\": \"Inactivo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"unidadTipo": "Pieza",
"unidadEstado": "Inactivo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar unidad
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/unidad/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idUnidad\": \"MQ==\",
\"unidadTipo\": \"Pza\",
\"unidadEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idUnidad": "MQ==",
"unidadTipo": "Pza",
"unidadEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar (inactivar) unidad
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/inventario/unidad/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar unidad
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/unidad/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de unidad (catálogos)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/unidad/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información puntual de unidad (por ID)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/unidad/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle de unidad (prefill de edición)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/inventario/unidad/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/unidad/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inventario
Obtener kardex de productos con paginación y renderizado responsivo
requires authentication
Retorna un kardex procesado (historial de movimientos) con datos paginados que se renderizan en vistas parciales responsivas según el tipo de dispositivo. Solo responde a solicitudes AJAX.
OPTIMIZACIONES IMPLEMENTADAS:
- Agregación de datos directamente en la BD (SUM, GROUP BY) para reducir procesamiento en PHP
- Índices en tablas para acelerar búsquedas (fecha, producto, sucursal)
- Caching con tags (1 hora TTL) para evitar recálculos frecuentes
- Selección de columnas específicas (sin traer campos innecesarios)
- Joins eficientes en lugar de relaciones N+1
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/Inventario/obtener-productos-kardex?page=1&dispositivo=Tablet&idProducto=1&idSucursal=1&desde=2025-10-01&hasta=2025-10-31&fecha=2025-10-31" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/Inventario/obtener-productos-kardex"
);
const params = {
"page": "1",
"dispositivo": "Tablet",
"idProducto": "1",
"idSucursal": "1",
"desde": "2025-10-01",
"hasta": "2025-10-31",
"fecha": "2025-10-31",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"html": "<table>...</table>",
"hasMore": true
}
Example response (200):
{
"html": "",
"hasMore": false
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Response
Response Fields
html
string
HTML renderizado de la vista parcial (Tablet o Desktop)
hasMore
boolean
Indica si hay más páginas disponibles
Exportar kardex de productos a Excel
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/Inventario/exportar-kardex-excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/Inventario/exportar-kardex-excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar kardex de productos a PDF
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/inventario/Inventario/exportar-kardex-pdf" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/inventario/Inventario/exportar-kardex-pdf"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Login
Acceso
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/acceso" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"usuarioAlias\": \"vmqeopfuudtdsufvyvddqamniihfqcoynlazghdtqtqxbajwbpilpmufinllwloauydlsmsju\",
\"usuarioPassword\": \"ryvojcybzvrbyickznkygloigmkwxphlvazjrcnfbaqywuxhgjjmzuxjubqouzswiwxtrkimf\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/acceso"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"usuarioAlias": "vmqeopfuudtdsufvyvddqamniihfqcoynlazghdtqtqxbajwbpilpmufinllwloauydlsmsju",
"usuarioPassword": "ryvojcybzvrbyickznkygloigmkwxphlvazjrcnfbaqywuxhgjjmzuxjubqouzswiwxtrkimf"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validar usuario
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/validar-usuario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"usuarioEmail\": \"1jXk@U.P{2,}\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/validar-usuario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"usuarioEmail": "1jXk@U.P{2,}"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validar codigo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/validar-codigo" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/validar-codigo"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Solicitar nuevo codigo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/solicitar-nuevo-codigo" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/solicitar-nuevo-codigo"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Actualizar contraseña
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/actualizar-contrasena" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"usuarioPassword\": \"consequatur\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/actualizar-contrasena"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"usuarioPassword": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cerrar sesión
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/cerrar-sesion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/cerrar-sesion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Promociones
Combos
Lista de combos
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCombo\": 1,
\"idComboProducto\": 2,
\"idListaPrecioDetalle\": 3,
\"comboAlias\": \"Combo 1\",
\"listaPrecioDetalleImporte\": 100,
\"comboFechaInicio\": \"2023-01-01\",
\"comboFechaFin\": \"2023-12-31\",
\"comboEstado\": \"Activo\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCombo": 1,
"idComboProducto": 2,
"idListaPrecioDetalle": 3,
"comboAlias": "Combo 1",
"listaPrecioDetalleImporte": 100,
"comboFechaInicio": "2023-01-01",
"comboFechaFin": "2023-12-31",
"comboEstado": "Activo",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de creación/edición de combo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/datos-para-formulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/datos-para-formulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de un combo
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/promociones/combo/info-combo/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/info-combo/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear o editar combo Paso 1
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/crear-paso-1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCombo\": \"MQ==\",
\"comboAlias\": \"Combo 1\",
\"comboFechaInicio\": \"2023-01-01\",
\"comboFechaFin\": \"2023-12-31\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/crear-paso-1"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCombo": "MQ==",
"comboAlias": "Combo 1",
"comboFechaInicio": "2023-01-01",
"comboFechaFin": "2023-12-31"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear combo Paso 2
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/crear-paso-2" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCombo\": \"MQ==\",
\"productos\": [
\"consequatur\"
],
\"listaPrecioDetalleImporte\": \"100\",
\"idListaPrecioDetalle\": \"MQ==\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/crear-paso-2"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCombo": "MQ==",
"productos": [
"consequatur"
],
"listaPrecioDetalleImporte": "100",
"idListaPrecioDetalle": "MQ=="
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear combo Paso 3 (Revisión final)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/crear-paso-3" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCombo\": \"MQ==\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/crear-paso-3"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCombo": "MQ=="
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"code": 200,
"data": {
"combo": {},
"productos": [],
"listaPrecioDetalle": {}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Guardar combo definitivo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/guardar-combo-final" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCombo\": \"MQ==\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/guardar-combo-final"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCombo": "MQ=="
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"code": 200,
"message": "Combo guardado y activado correctamente",
"data": {
"combo": {}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancelar combo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/cancelar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/cancelar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar combo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar combo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información detallada de un combo
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/promociones/promocion/info-promocion/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/promocion/info-promocion/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Combo Producto
Lista de productos
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo-producto/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCombo\": \"MQ==\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo-producto/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCombo": "MQ=="
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar producto al combo
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/combo-producto/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProducto\": \"MQ==\",
\"idCombo\": \"MQ==\",
\"cantidad\": 2
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo-producto/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProducto": "MQ==",
"idCombo": "MQ==",
"cantidad": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar producto del combo
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/promociones/combo-producto/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/combo-producto/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Promocion
Lista de promocion mixta
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/promocion/lista-mixto" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProducto\": \"Producto MQ==\",
\"idProductoGratis\": \"Producto MQ==\",
\"promocionFechaInicio\": \"2023-01-01\",
\"promocionFechaFin\": \"2023-01-31\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/promocion/lista-mixto"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProducto": "Producto MQ==",
"idProductoGratis": "Producto MQ==",
"promocionFechaInicio": "2023-01-01",
"promocionFechaFin": "2023-01-31",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de promocion gratis
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/promocion/lista-gratis" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProducto\": \"Producto MQ==\",
\"promocionFechaInicio\": \"2023-01-01\",
\"promocionFechaFin\": \"2023-01-31\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/promocion/lista-gratis"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProducto": "Producto MQ==",
"promocionFechaInicio": "2023-01-01",
"promocionFechaFin": "2023-01-31",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de promocion metodo de pago
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/promocion/lista-metodo-pago" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idProducto\": \"Producto MQ==\",
\"detallePromocionPorcentaje\": \"10.5\",
\"promocionFechaInicio\": \"2023-01-01\",
\"promocionFechaFin\": \"2023-01-31\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/promocion/lista-metodo-pago"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idProducto": "Producto MQ==",
"detallePromocionPorcentaje": "10.5",
"promocionFechaInicio": "2023-01-01",
"promocionFechaFin": "2023-01-31",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear o editar promoción
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/promocion/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idPromocion\": \"MQ==\",
\"idProducto\": \"MQ==\",
\"idProductoGratis\": \"MQ==\",
\"idPromocionProducto\": \"MQ==\",
\"idDetallePromocion\": \"MQ==\",
\"promocionAlias\": \"Promo Enero\",
\"promocionFechaInicio\": \"2023-01-01\",
\"promocionFechaFin\": \"2023-01-31\",
\"promocionTipo\": \"Método de Pago\",
\"promocionDescripcion\": \"Descuento especial por año nuevo\",
\"detallePromocionMetodoPago\": \"Tarjeta de Crédito\",
\"detallePromocionCantidadBonificada\": 2,
\"detallePromocionMonto\": \"50.75\",
\"detallePromocionPorcentaje\": \"10.5\",
\"detallePromocionCantidadRequerida\": 5
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/promocion/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idPromocion": "MQ==",
"idProducto": "MQ==",
"idProductoGratis": "MQ==",
"idPromocionProducto": "MQ==",
"idDetallePromocion": "MQ==",
"promocionAlias": "Promo Enero",
"promocionFechaInicio": "2023-01-01",
"promocionFechaFin": "2023-01-31",
"promocionTipo": "Método de Pago",
"promocionDescripcion": "Descuento especial por año nuevo",
"detallePromocionMetodoPago": "Tarjeta de Crédito",
"detallePromocionCantidadBonificada": 2,
"detallePromocionMonto": "50.75",
"detallePromocionPorcentaje": "10.5",
"detallePromocionCantidadRequerida": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar promocion
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/promociones/promocion/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/promocion/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar promocion
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/promociones/promocion/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/promociones/promocion/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Punto de Venta
Categoria Cliente
Lista de categorías de clientes
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaCliente\": 2,
\"categoriaClienteAlias\": \"VIP\",
\"categoriaClienteObservaciones\": \"Cliente importante\",
\"categoriaClienteEstado\": \"Activo\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaCliente": 2,
"categoriaClienteAlias": "VIP",
"categoriaClienteObservaciones": "Cliente importante",
"categoriaClienteEstado": "Activo",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información de categoría cliente
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/info-categoria-cliente/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/info-categoria-cliente/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar categoría cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"categoriaClienteAlias\": \"VIP\",
\"categoriaClienteObservaciones\": \"Cliente importante\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"categoriaClienteAlias": "VIP",
"categoriaClienteObservaciones": "Cliente importante"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar categoría cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaCliente\": \"MQ==\",
\"categoriaClienteAlias\": \"VIP\",
\"categoriaClienteObservaciones\": \"Cliente importante\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaCliente": "MQ==",
"categoriaClienteAlias": "VIP",
"categoriaClienteObservaciones": "Cliente importante"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar categoría cliente
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar categoría cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/categoria-cliente/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Clientes
Lista de clientes
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCliente\": 1,
\"idCategoriaCliente\": 2,
\"idListaPrecio\": 3,
\"clienteNombre\": \"Juan Pérez\",
\"clienteFolio\": \"C-1001\",
\"clienteEmail\": \"juan@example.com\",
\"clienteTelefono\": \"555-1234\",
\"clienteEstado\": \"Activo\",
\"searchQuery\": \"Juan\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCliente": 1,
"idCategoriaCliente": 2,
"idListaPrecio": 3,
"clienteNombre": "Juan Pérez",
"clienteFolio": "C-1001",
"clienteEmail": "juan@example.com",
"clienteTelefono": "555-1234",
"clienteEstado": "Activo",
"searchQuery": "Juan"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/datos-para-formulario" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/datos-para-formulario"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Informacion de cliente
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/cliente/info-cliente/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/info-cliente/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCategoriaCliente\": \"MQ==\",
\"idListaPrecio\": \"MQ==\",
\"clienteNombre\": \"Juan Pérez\",
\"clienteEmail\": \"juan@example.com\",
\"clienteTelefono\": \"555-1234\",
\"clienteEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCategoriaCliente": "MQ==",
"idListaPrecio": "MQ==",
"clienteNombre": "Juan Pérez",
"clienteEmail": "juan@example.com",
"clienteTelefono": "555-1234",
"clienteEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCliente\": \"MQ==\",
\"idCategoriaCliente\": \"MQ==\",
\"clienteNombre\": \"Juan Pérez\",
\"clienteEmail\": \"juan@example.com\",
\"clienteTelefono\": \"555-1234\",
\"idListaPrecio\": \"MQ==\",
\"clienteEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCliente": "MQ==",
"idCategoriaCliente": "MQ==",
"clienteNombre": "Juan Pérez",
"clienteEmail": "juan@example.com",
"clienteTelefono": "555-1234",
"idListaPrecio": "MQ==",
"clienteEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar PDF clientes
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/exportar-pdf" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchQuery\": \"juan\",
\"clienteAlias\": \"Cliente 1\",
\"clienteTelefono\": \"555-1234\",
\"clienteEmail\": \"juan@example.com\",
\"clienteEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/exportar-pdf"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchQuery": "juan",
"clienteAlias": "Cliente 1",
"clienteTelefono": "555-1234",
"clienteEmail": "juan@example.com",
"clienteEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Consultar estado de exportación PDF
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/cliente/consultar-estado-exporta-pdf" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/consultar-estado-exporta-pdf"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar EXCEL clientes
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/exportar-excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchQuery\": \"juan\",
\"clienteAlias\": \"Cliente 1\",
\"clienteTelefono\": \"555-1234\",
\"clienteEmail\": \"juan@example.com\",
\"clienteEstado\": \"Activo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/exportar-excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchQuery": "juan",
"clienteAlias": "Cliente 1",
"clienteTelefono": "555-1234",
"clienteEmail": "juan@example.com",
"clienteEstado": "Activo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Subir EXCEL clientes
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/subir-excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "archivoExcel=@C:\Users\gdomi\AppData\Local\Temp\php45EC.tmp" const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/subir-excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('archivoExcel', document.querySelector('input[name="archivoExcel"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validar duplicados clientes
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/validar-duplicados" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"clientesSeleccionados\": null
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/validar-duplicados"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"clientesSeleccionados": null
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resumen final antes de importar
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/resumen-clientes" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"clientesValidos\": [
{
\"clienteNombre\": \"Pedro López\",
\"idCategoriaCliente\": 1,
\"idListaPrecio\": 1,
\"clienteEmail\": \"pedro@example.com\",
\"clienteTelefono\": \"7461200656\"
}
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/resumen-clientes"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"clientesValidos": [
{
"clienteNombre": "Pedro López",
"idCategoriaCliente": 1,
"idListaPrecio": 1,
"clienteEmail": "pedro@example.com",
"clienteTelefono": "7461200656"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Importar clientes confirmados
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/importar-confirmados" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"clientesConfirmados\": [
{
\"clienteNombre\": \"Pedro López\",
\"clienteEmail\": \"pedro@example.com\"
}
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/importar-confirmados"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"clientesConfirmados": [
{
"clienteNombre": "Pedro López",
"clienteEmail": "pedro@example.com"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Asociar lista de precios a cliente
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/asociar-lista-precio" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecio\": \"MQ==\",
\"idCliente\": \"MQ==\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/asociar-lista-precio"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecio": "MQ==",
"idCliente": "MQ=="
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Descargar plantilla de Excel para importar clientes
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/cliente/descargar-plantilla" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cliente/descargar-plantilla"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de Precio
Consulta Lista de precios (para selects, sin paginar)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/consultar-listas-precio" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"listaPrecioAlias\": \"Lista 1\",
\"listaPrecioDescripcion\": \"Descripción de la lista 1\",
\"listaPrecioEstado\": \"Activo\",
\"listaPrecioSwitch\": \"Prendida\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/consultar-listas-precio"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"listaPrecioAlias": "Lista 1",
"listaPrecioDescripcion": "Descripción de la lista 1",
"listaPrecioEstado": "Activo",
"listaPrecioSwitch": "Prendida"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista precio
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"searchQuery\": \"consequatur\",
\"sort_field\": \"idListaPrecio\",
\"sort_direction\": \"asc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"searchQuery": "consequatur",
"sort_field": "idListaPrecio",
"sort_direction": "asc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear lista de precio
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/crear" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"listaPrecioAlias\": \"Lista 1\",
\"listaPrecioDescripcion\": \"Descripción navideña\",
\"listaPrecioEstado\": \"Inactivo\",
\"listaPrecioSwitch\": \"Apagado\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/crear"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"listaPrecioAlias": "Lista 1",
"listaPrecioDescripcion": "Descripción navideña",
"listaPrecioEstado": "Inactivo",
"listaPrecioSwitch": "Apagado"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar lista de precio
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecio\": \"MQ==\",
\"listaPrecioAlias\": \"Lista Black Friday\",
\"listaPrecioDescripcion\": \"Actualizada\",
\"listaPrecioEstado\": \"Activo\",
\"listaPrecioSwitch\": \"Apagado\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecio": "MQ==",
"listaPrecioAlias": "Lista Black Friday",
"listaPrecioDescripcion": "Actualizada",
"listaPrecioEstado": "Activo",
"listaPrecioSwitch": "Apagado"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inactivar (eliminar lógico) lista de precio
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar lista de precio
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alternar switch (Prendida/Apagado)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/alternar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/alternar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Duplicar lista de precio
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/duplicar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/duplicar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario de Lista de precio (catálogos)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información puntual de una lista de precio
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle (prefill de edición) de una lista de precio
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cotización
Lista de cotizaciones
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCliente\": 12,
\"idUsuario\": 7,
\"idSucursal\": 3,
\"cotizacionEstado\": \"Vigente\",
\"fecha_desde\": \"2025-01-01\",
\"fecha_hasta\": \"2025-12-31\",
\"searchQuery\": \"COT-2025-001\",
\"sort_field\": \"cotizacionFecha\",
\"sort_direction\": \"desc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCliente": 12,
"idUsuario": 7,
"idSucursal": 3,
"cotizacionEstado": "Vigente",
"fecha_desde": "2025-01-01",
"fecha_hasta": "2025-12-31",
"searchQuery": "COT-2025-001",
"sort_field": "cotizacionFecha",
"sort_direction": "desc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crear cotización
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/crear" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCliente\": 12,
\"idUsuario\": 7,
\"idSucursal\": 3,
\"cotizacionFecha\": \"2025-09-22 13:45:00\",
\"cotizacionFechaVencimiento\": \"2025-10-01\",
\"cotizacionObservaciones\": \"consequatur\",
\"cotizacionSubtotal\": 1000,
\"cotizacionTotal\": 1160,
\"cotizacionEstado\": \"Vigente\",
\"cotizacionNo\": \"COT-0001\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/crear"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCliente": 12,
"idUsuario": 7,
"idSucursal": 3,
"cotizacionFecha": "2025-09-22 13:45:00",
"cotizacionFechaVencimiento": "2025-10-01",
"cotizacionObservaciones": "consequatur",
"cotizacionSubtotal": 1000,
"cotizacionTotal": 1160,
"cotizacionEstado": "Vigente",
"cotizacionNo": "COT-0001"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar cotización
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCotizacion\": \"MQ==\",
\"idCliente\": 12,
\"idUsuario\": 7,
\"idSucursal\": 3,
\"cotizacionFecha\": \"2025-09-22 13:45:00\",
\"cotizacionFechaVencimiento\": \"2025-10-01\",
\"cotizacionObservaciones\": \"consequatur\",
\"cotizacionSubtotal\": 1000,
\"cotizacionTotal\": 1160,
\"cotizacionEstado\": \"Vigente\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCotizacion": "MQ==",
"idCliente": 12,
"idUsuario": 7,
"idSucursal": 3,
"cotizacionFecha": "2025-09-22 13:45:00",
"cotizacionFechaVencimiento": "2025-10-01",
"cotizacionObservaciones": "consequatur",
"cotizacionSubtotal": 1000,
"cotizacionTotal": 1160,
"cotizacionEstado": "Vigente"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reactivar cotización
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/reactivar/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idCotizacion\": \"MQ==\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/reactivar/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idCotizacion": "MQ=="
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Eliminar cotización
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar PDF
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/exportar-pdf" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/exportar-pdf"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Exportar EXCEL
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/exportar-excel" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/exportar-excel"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/v1/punto-venta/cotizacion/imprimir/{id}
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/imprimir/consequatur" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/imprimir/consequatur"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario (catálogos)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/form-data" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/form-data"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información puntual de una cotización
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle (prefill de edición)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/cotizacion/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de precios - Detalle
Lista de productos asociados a una lista de precios
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/lista" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecio\": \"MQ==\",
\"idProducto\": \"MQ==\",
\"searchQuery\": \"johnnie\",
\"listaPrecioDetalleEstado\": \"A\",
\"sort_field\": \"idListaPrecioDetalle\",
\"sort_direction\": \"asc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/lista"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecio": "MQ==",
"idProducto": "MQ==",
"searchQuery": "johnnie",
"listaPrecioDetalleEstado": "A",
"sort_field": "idListaPrecioDetalle",
"sort_direction": "asc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Agregar un producto a la lista de precios (una fila)
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/accion" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecio\": \"MQ==\",
\"idProducto\": \"MQ==\",
\"idPromocion\": 17,
\"idCombo\": 17,
\"listaPrecioDetalleImporte\": 40,
\"listaPrecioDetalleFecha\": \"2025-12-12\",
\"listaPrecioDetallePorcentaje\": 0,
\"listaPrecioDetalleEstado\": \"Inactivo\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/accion"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecio": "MQ==",
"idProducto": "MQ==",
"idPromocion": 17,
"idCombo": 17,
"listaPrecioDetalleImporte": 40,
"listaPrecioDetalleFecha": "2025-12-12",
"listaPrecioDetallePorcentaje": 0,
"listaPrecioDetalleEstado": "Inactivo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar una fila de la lista de precios
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/editar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecioDetalle\": \"MQ==\",
\"idListaPrecio\": 17,
\"idProducto\": 17,
\"idPromocion\": 17,
\"idCombo\": 17,
\"listaPrecioDetalleImporte\": 41,
\"listaPrecioDetalleFecha\": \"2025-12-12\",
\"listaPrecioDetallePorcentaje\": 5,
\"listaPrecioDetalleEstado\": \"A\"
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/editar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecioDetalle": "MQ==",
"idListaPrecio": 17,
"idProducto": 17,
"idPromocion": 17,
"idCombo": 17,
"listaPrecioDetalleImporte": 41,
"listaPrecioDetalleFecha": "2025-12-12",
"listaPrecioDetallePorcentaje": 5,
"listaPrecioDetalleEstado": "A"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Asociar productos MASIVO (upsert por idListaPrecio + idProducto) Recibe varios items con idProducto y precios.
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/asociar" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecio\": \"MQ==\",
\"items\": [
\"consequatur\"
]
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/asociar"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecio": "MQ==",
"items": [
"consequatur"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inactivar fila
requires authentication
Example request:
curl --request DELETE \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/eliminar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/eliminar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activar fila
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/activar/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/activar/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Aplicar descuento global a una lista
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/descuento-global" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecio\": \"MQ==\",
\"porcentaje\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/descuento-global"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecio": "MQ==",
"porcentaje": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para formulario (catálogos, combos y sugerencias)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/form-data?idListaPrecio=MQ%3D%3D" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/form-data"
);
const params = {
"idListaPrecio": "MQ==",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Información puntual de un detalle de lista (por ID)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/info/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/info/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Datos para detalle (prefill de edición)
requires authentication
Example request:
curl --request GET \
--get "https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/detalle/MQ==" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/detalle/MQ=="
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"success": false,
"message": "Token inválido o no autenticado.",
"errors": {
"token": [
"No tienes acceso a este recurso."
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista de precios diferenciados
requires authentication
Example request:
curl --request POST \
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/lista-diferenciada" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"idListaPrecio\": [
\"MQ==\",
\"Mg==\",
\"Mw==\"
],
\"idProducto\": \"MQ==\",
\"idAlmacen\": 5,
\"con_stock\": true,
\"solo_activo_inventario\": false,
\"searchQuery\": \"johnnie\",
\"listaPrecioDetalleEstado\": \"A\",
\"sort_field\": \"idListaPrecioDetalle\",
\"sort_direction\": \"asc\",
\"perPage\": 10
}"
const url = new URL(
"https://tequilas-mezcales.test/api/v1/punto-venta/lista-precio-detalle/lista-diferenciada"
);
const headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"idListaPrecio": [
"MQ==",
"Mg==",
"Mw=="
],
"idProducto": "MQ==",
"idAlmacen": 5,
"con_stock": true,
"solo_activo_inventario": false,
"searchQuery": "johnnie",
"listaPrecioDetalleEstado": "A",
"sort_field": "idListaPrecioDetalle",
"sort_direction": "asc",
"perPage": 10
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.