katana_public_api_client.api.batch.create_batch¶
katana_public_api_client.api.batch.create_batch
¶
Classes¶
Functions¶
asyncio(*, client, body)
async
¶
Create a batch
Creates a batch object.
Parameters:
-
body(Batch) –Core batch business properties Example: {'batch_number': 'BAT-2024-001', 'expiration_date': '2025-10-23T10:37:05.085Z', 'batch_created_date': '2024-01-15T08:00:00.000Z', 'variant_id': 1001, 'batch_barcode': '0317'}.
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:
-
BatchResponse | DetailedErrorResponse | ErrorResponse | None–Union[BatchResponse, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/batch/create_batch.py
asyncio_detailed(*, client, body)
async
¶
Create a batch
Creates a batch object.
Parameters:
-
body(Batch) –Core batch business properties Example: {'batch_number': 'BAT-2024-001', 'expiration_date': '2025-10-23T10:37:05.085Z', 'batch_created_date': '2024-01-15T08:00:00.000Z', 'variant_id': 1001, 'batch_barcode': '0317'}.
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[BatchResponse | DetailedErrorResponse | ErrorResponse]–Response[Union[BatchResponse, DetailedErrorResponse, ErrorResponse]]
Source code in katana_public_api_client/api/batch/create_batch.py
sync(*, client, body)
¶
Create a batch
Creates a batch object.
Parameters:
-
body(Batch) –Core batch business properties Example: {'batch_number': 'BAT-2024-001', 'expiration_date': '2025-10-23T10:37:05.085Z', 'batch_created_date': '2024-01-15T08:00:00.000Z', 'variant_id': 1001, 'batch_barcode': '0317'}.
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:
-
BatchResponse | DetailedErrorResponse | ErrorResponse | None–Union[BatchResponse, DetailedErrorResponse, ErrorResponse]
Source code in katana_public_api_client/api/batch/create_batch.py
sync_detailed(*, client, body)
¶
Create a batch
Creates a batch object.
Parameters:
-
body(Batch) –Core batch business properties Example: {'batch_number': 'BAT-2024-001', 'expiration_date': '2025-10-23T10:37:05.085Z', 'batch_created_date': '2024-01-15T08:00:00.000Z', 'variant_id': 1001, 'batch_barcode': '0317'}.
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[BatchResponse | DetailedErrorResponse | ErrorResponse]–Response[Union[BatchResponse, DetailedErrorResponse, ErrorResponse]]