Skip to content

katana_public_api_client.api.inventory.get_all_inventory_point

katana_public_api_client.api.inventory.get_all_inventory_point

Classes

Functions

asyncio(*, client, location_id=UNSET, variant_id=UNSET, include_archived=UNSET, extend=UNSET, limit=50, page=1) async

List current inventory

Returns a list for current inventory. The inventory is returned in sorted order, with the oldest locations appearing first.

Parameters:

  • location_id (Union[Unset, int], default: UNSET ) –
  • variant_id (Union[Unset, int], default: UNSET ) –
  • include_archived (Union[Unset, bool], default: UNSET ) –
  • extend (Union[Unset, list[GetAllInventoryPointExtendItem]], 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:

Source code in katana_public_api_client/api/inventory/get_all_inventory_point.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    location_id: Unset | int = UNSET,
    variant_id: Unset | int = UNSET,
    include_archived: Unset | bool = UNSET,
    extend: Unset | list[GetAllInventoryPointExtendItem] = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> ErrorResponse | InventoryListResponse | None:
    """List current inventory

     Returns a list for current inventory. The inventory is returned in sorted order, with the oldest
    locations
    appearing first.

    Args:
        location_id (Union[Unset, int]):
        variant_id (Union[Unset, int]):
        include_archived (Union[Unset, bool]):
        extend (Union[Unset, list[GetAllInventoryPointExtendItem]]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[ErrorResponse, InventoryListResponse]
    """

    return (
        await asyncio_detailed(
            client=client,
            location_id=location_id,
            variant_id=variant_id,
            include_archived=include_archived,
            extend=extend,
            limit=limit,
            page=page,
        )
    ).parsed

asyncio_detailed(*, client, location_id=UNSET, variant_id=UNSET, include_archived=UNSET, extend=UNSET, limit=50, page=1) async

List current inventory

Returns a list for current inventory. The inventory is returned in sorted order, with the oldest locations appearing first.

Parameters:

  • location_id (Union[Unset, int], default: UNSET ) –
  • variant_id (Union[Unset, int], default: UNSET ) –
  • include_archived (Union[Unset, bool], default: UNSET ) –
  • extend (Union[Unset, list[GetAllInventoryPointExtendItem]], 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:

Source code in katana_public_api_client/api/inventory/get_all_inventory_point.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    location_id: Unset | int = UNSET,
    variant_id: Unset | int = UNSET,
    include_archived: Unset | bool = UNSET,
    extend: Unset | list[GetAllInventoryPointExtendItem] = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> Response[ErrorResponse | InventoryListResponse]:
    """List current inventory

     Returns a list for current inventory. The inventory is returned in sorted order, with the oldest
    locations
    appearing first.

    Args:
        location_id (Union[Unset, int]):
        variant_id (Union[Unset, int]):
        include_archived (Union[Unset, bool]):
        extend (Union[Unset, list[GetAllInventoryPointExtendItem]]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[ErrorResponse, InventoryListResponse]]
    """

    kwargs = _get_kwargs(
        location_id=location_id,
        variant_id=variant_id,
        include_archived=include_archived,
        extend=extend,
        limit=limit,
        page=page,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync(*, client, location_id=UNSET, variant_id=UNSET, include_archived=UNSET, extend=UNSET, limit=50, page=1)

List current inventory

Returns a list for current inventory. The inventory is returned in sorted order, with the oldest locations appearing first.

Parameters:

  • location_id (Union[Unset, int], default: UNSET ) –
  • variant_id (Union[Unset, int], default: UNSET ) –
  • include_archived (Union[Unset, bool], default: UNSET ) –
  • extend (Union[Unset, list[GetAllInventoryPointExtendItem]], 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:

Source code in katana_public_api_client/api/inventory/get_all_inventory_point.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    location_id: Unset | int = UNSET,
    variant_id: Unset | int = UNSET,
    include_archived: Unset | bool = UNSET,
    extend: Unset | list[GetAllInventoryPointExtendItem] = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> ErrorResponse | InventoryListResponse | None:
    """List current inventory

     Returns a list for current inventory. The inventory is returned in sorted order, with the oldest
    locations
    appearing first.

    Args:
        location_id (Union[Unset, int]):
        variant_id (Union[Unset, int]):
        include_archived (Union[Unset, bool]):
        extend (Union[Unset, list[GetAllInventoryPointExtendItem]]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[ErrorResponse, InventoryListResponse]
    """

    return sync_detailed(
        client=client,
        location_id=location_id,
        variant_id=variant_id,
        include_archived=include_archived,
        extend=extend,
        limit=limit,
        page=page,
    ).parsed

sync_detailed(*, client, location_id=UNSET, variant_id=UNSET, include_archived=UNSET, extend=UNSET, limit=50, page=1)

List current inventory

Returns a list for current inventory. The inventory is returned in sorted order, with the oldest locations appearing first.

Parameters:

  • location_id (Union[Unset, int], default: UNSET ) –
  • variant_id (Union[Unset, int], default: UNSET ) –
  • include_archived (Union[Unset, bool], default: UNSET ) –
  • extend (Union[Unset, list[GetAllInventoryPointExtendItem]], 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:

Source code in katana_public_api_client/api/inventory/get_all_inventory_point.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    location_id: Unset | int = UNSET,
    variant_id: Unset | int = UNSET,
    include_archived: Unset | bool = UNSET,
    extend: Unset | list[GetAllInventoryPointExtendItem] = UNSET,
    limit: Unset | int = 50,
    page: Unset | int = 1,
) -> Response[ErrorResponse | InventoryListResponse]:
    """List current inventory

     Returns a list for current inventory. The inventory is returned in sorted order, with the oldest
    locations
    appearing first.

    Args:
        location_id (Union[Unset, int]):
        variant_id (Union[Unset, int]):
        include_archived (Union[Unset, bool]):
        extend (Union[Unset, list[GetAllInventoryPointExtendItem]]):
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.


    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[ErrorResponse, InventoryListResponse]]
    """

    kwargs = _get_kwargs(
        location_id=location_id,
        variant_id=variant_id,
        include_archived=include_archived,
        extend=extend,
        limit=limit,
        page=page,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)