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: {'reference_no': 'SA-2024-003', 'location_id': 1, 'adjustment_date': '2024-01-17T14:30:00.000Z', 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts', 'status': 'COMPLETED', 'stock_adjustment_rows': [{'variant_id': 501, 'quantity': 95, 'cost_per_unit': 123.45}]}.
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–Union[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: {'reference_no': 'SA-2024-003', 'location_id': 1, 'adjustment_date': '2024-01-17T14:30:00.000Z', 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts', 'status': 'COMPLETED', 'stock_adjustment_rows': [{'variant_id': 501, 'quantity': 95, 'cost_per_unit': 123.45}]}.
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[Union[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: {'reference_no': 'SA-2024-003', 'location_id': 1, 'adjustment_date': '2024-01-17T14:30:00.000Z', 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts', 'status': 'COMPLETED', 'stock_adjustment_rows': [{'variant_id': 501, 'quantity': 95, 'cost_per_unit': 123.45}]}.
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–Union[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: {'reference_no': 'SA-2024-003', 'location_id': 1, 'adjustment_date': '2024-01-17T14:30:00.000Z', 'reason': 'Cycle count correction', 'additional_info': 'Cycle count correction - updated with final counts', 'status': 'COMPLETED', 'stock_adjustment_rows': [{'variant_id': 501, 'quantity': 95, 'cost_per_unit': 123.45}]}.
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[Union[DetailedErrorResponse, ErrorResponse, StockAdjustment]]