Skip to Content
v1.5Official documentation for the LX CloudPos API · stable in production
v1.5 (current)Endpoint referenceQuery purchase invoice

Query purchase invoice

GET /api/v1/facturas-compra/{clave}

Returns the current status of a purchase invoice. Same behavior as GET /facturas/{clave}, applied to the 08 key space.

Authentication and permissions

AttributeValue
SchemeAPI key (X-Api-Key)
Required scopefacturas-compra:read
IdempotentYes (every GET is)

Example

curl https://api.pos.lxsyscr.com/api/v1/facturas-compra/50615012600310112345600100001080000000123456789012 \ -H "X-Api-Key: $LXS_API_KEY"

Responses

200 OK

{ "clave": "50615012600310112345600100001080000000123456789012", "numeroConsecutivo": "00100001080000000123", "tipoDocumento": "08", "estadoHacienda": "aceptado", "totalComprobante": 112500.00, "moneda": "CRC", "fechaEmision": "2026-08-05T14:10:00Z" }

404 Not Found

The key does not exist in this key’s tenant, or it exists but is not of type 08. A sales key is not queried through this endpoint: for that, use GET /facturas/{clave}.