API

Actualizar productos masivamente

Changed on

Aplica ajustes masivos de costo o precio base sobre una selección de productos.

post/api/v1/products/bulk-adjustments

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/products/bulk-adjustments
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring required

Clave única para evitar aplicar dos veces el mismo ajuste masivo.

X-Request-Idstring

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

Request body

target'cost' | 'price' required
operation_type'increase' | 'decrease' required
adjustment_type'percentage' | 'fixed' required
adjustment_valuenumber required
searchstring
categorystring[]
product_typeApiSharedEnumff49232140[]
default_supplier_idstring uuid

Response

Ajuste aplicado exitosamente

request_idstring required

Changes

    • breaking

      for the header request parameter Idempotency-Key, the minLength was increased from 0 to 1

    • breaking

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

    • warning

      for the header request parameter Idempotency-Key, the maxLength was set to 255

    • warning

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

    • 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 required property // to the response with the status