Sumtracker
Sumtracker Public API v2025-03

Create Stock Adjustment Line

POST
https://inventory-api.sumtracker.com/api/version/2025-03
/stock/adjustment/
Authorization (header)

Adjust the inventory of a single product at a particular warehouse.

Create Stock Adjustment Line › Request Body

id
​integer · readOnly · required
created
​string · date-time · readOnly · required
product_id
​integer · required
​object · readOnly · required

Product object.

quantity
​integer · required

If the adjustment type is "ADD" or "SUB" then the quantity should not be 0. A negative quantity is allowed for "ADD", where it decreases the stock. For "SUB" the quantity is subtracted from the stock, so it must be positive. A validation error is raised otherwise.

adjustment_type
​string · enum · required

Can be either one of: SET, ADD, SUB

  • SET - SET
  • ADD - ADD
  • SUB - SUB
Enum values:
SET
ADD
SUB
warehouse_id
​integer · required
reason
​string · maxLength: 2048
cost
​string | null · decimal · pattern: ^-?\d{0,10}(?:\.\d{0…

Create Stock Adjustment Line › Responses

id
​integer · readOnly · required
created
​string · date-time · readOnly · required
product_id
​integer · required
​object · readOnly · required

Product object.

quantity
​integer · required

If the adjustment type is "ADD" or "SUB" then the quantity should not be 0. A negative quantity is allowed for "ADD", where it decreases the stock. For "SUB" the quantity is subtracted from the stock, so it must be positive. A validation error is raised otherwise.

adjustment_type
​string · enum · required

Can be either one of: SET, ADD, SUB

  • SET - SET
  • ADD - ADD
  • SUB - SUB
Enum values:
SET
ADD
SUB
warehouse_id
​integer · required
reason
​string · maxLength: 2048
cost
​string | null · decimal · pattern: ^-?\d{0,10}(?:\.\d{0…