Skip to content

methods

WarehouseMethods

Bases: SellerApiABCMethods

list_warehouses async

Python
1
list_warehouses() -> list[Warehouse]

Получить все склады.

Возвращает: list[Warehouse]

Source code in marketplace_apis/ozon/warehouse/methods.py
Python
25
26
27
28
29
30
31
32
33
async def list_warehouses(
    self,
) -> list[Warehouse]:
    """Получить все склады.

    # Возвращает: list[[Warehouse](warehouse.md)]
    """
    _, data = await self.client.post(API_PATH["list_warehouses"])
    return [Warehouse.from_dict(raw_warehouse) for raw_warehouse in data["result"]]