katana_public_api_client.api.stock_adjustment.update_stock_adjustment¶
katana_public_api_client.api.stock_adjustment.update_stock_adjustment
¶
Classes¶
Functions¶
asyncio(id, *, client, body)
async
¶
Update a stock adjustment
Updates the specified stock adjustment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStockAdjustmentRequest) –Request payload for updating an existing stock adjustment Example: {'stock_adjustment_number': 'SA-2024-003', 'stock_adjustment_date': '2024-01-17T14:30:00.000Z', 'location_id': 1, 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts'}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
DetailedErrorResponse | ErrorResponse | StockAdjustment | None–DetailedErrorResponse | ErrorResponse | StockAdjustment
Source code in katana_public_api_client/api/stock_adjustment/update_stock_adjustment.py
asyncio_detailed(id, *, client, body)
async
¶
Update a stock adjustment
Updates the specified stock adjustment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStockAdjustmentRequest) –Request payload for updating an existing stock adjustment Example: {'stock_adjustment_number': 'SA-2024-003', 'stock_adjustment_date': '2024-01-17T14:30:00.000Z', 'location_id': 1, 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts'}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[DetailedErrorResponse | ErrorResponse | StockAdjustment]–Response[DetailedErrorResponse | ErrorResponse | StockAdjustment]
Source code in katana_public_api_client/api/stock_adjustment/update_stock_adjustment.py
sync(id, *, client, body)
¶
Update a stock adjustment
Updates the specified stock adjustment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStockAdjustmentRequest) –Request payload for updating an existing stock adjustment Example: {'stock_adjustment_number': 'SA-2024-003', 'stock_adjustment_date': '2024-01-17T14:30:00.000Z', 'location_id': 1, 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts'}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
DetailedErrorResponse | ErrorResponse | StockAdjustment | None–DetailedErrorResponse | ErrorResponse | StockAdjustment
Source code in katana_public_api_client/api/stock_adjustment/update_stock_adjustment.py
sync_detailed(id, *, client, body)
¶
Update a stock adjustment
Updates the specified stock adjustment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateStockAdjustmentRequest) –Request payload for updating an existing stock adjustment Example: {'stock_adjustment_number': 'SA-2024-003', 'stock_adjustment_date': '2024-01-17T14:30:00.000Z', 'location_id': 1, 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts'}.
Raises:
-
UnexpectedStatus–If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
-
TimeoutException–If the request takes longer than Client.timeout.
Returns:
-
Response[DetailedErrorResponse | ErrorResponse | StockAdjustment]–Response[DetailedErrorResponse | ErrorResponse | StockAdjustment]