beel_update_tax_configuration
Replace a company's tax configuration: set default tax regime, percentage, IRPF withholding, and equivalence surcharge to maintain VeriFactu compliance.
Instructions
Replaces the tax configuration of a company (NIF): default tax regime, main percentage and regime key, IRPF and equivalence surcharge.
The main tax and its VeriFactu regime key must be coherent. Regime key 18 (equivalence
surcharge) only exists for IVA, so pairing it with any other regime answers
422 INVALID_REGIME_KEY_FOR_TAX_TYPE, with details naming the rejected key, the tax
type and the keys that type admits. Applying the surcharge without regime key 18 answers
422 RECARGO_REQUIRES_REGIME_RE.
Endpoint: PUT /v1/companies/{company_id}/tax-configuration
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. |