API

Actualizar producto

Changed on

Actualiza solo los campos enviados y devuelve el detalle persistido. Para un combo existente, product_type y components son opcionales: omitir components conserva la composición y omitir los campos de precio conserva el precio guardado. Si se envía components, reemplaza la composición completa. No permite convertir otros productos en combos. La actualización de un combo requiere Idempotency-Key para deduplicar reintentos.

put/api/v1/products/{product_id}

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/products/{product_id}
  • Auth
    HTTP bearer

Path parameters

product_idstring uuid required

ID del producto

Headers

X-Request-Idstring

ID opcional de la solicitud para trazabilidad. Si se omite, el servidor genera uno.

Idempotency-Keystring

Clave estable obligatoria al actualizar un combo existente, aunque se omita product_type. Reutilizala solo para reintentar exactamente la misma actualización.

Request body

handlestring

Identificador del producto en el catálogo; se normaliza al guardar.

namestring
descriptionstring nullable
category_idstring uuid nullable
visibility'both' | 'sales' | 'purchases' | 'system'
image_urlstring nullable

External product image URL reference. La Pyme displays it best effort and does not copy, ingest, or host the image.

product_type'product' | 'service' | 'kit' | 'combo'
skustring
barcodestring nullable
unit_of_measure'10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31' | '32' | '33' | '34' | '35' | '36' | '37' | '41' | '47' | '48' | '49' | '50' | '51' | '52' | '53' | '54' | '55' | '61' | '62' | '63' | '97' | '98' | '99' | '00' | '01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' | '09'
currency'ARS' | 'USD'
ars_reference_exchange_ratenumber nullable
costinteger
priceinteger nullable

Precio manual en centavos. En combos existentes, omitilo para conservar el precio guardado.

promotional_priceinteger nullable
markup_percentagenumber nullable

Markup percentage used to calculate the sale price from cost and organization rounding rules. The price adds the product's IVA rate only when the organization's sales prices include IVA. Mutually exclusive with price; send null to switch back to manual pricing.

tax_rate_idinteger
is_exemptboolean
default_supplier_idstring uuid nullable
default_sales_account_idstring uuid nullable
default_purchase_account_idstring uuid nullable
is_activeboolean
pricing_mode'automatic' | 'manual'
price_adjustment_percentagenumber nullable

Response

Producto actualizado exitosamente

request_idstring required

Changes

    • breaking

      for the header request parameter X-Request-Id, the minLength was increased from 0 to 1

    • breaking

      removed the enum value DOL of the request property

    • breaking

      removed the enum value PES of the request property

    • breaking

      the request property's minLength was increased from 0 to 1

    • breaking

      the request property's minLength was increased from 0 to 1

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • warning

      for the header request parameter X-Request-Id, the maxLength was set to 255

    • warning

      the / request property's maxLength was set to 100

    • warning

      the / request property's maxLength was set to 500

    • warning

      the / request property's maxLength was set to 2000

    • warning

      the request property's maxLength was set to 255

    • warning

      the request property's maxLength was set to 100

    • info

      added the new optional header request parameter Idempotency-Key

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      the request property default value 07 was added

    • info

      added the new ARS enum value to the request property

    • info

      added the new USD enum value to the request property

    • info

      added the new system enum value to the request property

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • info

      added the non-success response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      response property data/product/applied_price_list/adjustment_percentage list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/product/barcode list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/product/description list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added 'propertyNames' constraint to the /// response property for the status

    • info

      added the required property / to the response with the status

    • info

      added the required property /// to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status