NEW! |One API call, clean data back. No scrapers needed.Get 10,000 Free Tokens →

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

NameInTypeDescription
service_id
required
pathstring (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

  • 200 Successful Response
  • 422 Validation Error
Response fields (3)
NameTypeDescription
service_id
required
string (uuid)
addons
required
array<AddonCatalogItem>
wallet_balance_cents
required
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

NameInTypeDescription
service_id
required
pathstring (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

  • 200 Successful Response
  • 422 Validation Error
Response fields (2)
NameTypeDescription
service_id
required
string (uuid)
addons
required
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

NameInTypeDescription
service_id
required
pathstring (uuid)

Request body

NameTypeDescription
addon_type
required
string
idempotency_key
required
string
params
optional
object (map) | null
expected_price_cents
optional
integer | nullExact 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

  • 201 Successful Response
  • 422 Validation Error
Response fields (7)
NameTypeDescription
addon_id
required
string (uuid)
service_id
required
string (uuid)
addon_type
required
string
status
required
string
price_cents
required
integer
nominal_price_cents
optional
integer
Default: 0
created_at
required
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

NameInTypeDescription
service_id
required
pathstring (uuid)
addon_id
required
pathstring (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

  • 200 Successful Response
  • 422 Validation Error
Response fields (6)
NameTypeDescription
addon_id
required
string (uuid)
service_id
required
string (uuid)
addon_type
required
string
status
required
string
message
required
string
refund_cents
optional
integerProrated refund credited to the wallet for the unused portion of the current billing period (0 when nothing was refunded).
Default: 0