Vat Types
Company VAT rate catalog (TipoIVA)
📄️ Get VAT type by ID
Returns the VAT type including warehouseOverrides and associatedAccounts.
📄️ Update VAT type
Full replacement. On update, null warehouseOverrides/associatedAccounts leaves existing children untouched; [] clears; non-empty list replaces. vatRatePurchase requires differentPurchaseSaleVat=true (header and each warehouse row).
📄️ Delete VAT type
Deletes the VAT type. If-Match is accepted but ignored (TipoIVA is not versioned).
📄️ Merge-patch VAT type
RFC 7396 merge-patch over `application/merge-patch+json`. Send only the fields you want to change; include a field with value `null` to remove it. Use the `If-Match` header for optimistic concurrency control.
📄️ List VAT types
Paginated list with optional RSQL filter and sort (default lastModifiedAt:desc). Child collections are omitted; use GET /{id} for warehouseOverrides and associatedAccounts.
📄️ Create VAT type
Persists via the internal commands gateway. warehouseOverrides/associatedAccounts: null leaves empty; [] clears; list replaces.
📄️ Prototype a VAT type for a creation form
Non-persisted defaults: current company, enabled=true, blockType=null. Optional JSON hints: companyId, surchargeTypeId, copyFromId.