# Warehouses

## get_warehouses

`TOOL get_warehouses`

Get list of warehouses for the authenticated user's organization

Authentication: no security requirement declared for this operation.

Parameters:

- `page` (argument, number, optional) - Page number for pagination
  Type: number
  
  Page number for pagination
  
  default: 1

- `limit` (argument, number, optional) - Number of items per page
  Type: number
  
  Number of items per page
  
  default: 10

- `search` (argument, string, optional) - Search term for warehouse name, code, or email
  Type: string
  
  Search term for warehouse name, code, or email

- `relations` (argument, array, optional) - Relations to include (e.g., ["contact", "logo"])
  Type: array
  
  Relations to include (e.g., ["contact", "logo"])
  
  Items:
    Type: string

- `active` (argument, boolean, optional) - Filter by active status
  Type: boolean
  
  Filter by active status

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_warehouses",
    "arguments": {
        "page": 1,
        "limit": 10,
        "search": "string",
        "relations": [
          "string"
        ],
        "active": true
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_warehouses",
  "arguments": {
    "page": 1,
    "limit": 10,
    "search": "string",
    "relations": [
      "string"
    ],
    "active": true
  }
});
```

### Python

```python
result = await session.call_tool("get_warehouses", arguments={
  "page": 1,
  "limit": 10,
  "search": "string",
  "relations": [
    "string"
  ],
  "active": true
})
```


## get_warehouse

`TOOL get_warehouse`

Get a specific warehouse by ID

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (argument, string, uuid, required) - The warehouse ID
  Type: string, uuid
  
  The warehouse ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `relations` (argument, array, optional) - Relations to include
  Type: array
  
  Relations to include
  
  Items:
    Type: string

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_warehouse",
    "arguments": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "relations": [
          "string"
        ]
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "get_warehouse",
  "arguments": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "relations": [
      "string"
    ]
  }
});
```

### Python

```python
result = await session.call_tool("get_warehouse", arguments={
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "relations": [
    "string"
  ]
})
```


## create_warehouse

`TOOL create_warehouse`

Create a new warehouse in the authenticated user's organization

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

- `warehouse_data` (required)
  Type: object
  
  The data for creating the warehouse
  
  - `name` (required)
    Type: string
    
    The warehouse name (required)
  
  - `code` (required)
    Type: string
    
    The warehouse code (required)
  
  Additional properties: 
    Type: unknown

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_warehouse",
    "arguments": {
        "warehouse_data": {
          "name": "string",
          "code": "string"
        }
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "create_warehouse",
  "arguments": {
    "warehouse_data": {
      "name": "string",
      "code": "string"
    }
  }
});
```

### Python

```python
result = await session.call_tool("create_warehouse", arguments={
  "warehouse_data": {
    "name": "string",
    "code": "string"
  }
})
```


## update_warehouse

`TOOL update_warehouse`

Update an existing warehouse

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (argument, string, uuid, required) - The warehouse ID
  Type: string, uuid
  
  The warehouse ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

- `warehouse_data` (argument, object, required) - The data for updating the warehouse
  Type: object
  
  The data for updating the warehouse
  
  Additional properties: 
    Type: unknown

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_warehouse",
    "arguments": {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "warehouse_data": {}
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "update_warehouse",
  "arguments": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "warehouse_data": {}
  }
});
```

### Python

```python
result = await session.call_tool("update_warehouse", arguments={
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "warehouse_data": {}
})
```


## delete_warehouse

`TOOL delete_warehouse`

Delete a warehouse

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (argument, string, uuid, required) - The warehouse ID
  Type: string, uuid
  
  The warehouse ID
  
  pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"

## Examples

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "delete_warehouse",
    "arguments": {
        "id": "550e8400-e29b-41d4-a716-446655440000"
      }
  }
}
```

### TypeScript

```typescript
const result = await client.callTool({
  "name": "delete_warehouse",
  "arguments": {
    "id": "550e8400-e29b-41d4-a716-446655440000"
  }
});
```

### Python

```python
result = await session.call_tool("delete_warehouse", arguments={
  "id": "550e8400-e29b-41d4-a716-446655440000"
})
```
