API

Crear movimiento de stock

Changed on

Registra un movimiento manual para ajustar stock. En mode replace, items[].expected_quantity compara el stock disponible observado con el valor actual bajo bloqueo. Si falta, el reemplazo es incondicional. En mode delta, expected_quantity no se acepta. Para un combo, compará la cantidad disponible del combo.

post/api/v1/stock-movements

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/stock-movements
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring required

Clave única para evitar duplicados al reintentar el mismo movimiento de stock.

X-Request-Idstring

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

Request body

warehouse_idstring uuid required
mode'delta' | 'replace' required
direction'inbound' | 'outbound'
reasonstring required
notesstring

Response

Movimiento de stock creado 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

    • breaking

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

    • breaking

      the request property type changed from string to no type, and format from date-time to no format

    • 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

    • warning

      the request property's maxLength was set to 2000

    • warning

      the request property's maxLength was set to 200

    • info

      added the new optional request property //

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • 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