beel_update_verifactu_configuration
Update a company's VeriFactu settings by replacing enabled and apply_by_default flags. Control AEAT invoice submission and automatic application to new invoices.
Instructions
Replaces the VeriFactu configuration of a company.
Writable fields: only
enabledandapply_by_default, and both are required — this is a full replacement, not a partial merge. The rest of the returned configuration is resolved server-side.Coherence:
apply_by_defaultcannot be true whileenabledis false, which answers422 APPLY_BY_DEFAULT_REQUIRES_ENABLED.
Turning it off
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 | Unique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. 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 company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. |