# Manage proxy services

List and inspect services, renew them, control auto-renewal, add or refresh IPs, buy and disable add-ons, cancel services and read usage — with the money rules for each operation.

- Canonical: https://fineproxy.org/developers/docs/guides/manage-services/

After a purchase, everything happens on a **service** — one subscription identified by a UUID. This guide covers the operations you run on an existing service and what each one costs. Paid operations debit your wallet in integer cents and accept an idempotency key, so retries never charge twice.

Read operations need `services:read`; changes need `services:write`; operations that cost money also need `wallet:spend`. Examples use `SERVICE_ID` as a placeholder:

```bash
export SERVICE_ID="00000000-0000-0000-0000-000000000000"
```

## List and inspect services

`GET /api/v1/customer/services` returns your services, paginated with `offset` and `limit` (1–100, default 50). `GET /api/v1/customer/services/{service_id}` returns one.

```bash
curl "https://fineproxy.org/account_new/api/v1/customer/services?limit=50" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY"
```

```javascript
const response = await fetch('https://fineproxy.org/account_new/api/v1/customer/services?limit=50', {
  headers: { Authorization: `Bearer ${process.env.FINEPROXY_API_KEY}` },
});
const { services, total } = await response.json();
const active = services.filter((s) => s.status === 'active');
console.log(`${active.length} active of ${total}`);
```

```python
import os
import requests

response = requests.get(
    "https://fineproxy.org/account_new/api/v1/customer/services",
    params={"limit": 50},
    headers={"Authorization": f"Bearer {os.environ['FINEPROXY_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
for service in response.json()["services"]:
    print(service["id"], service["status"], service["expires_at"])
```

A service (shortened; `params` holds product-specific details such as `segments`, `geo_filter` and `whitelist_ips`):

```json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "product_kind": "proxy_datacenter",
  "display_name": "Datacenter Proxy DE 100 IPs",
  "status": "active",
  "started_at": "2026-11-27T10:00:36.733119Z",
  "expires_at": "2026-12-27T10:00:36.733119Z",
  "grace_until": null,
  "cancelled_at": null,
  "is_trial": false,
  "is_auto_renew": true,
  "price_cents": 1200,
  "price_unit": "period",
  "renewal_price_cents": 1200,
  "renewal_coverage": "covered_by_balance",
  "renew_allowed": true,
  "suspend_reason": null,
  "active_addon_types": []
}
```

| Field | Meaning |
| --- | --- |
| `status` | `active` or `cancelled` in practice; a new order can briefly be `pending`. Always check it — cancelled services stay in the list. |
| `product_kind` | `proxy_datacenter`, `proxy_isp`, `proxy_rotating`, … — decides which endpoints apply. |
| `expires_at` | End of the paid period (ISO 8601, UTC). |
| `is_auto_renew` | Whether the service renews from the wallet at `expires_at`. |
| `price_cents` | Price of one period, as purchased. Manual renewal charges this amount. |
| `renewal_price_cents` | Next automatic renewal price; grows when you add IPs. `null` when not applicable. |
| `renewal_coverage` | Whether the wallet covers the next renewal: seen as `covered_by_balance` or `not_applicable`. |
| `renew_allowed` | Whether a manual renewal is currently allowed. |
| `suspend_reason` | Why a service is suspended, for example `quota_exhausted` for a rotating plan. |
| `active_addon_types` | Add-ons currently enabled. |

