Body
The unique identifier of the inventory item to adjust
The type of adjustment (e.g., “reconciliation”, “damage”, “theft”, “expiration”, “return”, “manual”)
The quantity to adjust (positive for increase, negative for decrease)
Detailed reason for the adjustment
The warehouse where the adjustment is being made
The specific location within the warehouse
Reference number for tracking (e.g., count sheet number, incident report)
The cost impact of this adjustment for accounting purposes
Response
The unique identifier of the adjustment record
The inventory item that was adjusted
The type of adjustment performed
The quantity before adjustment
The quantity after adjustment
The actual quantity change applied
The financial impact of this adjustment
The user who performed the adjustment
Timestamp when the adjustment was made
Indicates whether the adjustment was successful
Error Responses
Error object containing details about what went wrong
Error code (e.g., “insufficient_stock”, “invalid_quantity”, “warehouse_not_found”)
Human-readable error message
curl --location --request POST 'https://api.stateset.com/v1/inventory_items/:id/adjust' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"inventory_item_id": "inv_abc123",
"adjustment_type": "reconciliation",
"quantity_change": -5,
"reason": "Physical count showed 5 less than system",
"warehouse_id": "wh_east_01",
"location_id": "loc_a1_shelf_3",
"reference_number": "COUNT_2024_001",
"cost_adjustment": -125.00
}'
{
"id": "adj_xyz789",
"inventory_item_id": "inv_abc123",
"adjustment_type": "reconciliation",
"quantity_before": 100,
"quantity_after": 95,
"quantity_change": -5,
"cost_impact": -125.00,
"reason": "Physical count showed 5 less than system",
"warehouse_id": "wh_east_01",
"location_id": "loc_a1_shelf_3",
"reference_number": "COUNT_2024_001",
"adjusted_by": "user_123",
"adjusted_at": "2024-01-15T14:30:00Z",
"success": true
}