Skip to main content
The Center's Directory
API documentation · Static residential proxies

Get a static proxy quote

Calculate purchase or renewal quotes, without freezing balances and inventory.

Maintained by the ZZHTTP engineering teamUpdated October 7, 2026

Interfaces and authentication

POST/openapi/v1/static/quotes

Get a quote for the account associated with the current token. Funds and inventory are not reserved.

Use HTTPS and an account API token. Responses include Cache-Control: no-store and X-Request-Id.

Examples are synthesis data and placement credentials, which only describe structure. The interface contract does not mean that the target environment is open, and the open status is determined by the console.

Download OpenAPI · Import Apifox / Postman

Request parameters

Query and path parameters
FieldTypeRequired fieldDefault values / LimitsNotes
api_keystringYes, I am.Query · One nonempty valueAccount API token. Keep it on a trusted server. Examples use placeholders.

purchase · application/json

purchase
FieldTypeRequired fieldDefault values / LimitsNotes
kindstringYes, I am.Fixed purchaseRequest or order type. purchase means purchase and renew means renewal. Orders may include other supported operation types.
itemsobject[]Yes, I am.Min items 1; Max items 100Array of results or submitted items. See the nested fields for details.
items[].offerIdintegerYes, I am.Minimum 1; Format int64ID of a purchasable offer returned by the offer list.
items[].quantityintegerYes, I am.Minimum 1; Maximum 1000Number of IPs to purchase for this offer, from 1 to 1000, subject to available stock and provider capabilities.
items[].durationDaysintegerNo.Default 30; Minimum 30; Maximum 360Purchase duration in days. Defaults to 30 when omitted. Must be a multiple of 30 between 30 and 360 and comply with the offer's capabilities.purchase rules.

renew · application/json

renew
FieldTypeRequired fieldDefault values / LimitsNotes
kindstringYes, I am.Fixed renewRequest or order type. purchase means purchase and renew means renewal. Orders may include other supported operation types.
instanceIdsinteger[]Yes, I am.Min items 1; Max items 100Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected.
durationDaysintegerYes, I am.Minimum 1; Maximum 3650Duration in days. Must comply with the applicable offer or instance capabilities.

Example of a request

Shell · STATIC_API_KEY Use account tokens
curl --request POST \
  "https://api.zzhttp.com/openapi/v1/static/quotes?api_key=${STATIC_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{"kind":"purchase","items":[{"offerId":17,"quantity":1,"durationDays":30}]}'

Successful response

Success

Responses omit proxy passwords. Use the credentials endpoint to retrieve them.

Response fields (including nested fields)
FieldTypeRequired fieldDefault values / LimitsNotes
codeintegerYes, I am.Fixed 200Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery.
messagestringYes, I am.—Server response message.
requestIdstringYes, I am.—Request ID for troubleshooting. This is separate from the business idempotency key.
dataobjectYes, I am.—Response data for this endpoint.
data.kindstringYes, I am.Allowed purchase / renewRequest or order type. purchase means purchase and renew means renewal. Orders may include other supported operation types.
data.currencystringYes, I am.Fixed CNYCurrency code. The current API contract uses CNY.
data.itemsobject[]Yes, I am.—Quote line items. Purchase lines contain offerId, while renewal lines contain instanceId.
data.items[].offerIdintegerNo.Minimum 1; Format int64ID of a purchasable offer returned by the offer list.
data.items[].instanceIdintegerNo.Minimum 1; Format int64ID of an instance belonging to the current account. Group membership is attached to this ID.
data.items[].quantityintegerNo.Minimum 0; Format int64Number of IPs to purchase for this offer, from 1 to 1000, subject to available stock and provider capabilities.
data.items[].durationDaysintegerNo.Minimum 0; Format int64Duration in days. Must comply with the applicable offer or instance capabilities.
data.items[].unitPriceCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.items[].amountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.items[].pricingSourcestringNo.—Price source. customer means customer-specific pricing and retail means standard retail pricing.
data.totalAmountCentsintegerYes, I am.Minimum 0; Format int64Amount in integer CNY cents.
data.quotedAtstring | nullYes, I am.Format date-timeQuote time in RFC3339 format.
data.inventoryReservedbooleanYes, I am.Fixed falseWhether the quote reserves inventory. Always false.
JSON · HTTP 200
{
  "code": 200,
  "message": "Success",
  "requestId": "00000000-0000-4000-8000-000000000001",
  "data": {
    "kind": "purchase",
    "currency": "CNY",
    "items": [
      {
        "offerId": 17,
        "instanceId": 101,
        "quantity": 1,
        "durationDays": 30,
        "unitPriceCents": 3500,
        "amountCents": 3500,
        "pricingSource": "retail"
      }
    ],
    "totalAmountCents": 3500,
    "quotedAt": "2026-10-06T08:00:00Z",
    "inventoryReserved": false
  }
}

Errors and Retry

For read requests that return business code 10713, wait as directed by Retry-After. Limit retries on HTTP 500. If group creation has an unknown outcome, query the group list first. Moving instances to the same destination can be retried safely.

Error code, HTTP status, error response field and recovery method are unified inError Codes and Recommendations.

Did this answer your question?

Feedback is used only to improve the public documentation and does not submit accounts or request information.