katana_public_api_client.api.stocktake.create_stocktake¶
katana_public_api_client.api.stocktake.create_stocktake
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a stocktake
Creates a new stocktake to perform inventory counting.
Parameters:
-
body(CreateStocktakeRequest) –Request payload for creating a new stocktake to perform physical inventory counting Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count', 'status': 'DRAFT'}.
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 | Stocktake | None–Union[DetailedErrorResponse, ErrorResponse, Stocktake]
Source code in katana_public_api_client/api/stocktake/create_stocktake.py
asyncio_detailed(*, client, body)
async
¶
Create a stocktake
Creates a new stocktake to perform inventory counting.
Parameters:
-
body(CreateStocktakeRequest) –Request payload for creating a new stocktake to perform physical inventory counting Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count', 'status': 'DRAFT'}.
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 | Stocktake]–Response[Union[DetailedErrorResponse, ErrorResponse, Stocktake]]
Source code in katana_public_api_client/api/stocktake/create_stocktake.py
sync(*, client, body)
¶
Create a stocktake
Creates a new stocktake to perform inventory counting.
Parameters:
-
body(CreateStocktakeRequest) –Request payload for creating a new stocktake to perform physical inventory counting Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count', 'status': 'DRAFT'}.
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 | Stocktake | None–Union[DetailedErrorResponse, ErrorResponse, Stocktake]
Source code in katana_public_api_client/api/stocktake/create_stocktake.py
sync_detailed(*, client, body)
¶
Create a stocktake
Creates a new stocktake to perform inventory counting.
Parameters:
-
body(CreateStocktakeRequest) –Request payload for creating a new stocktake to perform physical inventory counting Example: {'reference_no': 'STK-2024-003', 'location_id': 1, 'stocktake_date': '2024-01-17T09:00:00.000Z', 'notes': 'Quarterly inventory count', 'status': 'DRAFT'}.
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 | Stocktake]–Response[Union[DetailedErrorResponse, ErrorResponse, Stocktake]]