STUDIO
Factura
TEST-INV-00001
| Descripción | Cant. | Precio | Importe |
|---|---|---|---|
| Consultoría | 8 | €75.00 | €600.00 |
- Subtotal
- €600.00
- IVA 21%
- €126.00
- Total
- €726.00
Emite, rectifica, genera y registra facturas a través de una API REST, incluidos los registros VERI*FACTU.
Sin tarjeta de crédito. Prueba cada operación gratis en un entorno de pruebas.
Envía los datos comerciales. FiscalRail resuelve toda la maquinaria de facturación que los rodea.
$ curl "https://api.fiscalrail.com/api/v1/invoices" \
-H "Authorization: Bearer ak_test_..." \
-H "Content-Type: application/json" \
-d '{
"customer": "cus_...",
"lines": [{
"description": "Consulting",
"quantity": "8",
"unit_price": "75.00",
"taxes": [{"tax": "vat", "rule": "general"}]
}]
}'
{
"id": "inv_...",
"object": "invoice",
"live": false,
"account": "acct_...",
"kind": "invoice",
"code": "TEST-INV-00001",
"series": "inv_ser_...",
"issue_date": "2026-08-11",
"supply_period": null,
"preceding_invoice": null,
"currency": "EUR",
"supplier": {
"source": {"type": "account", "id": "acct_..."},
"name": "Acme Studio SL",
"tax_id": {"country": "ES", "type": "es_nif", "value": "B02850360"},
"email": "billing@acme.example",
"phone": null,
"address": {
"line_1": "Example street 1",
"line_2": null,
"city": "Madrid",
"postal_code": "28001",
"state": null,
"country": "ES"
}
},
"customer": {
"source": {"type": "customer", "id": "cus_..."},
"name": "Example Client SL",
"tax_id": {"country": "ES", "type": "es_nif", "value": "B87654323"},
"email": "billing@client.example",
"phone": null,
"address": {
"line_1": "Example avenue 2",
"line_2": null,
"city": "Vigo",
"postal_code": "36201",
"state": "Pontevedra",
"country": "ES"
}
},
"lines": [{
"index": 1,
"description": "Consulting",
"quantity": "8.0",
"unit_price": "75.00",
"subtotal": "600.00",
"taxes": [{
"tax": "vat",
"rule": "general",
"effect": "added",
"treatment": "taxable",
"description": "IVA 21%",
"rate": "21%",
"taxable_base": "600.00"
}]
}],
"tax_totals": [{
"tax": "vat",
"rule": "general",
"effect": "added",
"treatment": "taxable",
"description": "IVA 21%",
"rate": "21%",
"taxable_base": "600.00",
"amount": "126.00"
}],
"totals": {
"subtotal": "600.00",
"tax": "126.00",
"total_with_tax": "726.00",
"withheld_tax": "0.00",
"payable": "726.00"
},
"created_at": "2026-08-11T09:30:00Z",
"tax_regime": {
"key": "es",
"es": {
"qr": {
"content": "https://fiscalrail.test/tax-regimes/es/mock-verifications/...",
"image_url": "https://fiscalrail.test/tax-regimes/es/invoice-qrs/..."
},
"verifactu": {
"registrations": [{
"id": "es_inv_reg_...",
"object": "verifactu_registration",
"live": false,
"invoice": "inv_...",
"kind": "alta",
"status": "pending",
"submitted_at": null,
"csv": null,
"error": null
}]
}
}
},
"amendments": []
}
TEST-INV-00001
| Descripción | Cant. | Precio | Importe |
|---|---|---|---|
| Consultoría | 8 | €75.00 | €600.00 |
Valida, numera, calcula y guarda una factura de forma atómica.
Resuelve las reglas de IVA y retención sin confiar en cálculos hechos por el cliente de la API.
Genera PDF síncronos con tu logotipo, idioma y pie de página.
Conserva la numeración automática y los datos duraderos de cada factura para consultarlos más adelante.
Emite abonos y facturas sustitutas enlazados sin reescribir el historial de facturación.
Recibe eventos verificables de facturas, NIF, PDF y cumplimiento normativo.
Registra facturas en VERI*FACTU, genera códigos QR de verificación y gestiona correcciones.
Añade saldo cuando quieras emitir facturas reales. El uso del entorno de pruebas es gratuito.
por emitir, registrar y generar el PDF de una factura española habitual
Los envíos rechazados por la AEAT y los reintentos son gratuitos.
Diario de FiscalRail
Actualizaciones de producto, guías de implementación, comparativas y comentarios sobre infraestructura de facturación.


VERI*FACTU regula los sistemas y registros de facturación; la factura electrónica B2B regula el intercambio estructurado entre empresas. Explicamos cómo se relacionan.

Añade datos validados para transferencias bancarias a tus facturas por defecto o de forma explícita, sin modificar documentos ya emitidos.
Cuéntanos qué estás construyendo. Te ayudaremos con la primera petición.