Services
List the services you own, read their status, renew or cancel them, and read usage.
Base URL: https://fineproxy.org/account_new ·Download the OpenAPI 3.1 specification
List Services
GET/api/v1/customer/services
List your services (paginated).
Required scope: services:read
Parameters
| Name | In | Type | Description |
|---|---|---|---|
offsetoptional | query | integer | Default: 0 |
limitoptional | query | integer | Default: 50 |
Example request
curl -X GET "https://fineproxy.org/account_new/api/v1/customer/services" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"Responses
200Successful Response422Validation Error
Response fields (4)
| Name | Type | Description |
|---|---|---|
servicesrequired | array<ServiceResponse> | |
totalrequired | integer | |
offsetoptional | integer | Default: 0 |
limitoptional | integer | Default: 50 |
Get Service
GET/api/v1/customer/services/{service_id}
Get details of one of your services.
Required scope: services:read
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) |
Example request
curl -X GET "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"Responses
200Successful Response422Validation Error
Response fields (37)
| Name | Type | Description |
|---|---|---|
idrequired | string (uuid) | |
owner_typerequired | string | |
owner_idrequired | string (uuid) | |
tenant_idoptional | string (uuid) | null | |
product_idrequired | string (uuid) | |
product_nameoptional | string | Default: "" |
product_kindoptional | string | Default: "" |
product_display_nameoptional | string | Default: "" |
display_nameoptional | string | null | |
owner_emailoptional | string | null | |
statusrequired | string | |
provisionerrequired | string | |
ext_dealer_idrequired | string | null | |
ext_service_idrequired | string | null | |
paramsrequired | object (map) | null | |
started_atrequired | string (date-time) | null | |
expires_atrequired | string (date-time) | null | |
grace_untiloptional | string (date-time) | null | |
cancelled_atrequired | string (date-time) | null | |
usage_requests_currequired | integer | null | |
usage_bytes_currequired | integer | null | |
is_trialoptional | boolean | Default: false |
is_auto_renewrequired | boolean | |
is_staff_testoptional | boolean | Default: false |
is_staff_conv_testoptional | boolean | Default: false |
customer_noteoptional | string | null | |
created_atrequired | string (date-time) | |
price_centsoptional | integer | null | |
price_unitoptional | string | null | |
active_addon_typesoptional | array<string> | |
billing_authorityoptional | string | null | Owning customer's billing authority ('finebilling' | 'whmcs'), read-only. WHMCS mirrors must not expose money actions in the cabinet (VER-WHM-1). None when not resolved (e.g. some admin paths). |
renewal_price_centsoptional | integer | null | Forecast charge at the next auto-renewal (base price + active add-ons), same resolution as the real renewal charge. None when not applicable (see renewal_coverage). |
renewal_coverageoptional | string | Renewal-coverage forecast, one of: 'covered_by_balance' (wallet balance already covers it), 'covered_by_card' (balance is short but renewal-aware auto top-up will charge the saved card before the due date), 'not_covered' (balance is short and nothing will auto-fix it), 'not_applicable' (not an active auto-renew period service, or the customer owner / price could not be resolved). Default: "not_applicable" |
suspend_reasonoptional | string | null | (additive): why a SUSPENDED service is suspended — 'quota_exhausted' | 'expired' | 'other'. None when not suspended. The cabinet picks the CTA from it. |
next_quota_grant_atoptional | string (date-time) | null | (additive): next monthly base-quota grant (00:00Z on the 1st) when it falls inside the paid period; None otherwise (e.g. the period must be renewed first). |
renew_allowedoptional | boolean | null | (additive): False for a quota-suspended service outside the last 7 days before expires_at — the cabinet hides Extend. None when the field was not resolved by the call site. |
access_enabledoptional | boolean | null | : computed access flag (admin-only). Same predicate as admission_service_eligible_clause; None when not resolved (non-admin call sites). |
Renew Service
POST/api/v1/customer/services/{service_id}/renew
Renew a subscription service, paying from your wallet balance.
The renewal price is the price the service was purchased at.
Required scope: services:write
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) |
Request body
| Name | Type | Description |
|---|---|---|
period_countoptional | integer | Default: 1 |
period_monthsoptional | integer | null | Preferred renewal term in months (1/3/6/12). When set, overrides period_count and applies the period-discount grid. |
idempotency_keyoptional | string | null | Caller-supplied idempotency key. Retries with the same key never double-charge. Also accepted via Idempotency-Key header. When omitted, a deprecated server key from (service, expires_at) is used. |
Example request
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,
"period_months": 1,
"idempotency_key": "string"
}'Responses
200Successful Response422Validation Error
Response fields (8)
| Name | Type | Description |
|---|---|---|
service_idrequired | string (uuid) | |
statusrequired | string | |
messagerequired | string | |
refund_centsoptional | integer | null | |
new_expires_atoptional | string (date-time) | null | |
charged_centsoptional | integer | null | |
funding_sourceoptional | string | null | |
refund_base_centsoptional | integer | null |
Cancel Service
POST/api/v1/customer/services/{service_id}/cancel
Cancel (terminate) a service. Idempotent.
Unused paid time may be refunded to your wallet on a pro-rata basis.
Required scope: services:write
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) |
Example request
curl -X POST "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/cancel" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"Responses
200Successful Response422Validation Error
Response fields (8)
| Name | Type | Description |
|---|---|---|
service_idrequired | string (uuid) | |
statusrequired | string | |
messagerequired | string | |
refund_centsoptional | integer | null | |
new_expires_atoptional | string (date-time) | null | |
charged_centsoptional | integer | null | |
funding_sourceoptional | string | null | |
refund_base_centsoptional | integer | null |
Get Service Usage
GET/api/v1/customer/services/{service_id}/usage
Get traffic/request usage statistics for a service over a time window.
Required scope: usage:read
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) | |
startrequired | query | string (date-time) | Start of the window (ISO 8601) |
endrequired | query | string (date-time) | End of the window (ISO 8601) |
Example request
curl -X GET "https://fineproxy.org/account_new/api/v1/customer/services/$SERVICE_ID/usage" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"Responses
200Successful Response422Validation Error
Response fields (3)
| Name | Type | Description |
|---|---|---|
connectionsoptional | integer | Default: 0 |
bytes_usedoptional | integer | Default: 0 |
windowrequired | ProxyUsageWindow |