Create inventory exit
POST/api/v2/inventory-exits
Creates a manual inventory exit. The line quantities are subtracted from the source warehouse stock immediately upon successful creation. Business logic runs in the legacy WAR via the internal commands gateway.
Request
Responses
- 201
- 400
- 401
- 403
- 422
- 500
Inventory exit created
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Authenticated user is missing the CREAR_TRASPASOSDIRECTOS permission, or the warehouseId is outside the user's branch scope
Operation would leave a product with negative stock
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.