References: [List services](/developers/docs/api/services/#get-list-services), [Get service](/developers/docs/api/services/#get-get-service). MCP: [`list_services`](/developers/docs/mcp/tools/#list_services), [`get_service`](/developers/docs/mcp/tools/#get_service).

## Renew a service

`POST /api/v1/customer/services/{service_id}/renew` extends the service and charges the wallet the price the service was purchased at.

```bash
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/renew" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"period_count": 1, "idempotency_key": "renew-2026-11-27-001"}'
```

Renewing a 100-IP datacenter service for one period charged `1200` cents and moved `expires_at` one month forward:

```json
{
  "service_id": "00000000-0000-0000-0000-000000000000",
  "status": "active",
  "message": "Service renewed for 1 period(s).",
  "refund_cents": null,
  "new_expires_at": "2027-01-26T10:00:36.733119Z",
  "charged_cents": 1200,
  "funding_source": null,
  "refund_base_cents": null
}
```

| Body field | Notes |
| --- | --- |
| `period_count` | 1–12 periods at the current one-period price. Default 1. |
| `period_months` | 1, 3, 6 or 12. Overrides `period_count` and applies the period-discount grid. |
| `idempotency_key` | Retries with the same key never double-charge. Also accepted as an `Idempotency-Key` header. |

> **Note:** A rotating plan suspended with `suspend_reason: "quota_exhausted"` is restored by a quota top-up in the dashboard or the next monthly grant, not by renewal. Renewal returns `409` for it, except within 7 days of `expires_at`, and then it only extends the period.

Reference: [Renew service](/developers/docs/api/services/#post-renew-service). MCP: [`renew_service`](/developers/docs/mcp/tools/#renew_service).

## Auto-renew

With auto-renew on, the service is charged automatically each period. Turn it off to let the service expire at the end of the paid period without a refund. There is no REST endpoint for this; use the MCP tool [`set_auto_renew`](/developers/docs/mcp/tools/#set_auto_renew) and read the result back from `is_auto_renew` on the service.

```bash
curl -X POST https://fineproxy.org/account_new/api/v1/mcp \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_auto_renew","arguments":{"service_id":"00000000-0000-0000-0000-000000000000","enabled":false}}}'
```

To stop paying without losing time you already paid for, turn auto-renew off instead of cancelling.

## Add IPs

You can grow an active datacenter or ISP service. Quote first — the quote shows both the charge now and the new renewal price.

```bash
curl -X POST "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/add-ips/quote" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"segments": [{"country": "DE", "count": 100}]}'
```

Quote for +100 German IPs on a service with 30 days left:

```json
{
  "service_id": "00000000-0000-0000-0000-000000000000",
  "segments": [
    { "country": 197153, "country_code": "DE", "count": 100, "unit_base_cents": 12, "segment_price_cents": 1200, "available": true }
  ],
  "errors": [],
  "added_ip_count": 100,
  "monthly_price_added_cents": 1200,
  "days_remaining": 30,
  "days_per_month": 30,
  "prorated_charge_cents": 1200,
  "current_price_cents": 1200,
  "new_renewal_price_cents": 2400
}
```

- `prorated_charge_cents` is charged now for the rest of the current period (`monthly_price_added_cents` × `days_remaining` / `days_per_month`). With 30 of 30 days left, that is the full monthly price.
- `new_renewal_price_cents` is what every later renewal costs: here it doubles from 1200 to 2400.
- The 100-IP minimum applies to top-ups as well: +10 IPs returns `422` with the same "below the tenant minimum of 100 IPs" message.

Then buy with `POST /api/v1/billing/services/{service_id}/add-ips`, sending the same segments, a fresh `idempotency_key` (required) and the quoted amount in `expected_charge_cents`. For composite services the server checks `expected_charge_cents` against a fresh quote when you send it.

```bash
curl -X POST "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/add-ips" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"segments": [{"country": "DE", "count": 100}], "idempotency_key": "add-ips-2026-11-27-001", "expected_charge_cents": 1200}'
```

The response reports `added_ip_count`, `charged_cents`, `ledger_entry_id`, `new_total_ip` and `new_price_cents` (the new renewal price).

References: [Add IPs quote](/developers/docs/api/orders/#post-get-add-ips-quote), [Add IPs](/developers/docs/api/orders/#post-add-ips). MCP: [`add_ips`](/developers/docs/mcp/tools/#add_ips).

## Refresh (replace) IPs

A refresh swaps the addresses of a service for new ones; the number of IPs stays the same. The flow has three steps.

**1. Is the next refresh free?**

```bash
curl "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/proxy/refresh-status" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY"
```

```json
{
  "service_id": "00000000-0000-0000-0000-000000000000",
  "is_free": true,
  "free_window_days": 8,
  "days_since_start": 0,
  "price_cents": 0,
  "is_pool_service": true,
  "dedicated": false
}
```

The first refresh of a service is free. After it, the status switched to `is_free: false`, `price_cents: 1000` ($10.00 per refresh, however many IPs are replaced) and `next_free_refresh_at` showed when the next free refresh becomes available.

**2. Preview it.** `POST .../proxy/refresh/quote` is read-only. Choose one of two shapes:

- `geo_counts` — the countries of the new IPs, `{"DE": 100}`. The sum must equal the number of IPs being replaced (the whole allocation, or the IPs listed in `target_ips`). It is required unless you use `partial`.
- `partial: true` — the server replaces as many IPs as the pool has per country and keeps the rest. It cannot be combined with `geo_counts` or `target_ips` and works for shared-pool services only.

```bash
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/proxy/refresh/quote" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"partial": true}'
```

```json
{
  "service_id": "00000000-0000-0000-0000-000000000000",
  "geo_source": "maxmind",
  "replaced_count": 100,
  "price_cents": 0,
  "is_free": true,
  "availability": { "DE": { "requested": 100, "available": 1364, "held": 100 } },
  "shortfall": false,
  "partial": true,
  "kept_count": 0,
  "planned_geo_counts": {}
}
```

`shortfall: true` means a country lacks free addresses and the refresh would be refused. A quote whose `geo_counts` total does not match returns:

```json
{
  "detail": {
    "error": "GEO_COUNTS_MISMATCH",
    "requested": 1,
    "replaced": 100,
    "message": "geo_counts total (1) must equal the number of IPs being replaced (100)."
  }
}
```

That is `422`. Sending `target_ips` alone, without `geo_counts`, returns `400 {"detail":"geo_counts must contain at least one country."}`; add `"geo_counts": {"DE": 1}` for one German IP.

**3. Refresh.** `POST .../proxy/refresh` with a new `idempotency_key` (required). Omit `target_ips` to replace the whole allocation, list addresses in `target_ips` to replace only those, or send `partial: true`.

```bash
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/proxy/refresh" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"partial": true, "idempotency_key": "refresh-2026-11-27-001"}'
```

The response lists the new addresses right away. In testing the refresh completed in about 2 seconds; re-read `GET .../proxy/ips` afterwards and update your clients.

```json
{
  "service_id": "00000000-0000-0000-0000-000000000000",
  "ip_count": 100,
  "charged_cents": 0,
  "ledger_entry_id": null,
  "new_ips": ["203.0.113.20", "203.0.113.21"],
  "alive_replaced": 0,
  "kept_count": 0,
  "partial": true
}
```

> **Warning:** The REST refresh endpoint has no `geo_counts` field and ignores unknown fields. Sending `geo_counts` there does not pick a geography — it performs (and charges for) a plain refresh. The MCP tool [`refresh_ips`](/developers/docs/mcp/tools/#refresh_ips) does accept `geo_counts`, plus `expected_amount_cents` as a price guard.

Errors: `402 insufficient_funds` (nothing charged), `409 no_available_ips` (with `partial`, nothing available; the free slot is kept), `409` on an idempotency-key conflict.

References: [Refresh status](/developers/docs/api/proxy-access/#get-get-refresh-status), [Refresh quote](/developers/docs/api/proxy-access/#post-preview-an-ip-refresh-price-and-free-stock), [Refresh](/developers/docs/api/proxy-access/#post-refresh-the-ip-addresses-of-a-service). MCP: [`get_refresh_status`](/developers/docs/mcp/tools/#get_refresh_status), [`quote_refresh`](/developers/docs/mcp/tools/#quote_refresh), [`refresh_ips`](/developers/docs/mcp/tools/#refresh_ips).

## Add-ons

Add-ons extend a service. List what you can buy:

```bash
curl "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/addons/available" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY"
```

| `addon_type` | Price (`price_cents`) | `params` |
| --- | --- | --- |
| `udp_unlock` | 600 | none |
| `extra_whitelist_ip` | 100 per IP | `{"ip_count": 1..10000}` |
| `extra_connections` | 3 per connection | `{"conn_count": 1..10000}` |

The response also carries `params_schema` per add-on and your `wallet_balance_cents`. Already-active add-ons are not listed.

Purchase with `POST .../addons`. `expected_price_cents` must equal the **total** — unit price × quantity — or the request is rejected with `409` and nothing is charged:

```bash
curl -X POST "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/addons" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"addon_type": "extra_connections", "params": {"conn_count": 1}, "expected_price_cents": 3, "idempotency_key": "addon-2026-11-27-001"}'
```

The `201` response returns `addon_id`, `addon_type`, `status`, `price_cents` and `created_at`. Without the required parameter you get `400 {"detail":"conn_count is required for extra_connections (integer 1..10000)."}`; with too little money, `402`.

List active add-ons with `GET .../addons`. Disable one with `DELETE .../addons/{addon_id}`; the unused part of the period is refunded:

```bash
curl -X DELETE "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/addons/$ADDON_ID?confirm=true" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY"
```

The response includes `refund_cents` — the exact amount credited back. Disabling an `extra_connections` add-on bought for 3 cents on the same day refunded 3 cents.

References: [Available add-ons](/developers/docs/api/addons/#get-list-available-addons), [Purchase](/developers/docs/api/addons/#post-purchase-addon), [Active add-ons](/developers/docs/api/addons/#get-list-active-addons), [Disable](/developers/docs/api/addons/#delete-disable-addon). MCP: [`list_available_addons`](/developers/docs/mcp/tools/#list_available_addons), [`purchase_addon`](/developers/docs/mcp/tools/#purchase_addon), [`list_active_addons`](/developers/docs/mcp/tools/#list_active_addons), [`disable_addon`](/developers/docs/mcp/tools/#disable_addon) (requires `confirm: true`).

## Cancel a service

`POST /api/v1/customer/services/{service_id}/cancel` terminates a service immediately. It is irreversible and requires `{"confirm": true}`.

```bash
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/cancel" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'
```

```json
{
  "service_id": "00000000-0000-0000-0000-000000000000",
  "status": "cancelled",
  "message": "Service cancelled. Rotating refund: 3500 cents.",
  "refund_cents": 3500,
  "new_expires_at": null,
  "charged_cents": null,
  "funding_source": "wallet",
  "refund_base_cents": 3500
}
```

- **Refund.** Unused paid time is refunded to the wallet pro rata at the undiscounted daily rate, so period discounts are lost on early cancellation. `refund_cents` is the exact amount credited. A rotating plan cancelled minutes after purchase, unused, was refunded in full (3500 cents).
- **Cooldown.** Self-service cancellation is limited to once every 3 days per account. A second cancel within that window returns `409` with `SERVICE_CANCEL_COOLDOWN` and a `retry_at` time; open a [support ticket](/developers/docs/guides/support-tickets/) if you cannot wait.

```json
{
  "error": "SERVICE_CANCEL_COOLDOWN",
  "retry_at": "2026-11-30T10:04:48.359196Z"
}
```

Over MCP, [`cancel_service`](/developers/docs/mcp/tools/#cancel_service) returns the same condition as `isError: true` with the text `SERVICE_CANCEL_COOLDOWN: self-service cancellation is limited to once every 3 days. … retry_at=… retry_after_seconds=…`.

> **Important:** If you only want to stop future charges, turn off [auto-renew](#auto-renew) instead. Cancelling ends access immediately.

Reference: [Cancel service](/developers/docs/api/services/#post-cancel-service).

## Read usage

`GET /api/v1/customer/services/{service_id}/usage` returns connection and traffic totals for a time window. `start` and `end` (ISO 8601) are required; the key needs `usage:read`.

```bash
curl -G "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/usage" \
  -H "Authorization: Bearer $FINEPROXY_API_KEY" \
  --data-urlencode "start=2026-11-01T00:00:00Z" \
  --data-urlencode "end=2026-11-27T23:59:59Z"
```

```json
{
  "connections": 0,
  "bytes_used": 0,
  "window": { "start": "2026-11-01T00:00:00Z", "end": "2026-11-27T23:59:59Z" }
}
```

For success rates, latency, top destinations and error breakdowns, the MCP server has analytics tools without a REST counterpart: [`get_usage_overview`](/developers/docs/mcp/tools/#get_usage_overview), [`get_usage_timeseries`](/developers/docs/mcp/tools/#get_usage_timeseries), [`get_top_destinations`](/developers/docs/mcp/tools/#get_top_destinations), [`get_diagnostics`](/developers/docs/mcp/tools/#get_diagnostics) and [`get_recommendations`](/developers/docs/mcp/tools/#get_recommendations).

Reference: [Get service usage](/developers/docs/api/services/#get-get-service-usage). MCP: [`get_usage`](/developers/docs/mcp/tools/#get_usage).

## Common pitfalls

- **Acting on cancelled services.** Cancelled services remain in the list and some proxy endpoints still answer for them. Filter on `status`.
- **Expecting a refresh to add IPs.** A refresh keeps the count; use add IPs to grow.
- **Paying for a second refresh by accident.** Check `refresh-status` first — after the free one, each refresh costs `price_cents` until `next_free_refresh_at`.
- **Cancelling twice in a row.** The 3-day cooldown is per account, not per service.
