products_update
Update existing product details by UUID. Only provided fields change, enabling code assignment, name corrections, or price adjustments.
Instructions
Update an existing product by UUID. All fields are optional — only provided fields are changed. Useful for assigning product codes (so sales can be grouped per plan/SKU), fixing names, or adjusting default prices on sync-created products. Pass code=null to clear a code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Product code / SKU. Pass null to clear the existing code. | |
| name | No | Product name | |
| uuid | Yes | Product UUID to update | |
| color | No | Optional hex colour swatch shown on the POS product grid (e.g. "#1e40af"). Six-digit hex with or without leading "#"; pass null to clear. | |
| ncCode | No | NC (Nomenclatura Combinata) code | |
| cpvCode | No | CPV code for public procurement | |
| vatRate | No | VAT rate percentage (e.g. 19 for 19%) | |
| currency | No | ISO 4217 currency code | |
| isActive | No | Whether the product is active | |
| companyId | No | Company UUID override (uses active company if not set) | |
| sgrAmount | No | Romanian SGR (Sistem Garantie-Returnare) deposit per unit, e.g. 0.50 for plastic beverage bottles. Null clears it. The POS auto-injects a single VAT-exempt deposit line summing all SGR product quantities. | |
| categoryId | No | UUID of a product_category for POS grid grouping; pass null to clear. | |
| description | No | Product description | |
| defaultPrice | No | Default unit price | |
| unitOfMeasure | No | Unit of measure code (e.g. "buc", "ore", "kg") | |
| vatCategoryCode | No | VAT category code (e.g. "S", "Z", "E") |