cURL
curl --request GET \ --url https://api.example.com/api/v1/lookups/taxes \ --header 'Authorization: <authorization>' \ --header 'X-Factus-Token: <x-factus-token>'
{ "400": {}, "401": {}, "success": true, "message": "<string>", "data": [ { "id": 123, "name": "<string>", "code": "<string>", "description": "<string>" } ], "errors": "<any>" }
Retrieve a list of available product tax types for e-invoicing
Bearer <your_access_token>
curl --request GET \ --url https://api.yourapp.com/api/v1/lookups/taxes \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \ --header 'X-Factus-Token: your_factus_token_here'
{ "success": true, "message": "Tipos de impuesto obtenidos exitosamente", "data": [ { "id": 1, "name": "IVA", "code": "01", "description": "Impuesto al Valor Agregado" }, { "id": 2, "name": "INC", "code": "04", "description": "Impuesto Nacional al Consumo" }, { "id": 3, "name": "ICA", "code": "03", "description": "Impuesto de Industria y Comercio" }, { "id": 4, "name": "No Causa", "code": "ZZ", "description": null } ], "errors": null }
{ "detail": "Error al obtener datos de Factus: Invalid token" }
{ "detail": "Not authenticated" }
detail