curl --request GET \
--url https://api.kubifactu.com/api/invoices \
--header 'X-Qbikode-ClientApiKey: <api-key>'import requests
url = "https://api.kubifactu.com/api/invoices"
headers = {"X-Qbikode-ClientApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Qbikode-ClientApiKey': '<api-key>'}};
fetch('https://api.kubifactu.com/api/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kubifactu.com/api/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Qbikode-ClientApiKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kubifactu.com/api/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Qbikode-ClientApiKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kubifactu.com/api/invoices")
.header("X-Qbikode-ClientApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kubifactu.com/api/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Qbikode-ClientApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_invoice_id": "<string>",
"record_type": "creation",
"request_id": "2cc8ef846029ec69613711ad1d85f6dfebf16ffb",
"fiscal_year": 2025,
"full_invoice_number": "F23-0000123",
"issue_date": "2025-09-15",
"created_at": "2025-09-15T07:35:24.992854Z",
"fingerprint": "<string>",
"csv": "<string>",
"vf_post_status": "success",
"vf_record_registration_status": "success",
"has_warnings": false,
"vf_error_descriptions": "<string>"
}
],
"meta": {
"per_page": 50,
"next_page_cursor": "eyJpZCI6IjE5NzctMDQtMjJUMDY6MDA6MDBaIn0",
"prev_page_cursor": "ffN6eRJ0i2YPRA7C51eYNkLt8HIubpW9RDrFk77",
"has_more": true
}
}{
"data": {
"error": {
"code": "E-UNAUTH-APIKEY",
"message": "No client with API-KEY '5tVySMGJOpq8HfMgIX28Qz6kF0dFOoq37x55PLZcWsGeGeYkNgJyAcRTlFJ5NbVoDRm8qtCywEoiN3A9JkBanMBXYmxiqR3BItxgxx' was found.",
"http_code": 403,
"errors": null,
"details": {
"request_id": "2cc8ef846029ec69613711ad1d85f6dfebf16ffb"
}
}
}
}{
"data": {
"error": {
"message": "The given data was invalid.",
"errors": {
"invoice_exists": [
"An invoice already exists with the indicated invoice number and fiscal for the provided SIF. Existing invoice ID: [9db6bb78-6799-4abb-b9a0-22d127c543ed]."
],
"incorrect_total_quota": [
"The total quota of the invoice does not match the total tax quota and equalization_tax_quota of the tax breakdown. Calculated total quota: [26.25]."
],
"incorrect_total_amount": [
"The total amount of the invoice does not match the total tax base of the tax breakdown. Calculated total amount: [151.25]."
]
},
"details": {
"request_id": "9ded9e2c-d59e-4432-a926-652cbcfac365"
}
}
}
}Listar registros de facturación con filtros
Obtiene un listado paginado de registros de facturación pertenecientes a la empresa autenticada. La información de cada registro de facturación en una versión reducida de la que se obtiene en consultas individuales o cuando se crean nuevos registros de facturación.
Además se devuelve una sección meta para la gestión de la paginación.
El valor devuelto en meta.next_page_cursor sirve para solicitar la siguiente página y meta.prev_page_cursor para retroceder. Si meta.has_more es false, no hay más elementos.
curl --request GET \
--url https://api.kubifactu.com/api/invoices \
--header 'X-Qbikode-ClientApiKey: <api-key>'import requests
url = "https://api.kubifactu.com/api/invoices"
headers = {"X-Qbikode-ClientApiKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Qbikode-ClientApiKey': '<api-key>'}};
fetch('https://api.kubifactu.com/api/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kubifactu.com/api/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Qbikode-ClientApiKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kubifactu.com/api/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Qbikode-ClientApiKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kubifactu.com/api/invoices")
.header("X-Qbikode-ClientApiKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kubifactu.com/api/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Qbikode-ClientApiKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"client_invoice_id": "<string>",
"record_type": "creation",
"request_id": "2cc8ef846029ec69613711ad1d85f6dfebf16ffb",
"fiscal_year": 2025,
"full_invoice_number": "F23-0000123",
"issue_date": "2025-09-15",
"created_at": "2025-09-15T07:35:24.992854Z",
"fingerprint": "<string>",
"csv": "<string>",
"vf_post_status": "success",
"vf_record_registration_status": "success",
"has_warnings": false,
"vf_error_descriptions": "<string>"
}
],
"meta": {
"per_page": 50,
"next_page_cursor": "eyJpZCI6IjE5NzctMDQtMjJUMDY6MDA6MDBaIn0",
"prev_page_cursor": "ffN6eRJ0i2YPRA7C51eYNkLt8HIubpW9RDrFk77",
"has_more": true
}
}{
"data": {
"error": {
"code": "E-UNAUTH-APIKEY",
"message": "No client with API-KEY '5tVySMGJOpq8HfMgIX28Qz6kF0dFOoq37x55PLZcWsGeGeYkNgJyAcRTlFJ5NbVoDRm8qtCywEoiN3A9JkBanMBXYmxiqR3BItxgxx' was found.",
"http_code": 403,
"errors": null,
"details": {
"request_id": "2cc8ef846029ec69613711ad1d85f6dfebf16ffb"
}
}
}
}{
"data": {
"error": {
"message": "The given data was invalid.",
"errors": {
"invoice_exists": [
"An invoice already exists with the indicated invoice number and fiscal for the provided SIF. Existing invoice ID: [9db6bb78-6799-4abb-b9a0-22d127c543ed]."
],
"incorrect_total_quota": [
"The total quota of the invoice does not match the total tax quota and equalization_tax_quota of the tax breakdown. Calculated total quota: [26.25]."
],
"incorrect_total_amount": [
"The total amount of the invoice does not match the total tax base of the tax breakdown. Calculated total amount: [151.25]."
]
},
"details": {
"request_id": "9ded9e2c-d59e-4432-a926-652cbcfac365"
}
}
}
}Authorizations
API-KEY de la empresa que hace la petición. Este dato se puede consultar en el panel web, accediendo a la sección Empresas y accediendo a la ficha de la empresa en.
Query Parameters
Fecha de inicio del rango de creación de las facturas (incluida). Formato YYYY-MM-DD.
"2025-01-01"
Fecha de fin del rango de creación de las facturas (incluida). Debe ser igual o posterior a date_from.
"2025-01-31"
ID del SIF emisor sobre el que se quieren buscar registros de facturación.
"A3DEAECE-8698-4E3D-A0A3-A17B523B9703"
Filtrar registros de facturación por el estado de envío a Veri*Factu.
Ver valores posibles para vf_post_status en la respuesta de envío de registros de facturación.
"failure"
Filtrar registros de facturación por el estado del registro reportado por Veri*Factu.
Ver valores posibles para vf_record_registration_status en la respuesta de envío de registros de facturación.
Nota: Este parámetro se ignora si with_problems está presente y es 1.
"accepted_with_errors"
Filtrar registros de facturación con problemas de registro. Cuando este parámetro es 1, se devuelven únicamente los registros cuyo vf_record_registration_status no es correcto o anulado.
Este filtro es útil para obtener facturas que requieren atención: failed (Incorrecto), accepted_with_errors (Aceptado con Errores), not_registered (No Registrado) y unknown (Desconocido).
Este parámetro tiene prioridad sobre vf_record_registration_status: si with_problems=1, el valor de vf_record_registration_status será ignorado.
1
Número de elementos por página (máximo 50). Valor por defecto 50.
1 <= x <= 5025
Cursor para la paginación basada en cursor. Use el valor devuelto en meta.next_page_cursor.
"eyJpZCI6IjE5NzctMDQtMjJUMDY6MDA6MDBaIn0"