# Datacenter & ISP Proxies

Operations for datacenter and ISP proxies

## GET /user/api/proxies/active

> Get active proxies by order

```json
{"openapi":"3.0.3","info":{"title":"ProxyShard User API Billing","version":"1.0.0"},"tags":[{"name":"Datacenter & ISP Proxies","description":"Operations for datacenter and ISP proxies"}],"servers":[{"url":"https://user-api.proxyshard.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"ActiveProxyItem":{"type":"object","properties":{"ip":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"http_port":{"type":"integer"},"socks_port":{"type":"integer"},"until":{"type":"string","description":"ISO8601/string date"},"status":{"type":"string"}},"required":["ip","username","password","http_port","socks_port","until","status"]},"ApiError":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]}}},"paths":{"/user/api/proxies/active":{"get":{"tags":["Datacenter & ISP Proxies"],"summary":"Get active proxies by order","parameters":[{"in":"query","name":"order_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Proxy list","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ActiveProxyItem"}},"order_tag":{"type":"string","nullable":true}},"required":["success","data"]}}}},"403":{"description":"Method is unavailable for this order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}
```

## Set del-np (per-IP deletion)

> Only for Datacenter & ISP proxies.\
> After updating, the order \`quantity\` and \`price\_paid\` are recalculated.<br>

```json
{"openapi":"3.0.3","info":{"title":"ProxyShard User API Billing","version":"1.0.0"},"tags":[{"name":"Datacenter & ISP Proxies","description":"Operations for datacenter and ISP proxies"}],"servers":[{"url":"https://user-api.proxyshard.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"ApiError":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]}}},"paths":{"/user/api/orders/{order_id}/del-np/set":{"post":{"tags":["Datacenter & ISP Proxies"],"summary":"Set del-np (per-IP deletion)","description":"Only for Datacenter & ISP proxies.\nAfter updating, the order `quantity` and `price_paid` are recalculated.\n","parameters":[{"in":"path","name":"order_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"value":{"type":"boolean"}},"required":["ip","value"]}}},"required":["items"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}}}}},"400":{"description":"Validation error / not DC-ISP / keep=0","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}
```

## Set IP signature

> Only for Datacenter & ISP proxies.<br>

```json
{"openapi":"3.0.3","info":{"title":"ProxyShard User API Billing","version":"1.0.0"},"tags":[{"name":"Datacenter & ISP Proxies","description":"Operations for datacenter and ISP proxies"}],"servers":[{"url":"https://user-api.proxyshard.com"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"ApiError":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"]}}},"paths":{"/user/api/orders/{order_id}/signature/set":{"post":{"tags":["Datacenter & ISP Proxies"],"summary":"Set IP signature","description":"Only for Datacenter & ISP proxies.\n","parameters":[{"in":"path","name":"order_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"signature":{"type":"string"}},"required":["ip","signature"]}}},"required":["items"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"updated":{"type":"integer"}}}}}},"400":{"description":"Validation error / not DC-ISP","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}
```
