## Update Customer Order

**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.

### Path Parameters

- `store_number: string`

### Body Parameters

- `orders: optional object { order_number, is_active, is_claimed, 5 more }`

  - `order_number: string`

  - `is_active: optional boolean`

  - `is_claimed: optional boolean`

  - `is_picked: optional boolean`

  - `is_rejected: optional boolean`

  - `order_lines: optional array of object { line_number, product_number, barcode, 11 more }`

    - `line_number: number`

    - `product_number: string`

    - `barcode: optional string`

    - `delivery_date: optional string`

    - `description: optional string`

    - `is_picked: optional boolean`

    - `is_picked_from_warehouse: optional boolean`

    - `ordering_datetime: optional string`

    - `picked_quantity: optional number`

    - `pickup_date: optional string`

    - `preferred_location_code: optional string`

    - `price: optional number`

    - `quantity: optional number`

    - `stock_pool: optional number`

  - `rejection_reason_code: optional string`

  - `rejection_reason_code_description: optional string`

### Returns

- `success: boolean`

  Indicates whether the operation completed successfully.

- `data: optional string`

  Optional data payload returned by the operation.

- `message: optional string`

  Human-readable message describing the result.

### Example

```http
curl https://api.colleqtive.net/api/v2/public/stores/$STORE_NUMBER/orders/customerorder \
    -X PUT \
    -H "Authorization: $COLLEQTIVE_BEARER_TOKEN"
```

#### Response

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