Catálogo individual de producto
GET /api/items/table/{item_table}
Autenticación: Bearer del usuario del tenant (Authorization: Bearer <api_token>).
Devuelve un catálogo: item_table = categories, unit_types o affectation_igv_types (tipos de afectación IGV activos). Otro valor devuelve [].
Quién puede usarlo: cualquier usuario autenticado (administrador o vendedor).
Formato de respuesta: heredado sin envoltura: devuelve directamente el objeto o arreglo (sin success). Arreglo sin envoltura.
Parámetros
| Parámetro | Dónde | Obligatorio | Ejemplo | Descripción |
|---|---|---|---|---|
item_table |
ruta | sí | unit_types |
Respuestas
200 — unit_types
[
{
"id": "NIU",
"description": "Unidad",
"symbol": "und"
}
]
200 — affectation_igv_types
[
{
"id": "10",
"active": 1,
"exportation": 0,
"free": 0,
"description": "Gravado - Operación Onerosa"
}
]
Pruébalo
Prueba este endpoint con tu empresa y tu token: elige la URL en Servers, pega el token en Authorize y haz clic en Try it out.