INVO
InicioSitio web
SDKs
  • Typescript
InicioSitio web
SDKs
  • Typescript
Área privada
  1. 📝 Facturas
  • Inicio
  • Typescript
  • Raíz
    • 🦄 Otros
      • Verificar estado del servicio
    • 🫆 Certificado digital
      • Subir certificado
      • Información del certificado
      • Eliminar certificado
    • 📝 Facturas
      • Listar facturas
        GET
      • Crear/Almacenar factura
        POST
      • Listar colas de envío
        GET
      • Listar errores
        GET
      • Obtener factura
        GET
      • Editar factura
        PATCH
      • Eliminar factura
        DELETE
      • Enviar a AEAT
        POST
      • Resolver error
        PATCH
    • 🛠️ Herramientas
      • Leer datos de factura
      • Generar PDF
  1. 📝 Facturas

Crear/Almacenar factura

Entorno prueba
https://test.your-api-server.com
Entorno prueba
https://test.your-api-server.com
POST
/invoice/store
Crea y registra una nueva factura en el sistema VERIFACTU con validación automática de datos y generación de hash.

Solicitud

Autorización
or
Parámetros del Body application/jsonRequerido

Ejemplos

Respuestas

🟢201Creado
Esta respuesta no tiene un body.
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/invoice/store' \
--header 'Content-Type: application/json' \
--data-raw '{
    "issueDate": "2024-01-15T10:30:00Z",
    "invoiceNumber": "FAC-2024-001",
    "externalId": "order-12345-invoice",
    "totalAmount": 121,
    "currency": "EUR",
    "customerName": "Cliente Ejemplo SL",
    "customerTaxId": "B12345678",
    "emitterName": "Mi Empresa SL",
    "emitterTaxId": "B87654321",
    "type": "F1",
    "description": "Venta de servicios de consultoría tecnológica",
    "rectifiedInvoiceIds": [
        "550e8400-e29b-41d4-a716-446655440000"
    ],
    "taxLines": [
        {
            "taxType": "01",
            "taxRate": 21,
            "baseAmount": 1000,
            "taxAmount": 210
        },
        {
            "taxType": "01",
            "taxRate": 10,
            "baseAmount": 500,
            "taxAmount": 50
        }
    ],
    "callback": "https://myapp.com/webhooks/verifactu"
}'
Anterior
Listar facturas
Siguiente
Listar colas de envío
Built with