katana_public_api_client.api.batch.get_batch_stock¶
katana_public_api_client.api.batch.get_batch_stock
¶
Classes¶
Functions¶
asyncio(*, client, batch_id=UNSET, batch_number=UNSET, location_id=UNSET, variant_id=UNSET, batch_barcode=UNSET, batch_created_at_min=UNSET, batch_created_at_max=UNSET, include_empty=UNSET, limit=50, page=1)
async
¶
List current batch stock
Returns a list for current batch stock. The inventory is returned in sorted order, based on location_id ASC, variant_id ASC, and batch_id DESC.
Parameters:
-
batch_id(Union[Unset, int], default:UNSET) – -
batch_number(Union[Unset, str], default:UNSET) – -
location_id(Union[Unset, int], default:UNSET) – -
variant_id(Union[Unset, int], default:UNSET) – -
batch_barcode(Union[Unset, str], default:UNSET) – -
batch_created_at_min(Union[Unset, str], default:UNSET) – -
batch_created_at_max(Union[Unset, str], default:UNSET) – -
include_empty(Union[Unset, bool], default:UNSET) – -
limit(Union[Unset, int], default:50) –Default: 50.
-
page(Union[Unset, int], default:1) –Default: 1.
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:
-
BatchStockListResponse | ErrorResponse | None–Union[BatchStockListResponse, ErrorResponse]
Source code in katana_public_api_client/api/batch/get_batch_stock.py
asyncio_detailed(*, client, batch_id=UNSET, batch_number=UNSET, location_id=UNSET, variant_id=UNSET, batch_barcode=UNSET, batch_created_at_min=UNSET, batch_created_at_max=UNSET, include_empty=UNSET, limit=50, page=1)
async
¶
List current batch stock
Returns a list for current batch stock. The inventory is returned in sorted order, based on location_id ASC, variant_id ASC, and batch_id DESC.
Parameters:
-
batch_id(Union[Unset, int], default:UNSET) – -
batch_number(Union[Unset, str], default:UNSET) – -
location_id(Union[Unset, int], default:UNSET) – -
variant_id(Union[Unset, int], default:UNSET) – -
batch_barcode(Union[Unset, str], default:UNSET) – -
batch_created_at_min(Union[Unset, str], default:UNSET) – -
batch_created_at_max(Union[Unset, str], default:UNSET) – -
include_empty(Union[Unset, bool], default:UNSET) – -
limit(Union[Unset, int], default:50) –Default: 50.
-
page(Union[Unset, int], default:1) –Default: 1.
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[BatchStockListResponse | ErrorResponse]–Response[Union[BatchStockListResponse, ErrorResponse]]
Source code in katana_public_api_client/api/batch/get_batch_stock.py
sync(*, client, batch_id=UNSET, batch_number=UNSET, location_id=UNSET, variant_id=UNSET, batch_barcode=UNSET, batch_created_at_min=UNSET, batch_created_at_max=UNSET, include_empty=UNSET, limit=50, page=1)
¶
List current batch stock
Returns a list for current batch stock. The inventory is returned in sorted order, based on location_id ASC, variant_id ASC, and batch_id DESC.
Parameters:
-
batch_id(Union[Unset, int], default:UNSET) – -
batch_number(Union[Unset, str], default:UNSET) – -
location_id(Union[Unset, int], default:UNSET) – -
variant_id(Union[Unset, int], default:UNSET) – -
batch_barcode(Union[Unset, str], default:UNSET) – -
batch_created_at_min(Union[Unset, str], default:UNSET) – -
batch_created_at_max(Union[Unset, str], default:UNSET) – -
include_empty(Union[Unset, bool], default:UNSET) – -
limit(Union[Unset, int], default:50) –Default: 50.
-
page(Union[Unset, int], default:1) –Default: 1.
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:
-
BatchStockListResponse | ErrorResponse | None–Union[BatchStockListResponse, ErrorResponse]
Source code in katana_public_api_client/api/batch/get_batch_stock.py
sync_detailed(*, client, batch_id=UNSET, batch_number=UNSET, location_id=UNSET, variant_id=UNSET, batch_barcode=UNSET, batch_created_at_min=UNSET, batch_created_at_max=UNSET, include_empty=UNSET, limit=50, page=1)
¶
List current batch stock
Returns a list for current batch stock. The inventory is returned in sorted order, based on location_id ASC, variant_id ASC, and batch_id DESC.
Parameters:
-
batch_id(Union[Unset, int], default:UNSET) – -
batch_number(Union[Unset, str], default:UNSET) – -
location_id(Union[Unset, int], default:UNSET) – -
variant_id(Union[Unset, int], default:UNSET) – -
batch_barcode(Union[Unset, str], default:UNSET) – -
batch_created_at_min(Union[Unset, str], default:UNSET) – -
batch_created_at_max(Union[Unset, str], default:UNSET) – -
include_empty(Union[Unset, bool], default:UNSET) – -
limit(Union[Unset, int], default:50) –Default: 50.
-
page(Union[Unset, int], default:1) –Default: 1.
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[BatchStockListResponse | ErrorResponse]–Response[Union[BatchStockListResponse, ErrorResponse]]