Submit to FACe (Spain B2G)
face_submitSubmit Facturae invoices to the Spanish FACe B2G portal for electronic billing to public administrations. Get a submission reference to track invoice status.
Instructions
Submit a Facturae-formatted invoice to the Spanish FACe (Punto General de Entrada de Facturas Electrónicas) B2G portal. The invoice must have a recipient with DIR3 administrative unit codes (órgano gestor, unidad tramitadora, oficina contable). Returns a submission reference (registro) that can be used with face_status to poll the portal.
Modes: • mock — local simulation only, no network call (safe for dev/test) • sandbox — FACe pre-production endpoint (requires sandbox credentials) • production — live FACe SOAP endpoint (default)
/ Envía una factura Facturae al portal FACe del Estado español. Requiere códigos DIR3 en el destinatario (órgano gestor, unidad tramitadora, oficina contable). Devuelve el número de registro para consulta de estado con face_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | Frihet invoice ID to submit / ID de la factura a enviar a FACe | |
| mode | No | Submission mode: mock (local sim), sandbox (FACe pre-prod), production (live). Default: production. / Modo de envío: mock (simulación local), sandbox (pre-producción FACe), production (real). Por defecto: production. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| registroFACe | Yes | FACe registration number (número de registro) returned by the portal | |
| status | Yes | Submission outcome | |
| submittedAt | Yes | ISO 8601 timestamp of the submission | |
| mode | Yes | Mode used: mock | sandbox | production |