beel_update_verifactu_configuration
Replaces a company's VeriFactu configuration by setting enabled: turning it on registers the tax ID for AEAT submission atomically; turning it off deregisters it.
Instructions
Replaces the VeriFactu configuration of a company.
Writable fields: only
enabled, and it is required — this is a full replacement, not a partial merge. The rest of the returned configuration is resolved server-side.Turning it on registers the NIF for VeriFactu submission in the same call, atomically: if the registration is refused nothing is persisted and the response carries the reason. In Live it requires a signed and validated AEAT representation first, or
422 VERIFACTU_REPRESENTATION_REQUIRED.Sandbox is always on:
enabled: falsethere answers422 VERIFACTU_ALWAYS_ON_IN_SANDBOX.
Turning it off
Setting enabled to false stops sending this company's invoices to AEAT and starts
deregistering the NIF from VeriFactu submission. 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
⚠️ Read before calling:
Fiscal rules, domains records: beel_rules_list with domain, or resource beel://guardrails/.
How to tell, before issuing, whether a NIF can issue, and what each blocker means. (resource: beel://guardrails/verifactu-gates)
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. |