beel_update_verifactu_configuration
Replace a company's VeriFactu configuration to enable or disable AEAT invoice submission and set automatic application to new invoices. Requires both 'enabled' and 'apply_by_default' fields.
Instructions
Replaces the VeriFactu configuration of a company (NIF). Only enabled and
apply_by_default are writable and both are required — this is a full replacement, not a
partial merge; the rest of the returned configuration is resolved server-side.
apply_by_default cannot be true while enabled is false, which answers
422 APPLY_BY_DEFAULT_REQUIRES_ENABLED.
Setting enabled to false stops sending this company's invoices to AEAT and starts the
deregistration of the NIF with the VeriFactu provider. It does not deactivate the company:
the activation is a fact of its own for the (company, environment) pair, so the company
keeps issuing in that environment and stays ready. Releasing the NIF — and in Live
freeing it for another account — is always
DELETE /v1/companies/{company_id}/activations.
Endpoint: PUT /v1/companies/{company_id}/verifactu-configuration
⚠️ Fiscal guardrails — read before calling:
Why an issued invoice may never reach AEAT, and how to tell before issuing. (resource: beel://guardrails/verifactu-gates)
For the exhaustive rules and worked examples, call beel_docs_search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| company_id | Yes | NIF (company) the operation acts on. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A NIF you do not reach answers `403`, and so does a NIF that does not exist, so the existence of a NIF in another account is never disclosed. |