## Create Customer Order Clearance

**post** `/api/v2/public/customerorders/clearance`

Creates movement assignments to clear warehouse stock held for customer orders, so the goods can be moved out to the shop floor. `location_code_tag` selects which locations are cleared, and `category_codes` narrows it to specific product categories.

### Query Parameters

- `location_code_tag: string`

  Tag identifying the locations to clear.

### Body Parameters

- `category_codes: optional array of string`

  Restricts the clearance to these product categories. Leave empty to clear every category.

### 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/customerorders/clearance \
    -H 'Content-Type: application/json' \
    -H "Authorization: $COLLEQTIVE_BEARER_TOKEN" \
    -d '{}'
```

#### Response

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