Add-ons
Optional paid extras that can be attached to a service.
Base URL: https://fineproxy.org/account_new ·Download the OpenAPI 3.1 specification
List Available Addons
GET/api/v1/billing/services/{service_id}/addons/available
List addons purchasable for the given service (catalog view).
Returns available addon types with prices and the caller's wallet balance. Already-active addons for this service are excluded from the list.
Required scope: Any valid API key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) |
Example request
curl -X GET "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/addons/available" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"Responses
200Successful Response422Validation Error
Response fields (3)
| Name | Type | Description |
|---|---|---|
service_idrequired | string (uuid) | |
addonsrequired | array<AddonCatalogItem> | |
wallet_balance_centsrequired | integer |
List Active Addons
GET/api/v1/billing/services/{service_id}/addons
List active addons attached to the given service.
Returns only ACTIVE addons. Cancelled / suspended addons are excluded. Shows the type, status, price at purchase, params, and activation date.: only the service owner can call this endpoint.
Required scope: Any valid API key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) |
Example request
curl -X GET "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/addons" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"Responses
200Successful Response422Validation Error
Response fields (2)
| Name | Type | Description |
|---|---|---|
service_idrequired | string (uuid) | |
addonsrequired | array<ActiveAddonItem> |
Purchase Addon
POST/api/v1/billing/services/{service_id}/addons
Purchase an addon for a service.
Money path (audit checklist): -: price in integer cents, no floats. -: ledger entry created (append-only debit). -: idempotency_key in request body; UNIQUE constraint on service_addon. Repeat calls with the same key return the existing addon without double-charging. - Fail-closed: insufficient funds → HTTP 402 (no partial state). - Exact price guard: expected_price_cents must equal the server-resolved TOTAL before charge; mismatch / missing → HTTP 409, no mutations. - Catalog price is resolved server-side; callers confirm the displayed total but cannot inject a lower charge amount.
Required scope: Any valid API key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) |
Request body
| Name | Type | Description |
|---|---|---|
addon_typerequired | string | |
idempotency_keyrequired | string | |
paramsoptional | object (map) | null | |
expected_price_centsoptional | integer | null | Exact price guard: TOTAL charge for this addon+quantity in integer cents. Optional in schema for rolling-deploy compatibility with cached FE (missing → 409 PRICE_CONFIRMATION_REQUIRED, no charge); new cabinet/MCP always send the displayed total. |
Example request
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": "string",
"idempotency_key": "string"
}'Responses
201Successful Response422Validation Error
Response fields (7)
| Name | Type | Description |
|---|---|---|
addon_idrequired | string (uuid) | |
service_idrequired | string (uuid) | |
addon_typerequired | string | |
statusrequired | string | |
price_centsrequired | integer | |
nominal_price_centsoptional | integer | Default: 0 |
created_atrequired | string (date-time) |
Disable Addon
DELETE/api/v1/billing/services/{service_id}/addons/{addon_id}
Disable (cancel) an active addon on the given service.
Idempotent: calling on an already-disabled addon returns success.: only the service owner can call this endpoint.
Money path: may issue a prorated wallet credit (refund) — still scope-gated (API-KEY-SCOPE-GAP-2). Fail-closed refund semantics →.
Required scope: Any valid API key
Parameters
| Name | In | Type | Description |
|---|---|---|---|
service_idrequired | path | string (uuid) | |
addon_idrequired | path | string (uuid) |
Example request
curl -X DELETE "https://fineproxy.org/account_new/api/v1/billing/services/$SERVICE_ID/addons/$ADDON_ID" \
-H "Authorization: Bearer $FINEPROXY_API_KEY"Responses
200Successful Response422Validation Error
Response fields (6)
| Name | Type | Description |
|---|---|---|
addon_idrequired | string (uuid) | |
service_idrequired | string (uuid) | |
addon_typerequired | string | |
statusrequired | string | |
messagerequired | string | |
refund_centsoptional | integer | Prorated refund credited to the wallet for the unused portion of the current billing period (0 when nothing was refunded). Default: 0 |