## Update Customer Order

`customer_orders.update_customer_order(strstore_number, CustomerOrderUpdateCustomerOrderParams**kwargs)  -> CustomerOrderUpdateCustomerOrderResponse`

**put** `/api/v2/public/stores/{store_number}/orders/customerorder`

Updates an existing customer order and its lines in one store. Use it to change quantities or status after the order was created, rather than deleting and recreating it.

### Parameters

- `store_number: str`

- `orders: Optional[Orders]`

  - `order_number: str`

  - `is_active: Optional[bool]`

  - `is_claimed: Optional[bool]`

  - `is_picked: Optional[bool]`

  - `is_rejected: Optional[bool]`

  - `order_lines: Optional[Iterable[OrdersOrderLine]]`

    - `line_number: int`

    - `product_number: str`

    - `barcode: Optional[str]`

    - `delivery_date: Optional[Union[str, datetime, null]]`

    - `description: Optional[str]`

    - `is_picked: Optional[bool]`

    - `is_picked_from_warehouse: Optional[bool]`

    - `ordering_datetime: Optional[Union[str, datetime, null]]`

    - `picked_quantity: Optional[float]`

    - `pickup_date: Optional[Union[str, datetime, null]]`

    - `preferred_location_code: Optional[str]`

    - `price: Optional[float]`

    - `quantity: Optional[float]`

    - `stock_pool: Optional[int]`

  - `rejection_reason_code: Optional[str]`

  - `rejection_reason_code_description: Optional[str]`

### Returns

- `class CustomerOrderUpdateCustomerOrderResponse: …`

  Standard success response returned by mutation endpoints.

  - `success: bool`

    Indicates whether the operation completed successfully.

  - `data: Optional[str]`

    Optional data payload returned by the operation.

  - `message: Optional[str]`

    Human-readable message describing the result.

### Example

```python
import os
from colleqtive_sdk import Colleqtive

client = Colleqtive(
    bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"),  # This is the default and can be omitted
)
response = client.customer_orders.update_customer_order(
    store_number="store_number",
)
print(response.success)
```

#### Response

```json
{
  "success": true,
  "data": "data",
  "message": "message"
}
```
