> ## 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 Order Details

> Retrieve the raw stored order records for the authenticated user or organization.

Retrieve the raw order records (as stored in the database) for every non-expired order belonging to the authenticated user or organization.

Unlike [List Orders](/api-reference/order/list-orders), this returns database documents directly and does **not** contact the proxy servers, so no live proxy IP lists are included.

## Request

### Headers

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

This endpoint takes no parameters.

### Example Request

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

## Response

### Success Response

```json theme={null}
{
  "response": "success",
  "orders": [
    {
      "_id": "66a9f1c2e4b0a1b2c3d4e5f6",
      "email": "user@example.com",
      "customer_discord_id": "123456789012345678",
      "product_id": "captcha",
      "product_category": "datacenter",
      "product_name": "Captcha Proxies",
      "quantity": 10,
      "iso_purchase_date": "2025-07-29",
      "iso_expiration_date": "2025-08-29",
      "order_id": "sub_1rqjp3jb4g9i6pkhdwmkpjob",
      "datacenter_details": {
        "proxy_username": "sub_1rqjp3jb4g9i6pkhdwmkpjob",
        "proxy_password": "stat261",
        "proxy_port": 3128
      }
    }
  ]
}
```

### Response Fields

<ResponseField name="response" type="string">
  Status of the request.
</ResponseField>

<ResponseField name="orders" type="array">
  Array of raw order documents as stored in the database.
</ResponseField>

### Order Document Fields

| Field                 | Type    | Description                                                                                           |
| --------------------- | ------- | ----------------------------------------------------------------------------------------------------- |
| `_id`                 | string  | Internal database document ID                                                                         |
| `email`               | string  | Email of the account the order belongs to                                                             |
| `customer_discord_id` | string  | Discord ID associated with the customer (if any)                                                      |
| `product_id`          | string  | Product type identifier                                                                               |
| `product_category`    | string  | Category (e.g., `datacenter`, `residential`)                                                          |
| `product_name`        | string  | Human-readable product name                                                                           |
| `quantity`            | integer | Number of proxies                                                                                     |
| `iso_purchase_date`   | string  | Purchase date in ISO `YYYY-MM-DD` format                                                              |
| `iso_expiration_date` | string  | Expiration date in ISO `YYYY-MM-DD` format                                                            |
| `order_id`            | string  | Unique order identifier                                                                               |
| `datacenter_details`  | object  | Datacenter proxy credentials (`proxy_username`, `proxy_password`, `proxy_port`) for datacenter orders |

## Notes

* This endpoint does not call the proxy servers, so it returns no live IP lists. Use [Get Order](/api-reference/order/get-order) or [List Orders](/api-reference/order/list-orders) with `include_proxies=true` for live proxy details.
* Only non-expired orders are returned.

## Related Endpoints

<CardGroup cols={2}>
  <Card title="List Orders" icon="list" href="/api-reference/order/list-orders">
    List orders with live proxy details.
  </Card>

  <Card title="Get Order" icon="download" href="/api-reference/order/get-order">
    Fetch live proxy details for a single order.
  </Card>
</CardGroup>
