Skip to main content
This endpoint retrieves the most recently created electronic invoices registered in the Factus platform. Each item in the returned array is a summary-level bill object containing the invoice number, customer identification, document type, current validation status, and payment form. No query parameters are required — the Factus API returns a default page of the latest invoices.

Endpoint

GET /factura

Request

No request body or query parameters are required. The backend attaches the Bearer token from the server environment automatically — callers do not need to include any Authorization header.

Response

200 — Success

Returns a JSON object with a data array, where each element is a bill summary object.
number
HTTP-like status code. Always 200 on success.
string
Human-readable result label. Always "OK" on success.
array
Array of invoice summary objects. Each element has the following fields:

409 — Conflict

Returned when the Factus API responds but with a status value that does not match the expected "OK" string — for example, if the upstream API returns an unexpected status code or payload shape.

500 — Internal Server Error

Returned when an unhandled exception occurs. Two distinct shapes are possible: Shape A — upstream call failure (from request_fact internal catch):
Optional extra fields: message (Axios error message), code (Axios error code), error_name (error class name). Shape B — controller-level exception:
The messaje key (with a j) in Shape B is a known typo in the backend source — handle it as-is when parsing error objects. Shape A uses error as a plain string ("ERROR INTERNO"), not an object.

Example Response (200)

Code Examples