# Ajustar stock

**POST** /v1/inventory/adjust

Ajusta manualmente el stock de una ubicación por merma, daño, corrección de recuento o devolución. Crea un movimiento adjustment inmutable. quantity_delta positivo suma existencias y negativo las resta.

| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| listing_id | integer | Sí | Anuncio que se ajustará. |
| location_id | integer | Sí | Ubicación. |
| quantity_delta | integer | Sí | Cambio (positivo suma, negativo resta). |
| reason | string | Sí | Motivo o código (por ejemplo damage, shrinkage, count_correction). |
| note | string | No | Nota libre para el registro. |
| batch_id | integer | No | Lote concreto; si se omite, ajusta el total. |

Respuesta quantity_after: total tras el ajuste.
