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
| Attribute | Value |
|---|---|
| Scheme | API key (X-Api-Key) |
| Required scope | facturas-compra:read |
| Idempotent | Yes (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}.