PUT
/
products
/
{id}
curl -X PUT https://api.contazen.ro/v1/products/prod_5f6g7h8i9j \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "price": 5500.00
  }'
{
  "success": true,
  "data": {
    "id": "prod_5f6g7h8i9j",
    "object": "product",
    "name": "Laptop Dell XPS 15 - 2024 Edition",
    "description": "Latest 2024 model with upgraded specs",
    "currency": "RON",
    "price": 5500.00,
    "vat_rate": 19,
    "unit_of_measure": "buc",
    "ubl_um": "H87",
    "ubl_nc": "84713000",
    "ubl_cpv": null,
    "created_at": 1704067200,
    "modified_at": 1710547200
  },
  "meta": {
    "version": "v1",
    "response_time": "34.56ms"
  }
}

Request

id
string
required
The product ID (ID) to update
Both PUT and PATCH methods are supported. All fields are optional - only provide the fields you want to update.
name
string
Product name
price
number
Selling price (without VAT). Aliases to sell_price.
sell_price
number
Alias for price
description
string
Product description
currency
string
Currency code (e.g., “RON”, “EUR”, “USD”)
vat_rate
number
VAT rate percentage (e.g., 19, 9, 5, 0)
unit_of_measure
string
Unit of measure (e.g., “buc”, “kg”, “ora”, “luna”, “m2”)
ubl_um
string
UBL unit of measure code for e-Factura compliance
ubl_nc
string
Combined Nomenclature (NC) code for e-Factura
ubl_cpv
string
Common Procurement Vocabulary (CPV) code for e-Factura

Response

success
boolean
Indicates if the request was successful
data
object
The updated product object
meta
object
Response metadata including version and response time
curl -X PUT https://api.contazen.ro/v1/products/prod_5f6g7h8i9j \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "price": 5500.00
  }'
{
  "success": true,
  "data": {
    "id": "prod_5f6g7h8i9j",
    "object": "product",
    "name": "Laptop Dell XPS 15 - 2024 Edition",
    "description": "Latest 2024 model with upgraded specs",
    "currency": "RON",
    "price": 5500.00,
    "vat_rate": 19,
    "unit_of_measure": "buc",
    "ubl_um": "H87",
    "ubl_nc": "84713000",
    "ubl_cpv": null,
    "created_at": 1704067200,
    "modified_at": 1710547200
  },
  "meta": {
    "version": "v1",
    "response_time": "34.56ms"
  }
}

Update Examples

Price Update

{
  "price": 299.99
}

E-Factura Compliance Update

{
  "ubl_um": "HUR",
  "ubl_cpv": "72413000"
}

Full Update

{
  "name": "Premium Web Development Services",
  "description": "Enterprise-level web development and consulting",
  "price": 350.00,
  "vat_rate": 19,
  "unit_of_measure": "ora",
  "ubl_um": "HUR",
  "ubl_cpv": "72413000"
}

Notes

  • Only fields provided in the request will be updated
  • The modified_at timestamp is automatically updated
  • You can only update products belonging to your authenticated firm
  • Both PUT and PATCH methods behave identically for this endpoint