This page was automatically generated from tracezilla’s Swagger API documentation 2026-01-26

POST /lots/{lotId}/adjust-quantity

Adjust quantity on hand on lot as of a specific date

Parameters (path)

Name Required Description Values
lotId required Target lot.  

Request body

Description

Data to store.

Required

This parameter is required.

Request body JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  "properties": {
    "adjustment_date": {
      "format": "date",
      "example": "2021-01-01"
    },
    "reason_for_adjustment": {
      "description": "Reason for the adjustment.",
      "type": "string",
      "format": "string",
      "enum": [
        "stocktaking",
        "lost",
        "product_development",
        "analysis",
        "retail",
        "taken_out"
      ],
      "example": "stocktaking"
    },
    "line_text": {
      "description": "Text to be put on the adjustment line.",
      "type": "string",
      "format": "string",
      "example": "end of month stocktaking"
    },
    "quantity": {
      "description": "Quantity to adjust the physical on hand quantity. Negative quantity will decrease inventory.",
      "format": "int32",
      "example": 100
    }
  },
  "type": "object"
}

Responses

201

Successful operation. The adjustment line that was created/updated.

403

Unauthorized request

406

not acceptable

500

Internal server error