> ## Documentation Index
> Fetch the complete documentation index at: https://docs.statproxies.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Active Orders

> Retrieve all active orders with proxy details for a specific customer.

Fetch all active orders for a specific customer, including full proxy lists.

## Request

### Headers

| Header          | Value                   | Required |
| --------------- | ----------------------- | -------- |
| `Authorization` | `Bearer {your_api_key}` | Yes      |

### Path Parameters

<ParamField path="customer_id" type="string" required>
  The customer's Discord ID or identifier.
</ParamField>

### Example Request

```bash theme={null}
curl -X GET "https://dashboard.statproxies.com/api/v2/account/fetch/all/123456789012345678" \
  -H "Authorization: Bearer {your_api_key}"
```

## Response

### Success Response

```json theme={null}
{
  "order": [
    {
      "_id": "64abc123def456789",
      "email": "user@example.com",
      "customer_discord_id": "123456789012345678",
      "product_id": "captcha",
      "product_name": "Captcha Proxies",
      "quantity": 10,
      "order_status": "active",
      "unix_purchase_date": 1753815092,
      "unix_expiration_date": 1756493492,
      "datacenter_details": {
        "proxy_username": "sub_1rqjp3jb4g9i6pkhdwmkpjob",
        "proxy_password": "stat261",
        "proxy_port": 3128,
        "proxy_list": "31.193.191.6:3128:sub_1rqjp3jb4g9i6pkhdwmkpjob:stat261\n31.193.191.7:3128:sub_1rqjp3jb4g9i6pkhdwmkpjob:stat261"
      }
    }
  ]
}
```

### Response Fields

<ResponseField name="order" type="array">
  Array of active order objects with proxy details.
</ResponseField>

### Order Object Fields

| Field                  | Type    | Description                                |
| ---------------------- | ------- | ------------------------------------------ |
| `_id`                  | string  | MongoDB document ID                        |
| `email`                | string  | Customer's email address                   |
| `customer_discord_id`  | string  | Customer's Discord ID                      |
| `product_id`           | string  | Product type identifier                    |
| `product_name`         | string  | Human-readable product name                |
| `quantity`             | integer | Number of proxies                          |
| `order_status`         | string  | Status (always "active" for this endpoint) |
| `unix_purchase_date`   | integer | Purchase timestamp                         |
| `unix_expiration_date` | integer | Expiration timestamp                       |
| `datacenter_details`   | object  | Proxy credentials and list                 |

### Datacenter Details Object

| Field            | Type    | Description                       |
| ---------------- | ------- | --------------------------------- |
| `proxy_username` | string  | Authentication username           |
| `proxy_password` | string  | Authentication password           |
| `proxy_port`     | integer | Proxy port number                 |
| `proxy_list`     | string  | Newline-separated list of proxies |

### Error Responses

#### 503 Service Unavailable

```json theme={null}
{
  "error": "user_order_not_found"
}
```

## Proxy List Format

The `proxy_list` field contains proxies in the format:

```
ip:port:username:password
```

Each proxy is separated by a newline character (`\n`).

### Example Parsing (JavaScript)

```javascript theme={null}
const proxies = response.order[0].datacenter_details.proxy_list.split('\n');
// ["31.193.191.6:3128:username:password", "31.193.191.7:3128:username:password"]
```

## Difference from Order History

| Endpoint          | Active Only     | Includes Proxy List |
| ----------------- | --------------- | ------------------- |
| Get Order History | No (all orders) | No                  |
| Get Active Orders | Yes             | Yes                 |

## Use Case

This endpoint is ideal for:

* Retrieving ready-to-use proxy lists for a customer
* Automated proxy distribution systems
* Building customer-facing proxy management tools
