Skip to main content

Verificar NIT

POST /api/v1/codes/nit
Verifica si un NIT es valido ante el SIAT.

Request Body

posId
string
required
UUID del punto de venta.
nit
integer
required
Numero de NIT a verificar.
curl -X POST https://sandbox.cucu.bo/api/v1/codes/nit \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_test_MuLfItnPAScdhgrOsYn6Y4ur_gdMfCSMXtLciK9P8S8" \
  -d '{"posId": "660e8400-e29b-41d4-a716-446655440004", "nit": 1023456789}'
Respuesta:
{
  "success": true,
  "data": {
    "valido": true,
    "nit": 1023456789,
    "mensaje": "NIT valido"
  }
}

Regenerar CUFD

POST /api/v1/codes/cufd
Genera un nuevo CUFD (Codigo Unico de Facturacion Diaria) para un punto de venta. El CUFD es requerido para emitir facturas y tiene vigencia limitada.

Request Body

posId
string
required
UUID del punto de venta.
curl -X POST https://sandbox.cucu.bo/api/v1/codes/cufd \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_test_MuLfItnPAScdhgrOsYn6Y4ur_gdMfCSMXtLciK9P8S8" \
  -d '{"posId": "660e8400-e29b-41d4-a716-446655440004"}'
Respuesta:
{
  "success": true,
  "data": {
    "cufd": "BQW5FZ...",
    "codigoControl": "A1B2C3",
    "vigencia": "2026-02-12T00:00:00"
  }
}

Consultar CUFD Activo

GET /api/v1/codes/cufd/{posId}
Obtiene el CUFD activo de un punto de venta.
curl -X GET https://sandbox.cucu.bo/api/v1/codes/cufd/660e8400-e29b-41d4-a716-446655440004 \
  -H "X-API-Key: sk_test_MuLfItnPAScdhgrOsYn6Y4ur_gdMfCSMXtLciK9P8S8"
{
  "success": true,
  "data": {
    "cufd": "BQW5FZ...",
    "codigoControl": "A1B2C3",
    "vigencia": "2026-02-12T00:00:00",
    "activo": true
  }
}