Skip to main content

Tax Regimes (Regimen Fiscal)

List All Tax Regimes

curl -X GET "${VITE_BASE_URL}/regimen_fiscal" \
  -H "Authorization: Bearer <token>"
Retrieves all available tax regimes for Mexican tax compliance. Authentication Required: Yes

Response

data
array
Array of tax regime objects
id
number
Tax regime code (e.g., 601, 603, 612)
code
string
SAT tax regime code
description
string
Tax regime description
moral
boolean
Applicable to legal entities (moral persons)
fisica
boolean
Applicable to individuals (physical persons)
{
  "data": [
    {
      "id": 601,
      "code": "601",
      "description": "General de Ley Personas Morales",
      "moral": true,
      "fisica": false
    },
    {
      "id": 612,
      "code": "612",
      "description": "Personas Físicas con Actividades Empresariales y Profesionales",
      "moral": false,
      "fisica": true
    },
    {
      "id": 626,
      "code": "626",
      "description": "Régimen Simplificado de Confianza",
      "moral": true,
      "fisica": true
    }
  ]
}

CFDI Use Codes

List All CFDI Codes

curl -X GET "${VITE_BASE_URL}/cfdi" \
  -H "Authorization: Bearer <token>"
Retrieves all CFDI (Comprobante Fiscal Digital por Internet) use codes. Authentication Required: Yes

Response

data
array
Array of CFDI code objects
code
string
CFDI use code (e.g., “G01”, “G03”, “D10”)
description
string
Description of the CFDI use
applies_to_moral
boolean
Applicable to legal entities
applies_to_fisica
boolean
Applicable to individuals
regimen_fiscal
array
Compatible tax regime codes
{
  "data": [
    {
      "code": "G01",
      "description": "Adquisición de mercancías",
      "applies_to_moral": true,
      "applies_to_fisica": true,
      "regimen_fiscal": ["601", "603", "612"]
    },
    {
      "code": "G03",
      "description": "Gastos en general",
      "applies_to_moral": true,
      "applies_to_fisica": true,
      "regimen_fiscal": ["601", "603", "606", "612"]
    },
    {
      "code": "D10",
      "description": "Pagos por servicios educativos (colegiaturas)",
      "applies_to_moral": false,
      "applies_to_fisica": true,
      "regimen_fiscal": ["605", "606"]
    }
  ]
}

Units

List All Units

curl -X GET "${VITE_BASE_URL}/unit" \
  -H "Authorization: Bearer <token>"
Retrieves all available measurement units for products. Authentication Required: Yes

Response

data
array
Array of unit objects
id
number
Unit unique identifier
code
string
Unit code (e.g., “PZ”, “KG”, “M”)
name
string
Unit name
description
string
Unit description
symbol
string
Unit symbol
{
  "data": [
    {
      "id": 1,
      "code": "PZ",
      "name": "Pieza",
      "description": "Unidad de pieza",
      "symbol": "pz"
    },
    {
      "id": 2,
      "code": "KG",
      "name": "Kilogramo",
      "description": "Unidad de peso",
      "symbol": "kg"
    },
    {
      "id": 3,
      "code": "M",
      "name": "Metro",
      "description": "Unidad de longitud",
      "symbol": "m"
    },
    {
      "id": 4,
      "code": "LT",
      "name": "Litro",
      "description": "Unidad de volumen",
      "symbol": "L"
    }
  ]
}

Warehouses

List All Warehouses

curl -X GET "${VITE_BASE_URL}/warehouse" \
  -H "Authorization: Bearer <token>"
Retrieves all warehouse locations. Authentication Required: Yes

Response

data
array
Array of warehouse objects
id
number
Warehouse unique identifier
name
string
Warehouse name
code
string
Warehouse code or identifier
address
string
Warehouse physical address
city
string
City location
state
string
State or province
country
string
Country
status
string
Warehouse status (active, inactive)
manager
string
Warehouse manager name
contact_phone
string
Contact phone number
{
  "data": [
    {
      "id": 1,
      "name": "Almacén Principal",
      "code": "WH-001",
      "address": "Calle Industrial 100",
      "city": "Ciudad de México",
      "state": "CDMX",
      "country": "México",
      "status": "active",
      "manager": "Carlos Ramírez",
      "contact_phone": "+52 55 1111 2222"
    },
    {
      "id": 2,
      "name": "Almacén Monterrey",
      "code": "WH-002",
      "address": "Av. Constitución 500",
      "city": "Monterrey",
      "state": "Nuevo León",
      "country": "México",
      "status": "active",
      "manager": "Ana López",
      "contact_phone": "+52 81 3333 4444"
    }
  ]
}

Build docs developers (and LLMs) love