Skip to main content
GET
https://dashboard.statproxies.com
/
api
/
v2
/
order
/
fetch
/
customer
/
{customer_id}
Get Customer Orders
curl --request GET \
  --url https://dashboard.statproxies.com/api/v2/order/fetch/customer/{customer_id}
{
  "response": "<string>",
  "customer_id": "<string>",
  "total_orders": 123,
  "orders": [
    {}
  ]
}
Retrieve all orders associated with a specific customer ID, including proxy details.

Request

Headers

HeaderValueRequired
AuthorizationBearer {your_api_key}Yes

Path Parameters

customer_id
string
required
The customer ID to search for. Must be lowercase letters only (a-z).

Example Request

curl -X GET "https://dashboard.statproxies.com/api/v2/order/fetch/customer/clientabc" \
  -H "Authorization: Bearer {your_api_key}"

Response

Success Response

{
  "response": "success",
  "customer_id": "clientabc",
  "total_orders": 2,
  "orders": [
    {
      "order_id": "sub_1rqjp3jb4g9i6pkhdwmkpjob",
      "subscription_id": "sub_1RqJP3JB4G9i6PKHDwmKPJOb",
      "product_type": "captcha",
      "product_name": "Captcha Proxies",
      "quantity": 10,
      "unix_purchase_date": 1753815092,
      "unix_expiration_date": 1756493492,
      "proxy_username": "sub_1rqjp3jb4g9i6pkhdwmkpjob",
      "proxy_password": "stat261",
      "customer": "clientabc",
      "proxies": [
        "31.193.191.6:3128:sub_1rqjp3jb4g9i6pkhdwmkpjob:stat261",
        "31.193.191.7:3128:sub_1rqjp3jb4g9i6pkhdwmkpjob:stat261"
      ]
    },
    {
      "order_id": "sub_2abcd4jb4g9i6pkhdwmkxyz",
      "subscription_id": "sub_2ABCD4JB4G9i6PKHDwmKXYZ",
      "product_type": "x1",
      "product_name": "X1 Fiber ISP",
      "quantity": 5,
      "unix_purchase_date": 1753900000,
      "unix_expiration_date": 1756578400,
      "proxy_username": "sub_2abcd4jb4g9i6pkhdwmkxyz",
      "proxy_password": "stat789",
      "customer": "clientabc",
      "proxies": [
        "192.168.1.1:3128:sub_2abcd4jb4g9i6pkhdwmkxyz:stat789"
      ]
    }
  ]
}

Response Fields

response
string
Status of the request.
customer_id
string
The customer ID that was searched.
total_orders
integer
Total number of orders found for this customer.
orders
array
Array of order objects with proxy details.

Order Object Fields

FieldTypeDescription
order_idstringUnique order identifier
subscription_idstringStripe subscription ID
product_typestringProduct type identifier
product_namestringHuman-readable product name
quantityintegerNumber of proxies
unix_purchase_dateintegerPurchase timestamp
unix_expiration_dateintegerExpiration timestamp
proxy_usernamestringProxy authentication username
proxy_passwordstringProxy authentication password
customerstringCustomer identifier
proxiesarrayList of proxy strings

Error Responses

400 Bad Request - Invalid Customer ID

{
  "error": "Invalid customer ID format. Only lowercase letters are allowed"
}

404 Not Found - No Orders

{
  "response": "success",
  "message": "No orders found for this customer ID",
  "orders": []
}

Use Case

The customer ID feature is useful for:
  • Resellers: Track orders for specific clients
  • Enterprises: Organize proxies by department or project
  • Automation: Programmatically manage proxies per customer
When creating orders via the API, you can specify a customer parameter to tag orders for later retrieval using this endpoint.

Example Workflow

# 1. Create an order with customer ID
curl -X POST "https://dashboard.statproxies.com/api/v2/order/newscale" \
  -H "Authorization: Bearer {your_api_key}" \
  -H "Content-Type: application/json" \
  -d '{"quantity": 10, "product_type": "captcha", "customer": "projectalpha"}'

# 2. Later, retrieve all orders for that customer
curl -X GET "https://dashboard.statproxies.com/api/v2/order/fetch/customer/projectalpha" \
  -H "Authorization: Bearer {your_api_key}"