Submit invoice to FACe (B2G)
submit_invoice_to_faceSign a finalized invoice with XAdES-EPES and submit it to FACe, the Spanish government invoicing gateway, returning the número de registro. Requires the customer to be marked as public administration with its three DIR3 codes, and a digital certificate uploaded in settings (the same one Verifactu uses). An invoice already registered is never submitted twice. Live submission is additionally gated per account; test environment otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Address FACe sends status updates to; the account email is used otherwise | ||
| confirm | Yes | Must be true. Only set after the user explicitly confirmed the submission to the administration. | |
| invoice_id | Yes |