Issue a simple FE
The shortest way to issue an electronic invoice (FE) against Hacienda (Costa Rica’s tax authority): a registered customer, one product line, and an Idempotency-Key so a network retry never generates a duplicate document.
curl -X POST https://api.pos.lxsyscr.com/api/v1/facturas \
-H "X-Api-Key: $LXS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"tipo": "FacturaElectronica",
"idUsuario": 7,
"cliente": { "idCliente": 42 },
"condicionVenta": "01",
"medioPago": "01",
"moneda": "CRC",
"lineas": [
{ "idProducto": 100, "cantidad": 2 }
]
}'The response contains the 50-digit clave and the initial estadoHacienda (typically procesando). To learn the final status, subscribe to webhooks or query the detail endpoint.