beel_deactivate_compliance_system
Deactivates a company's compliance system from a specified date without activating another, preventing invoices on or after that date from being reported through it.
Instructions
Stops system from applying to this company from effective_to on, in the environment
of the request, without activating another one in its place. Invoices issued on or after
that date are not reported through it. To move to a system that excludes this one,
activate that one instead: the switch happens in a single call.
Today or later: without
effective_to(send{}), the system stops applying today. A date in the past answers422 COMPLIANCE_EFFECTIVE_DATE_IN_PAST.Scheduled activations: one that would start on or after
effective_tois cancelled, which is always accepted; one that is in force, or starts before, ends oneffective_to, and for the SII that is leaving it.Nothing to deactivate: when the system does not apply on or after
effective_to, the request answers200and changes nothing.No system left: deactivating the only system that applies is accepted, in Live and in Sandbox alike. From
effective_toon, the company's invoices are not reported through any system until one is activated again.VeriFactu: deactivating
VERIFACTUbehaves like turning VeriFactu off withPUT /v1/companies/{company_id}/verifactu-configuration, with the same effects.SII in Live: leaving it takes effect tomorrow at the earliest, never on a past date. It can only be left from 1 January when
settings.reasonisVOLUNTARYorMANDATORY_LARGE_COMPANY, from the first day of a month when it isREDEME, and on any date when it isVAT_GROUP, judged by thereasonof the period in force. This also applies to an SII activation that is scheduled and would end after it starts.SII in Sandbox: it can be left on any date from today.
Cancelling a scheduled SII: the VeriFactu period that ended on its
effective_fromis left without an end date.
The response carries the same body as GET /v1/companies/{company_id}/compliance.
BeeL API endpoint: POST /v1/companies/{company_id}/compliance/systems/{system}/deactivate (reference: https://docs.beel.es)
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>",
"system": "<system>",
"body": "<body>"
},
"name": "beel_deactivate_compliance_system"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| system | Yes | The compliance system the operation acts on. A value that is not listed answers `400 VALIDATION_ERROR`. | |
| 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. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |