Skip to content

correctStockMovement

WRITE

Correct stock movement.

POST /api/v1/inventory/correctStockMovement
curl -X POST '<your-host>/api/v1/inventory/correctStockMovement' \
  -H 'Authorization: Bearer <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
    "correctedQuantity": 0,
    "idempotencyKey": "string",
    "itemLedgerId": "string"
  }'
Response
{
  "id": "…"
}

Parameters

ParameterType

Names this one correction: send the same key again to retry it, and it posts once; a new correction takes a new key

min length 1

Input schema

schema
{
  "type": "object",
  "properties": {
    "correctedQuantity": {
      "type": "number"
    },
    "comment": {
      "type": "string"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "description": "Names this one correction: send the same key again to retry it, and it posts once; a new correction takes a new key"
    },
    "itemLedgerId": {
      "type": "string"
    }
  },
  "required": [
    "correctedQuantity",
    "idempotencyKey",
    "itemLedgerId"
  ]
}