beel_update_verifactu_configuration
Enable or disable VeriFactu for a company by replacing its configuration; turning it on registers the tax ID for AEAT submission atomically, while turning it off stops new invoice submissions.
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 is activating VeriFactu today:
enabled: truefollows the rules ofPOST /v1/companies/{company_id}/compliance/systems/VERIFACTU/activatewitheffective_fromtoday, in the same order and with the same error codes, except in Sandbox: there it never ends another compliance system, and with another system in force or scheduled it answers422 COMPLIANCE_SYSTEMS_INCOMPATIBLE. It 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, or422 VERIFACTU_REPRESENTATION_REQUIRED. When VeriFactu already applies, it answers200and changes nothing.Turning it off is deactivating VeriFactu today:
enabled: falsefollows the rules ofPOST /v1/companies/{company_id}/compliance/systems/VERIFACTU/deactivate, in Live and in Sandbox alike. A company in Sandbox can be left without any compliance system.Moving from another system: this resource does not end another compliance system. When VeriFactu does not apply and another system applies or is scheduled,
enabled: trueanswers422; move withPOST /v1/companies/{company_id}/compliance/systems/VERIFACTU/activateand aneffective_fromthe other system can be left on.
Turning it off
Setting enabled to false stops sending this company's new invoices to the AEAT. The NIF
stays registered for VeriFactu submission, so invoices already sent can still be voided
or corrected through it. 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.
BeeL API endpoint: PUT /v1/companies/{company_id}/verifactu-configuration (reference: https://docs.beel.es)
⚠️ 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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>",
"body": "<body>"
},
"name": "beel_update_verifactu_configuration"
}
}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. |