katana_public_api_client.api.stocktake_row.create_stocktake_row¶
katana_public_api_client.api.stocktake_row.create_stocktake_row
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a stocktake row
Creates a new stocktake row for counting specific variants.
Parameters:
-
body(CreateStocktakeRowRequest) –Request payload for creating stocktake rows for counting specific variants Example: {'stocktake_id': 4001, 'stocktake_rows': [{'variant_id': 3001, 'counted_quantity': 147.0, 'notes': 'Initial count'}]}.
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 | list[StocktakeRow] | None–DetailedErrorResponse | ErrorResponse | list[StocktakeRow]
Source code in katana_public_api_client/api/stocktake_row/create_stocktake_row.py
asyncio_detailed(*, client, body)
async
¶
Create a stocktake row
Creates a new stocktake row for counting specific variants.
Parameters:
-
body(CreateStocktakeRowRequest) –Request payload for creating stocktake rows for counting specific variants Example: {'stocktake_id': 4001, 'stocktake_rows': [{'variant_id': 3001, 'counted_quantity': 147.0, 'notes': 'Initial count'}]}.
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 | list[StocktakeRow]]–Response[DetailedErrorResponse | ErrorResponse | list[StocktakeRow]]
Source code in katana_public_api_client/api/stocktake_row/create_stocktake_row.py
sync(*, client, body)
¶
Create a stocktake row
Creates a new stocktake row for counting specific variants.
Parameters:
-
body(CreateStocktakeRowRequest) –Request payload for creating stocktake rows for counting specific variants Example: {'stocktake_id': 4001, 'stocktake_rows': [{'variant_id': 3001, 'counted_quantity': 147.0, 'notes': 'Initial count'}]}.
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 | list[StocktakeRow] | None–DetailedErrorResponse | ErrorResponse | list[StocktakeRow]
Source code in katana_public_api_client/api/stocktake_row/create_stocktake_row.py
sync_detailed(*, client, body)
¶
Create a stocktake row
Creates a new stocktake row for counting specific variants.
Parameters:
-
body(CreateStocktakeRowRequest) –Request payload for creating stocktake rows for counting specific variants Example: {'stocktake_id': 4001, 'stocktake_rows': [{'variant_id': 3001, 'counted_quantity': 147.0, 'notes': 'Initial count'}]}.
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 | list[StocktakeRow]]–Response[DetailedErrorResponse | ErrorResponse | list[StocktakeRow]]