# Update Vat/Surcharge Update a specific vat/surcharge. Endpoint: PUT /api/v1/vat-type/{id} Version: 1.0 ## Path parameters: - `id` (integer, required) ## Request fields (application/json): - `customerVatType` (integer, required) Customer VAT type identifier Example: 1 - `articleVatType` (string, required) Article VAT type classification Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `vatPercentage` (number) VAT percentage to be applied Example: 21 - `rePercentage` (number) Surcharge (Recargo de Equivalencia) percentage Example: 5.2 - `sellVatAccount` (integer) VAT account identifier for sales operations Example: 4770000 - `sellRechargeAccount` (integer) Surcharge account identifier for sales operations Example: 4771000 - `buyVatAccount` (integer) VAT account identifier for purchase operations Example: 4720000 - `buyRechargeAccount` (integer) Surcharge account identifier for purchase operations Example: 4721000 ## Response 200 fields (application/json): - `id` (integer, required) Unique identifier of the entity Example: 1 - `customerVatType` (object, required) Customer VAT type information - `customerVatType.code` (string, required) VAT type code. Example: GENERAL, REDUCED, EXEMPT, etc. Example: "GENERAL" - `customerVatType.description` (string) Description of the VAT type. Example: "General VAT type" - `articleVatType` (object, required) Article VAT type information - `articleVatType.id` (integer) Unique identifier of the VAT type Example: 1 - `articleVatType.code` (string) Code for the VAT type Example: "GENERAL" - `articleVatType.description` (string) Description of the VAT type Example: "General VAT type" - `vatPercentage` (number) VAT percentage applied Example: 21 - `rePercentage` (number) Surcharge (Recargo de Equivalencia) percentage Example: 5.2 - `sellVatAccount` (object) VAT account information for sales operations - `sellVatAccount.code` (string) Code of the chart account Example: 1000 - `sellVatAccount.description` (string) Description of the chart account Example: "Cash account" - `sellVatAccount.cif` (string) Tax identification number Example: "B12345678" - `sellVatAccount.active` (boolean) Indicates if the account is active Example: true - `sellVatAccount.color` (string) Color code for visual representation Example: "#FF5733" - `sellVatAccount.parentCode` (string) Code of the parent account Example: 100 - `sellVatAccount.parentDescription` (string) Description of the parent account Example: "Assets" - `sellRechargeAccount` (object) Surcharge account information for sales operations - `buyVatAccount` (object) VAT account information for purchase operations - `buyRechargeAccount` (object) Surcharge account information for purchase operations