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

Update static proxy credentials

Batch random or designated accounts, reading the results of execution item by item.

Maintained by the ZZHTTP engineering teamUpdated October 6, 2026

Interfaces and authentication

POST/openapi/v1/static/instances/update-credentials

Submit a batch credential update for the account associated with the current token.

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.

Random credentials · application/json

Random credentials
FieldTypeRequired fieldDefault values / LimitsNotes
clientOperationNostringYes, I am.Pattern ^[A-Za-z0-9_.-]{1,64}$Client operation number of 1–64 characters using letters, digits, underscores, periods, or hyphens. Reusing the number with different parameters returns HTTP 200 and business code 10705.
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.
randomizebooleanYes, I am.Fixed trueSet true to generate random credentials. When false, both username and password are required.

Custom credentials · application/json

Custom credentials
FieldTypeRequired fieldDefault values / LimitsNotes
clientOperationNostringYes, I am.Pattern ^[A-Za-z0-9_.-]{1,64}$Client operation number of 1–64 characters using letters, digits, underscores, periods, or hyphens. Reusing the number with different parameters returns HTTP 200 and business code 10705.
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.
randomizebooleanYes, I am.Fixed falseSet true to generate random credentials. When false, both username and password are required.
usernamestringYes, I am.—Proxy username for the instance.
passwordstringYes, I am.—Proxy password for the instance. Only the credentials endpoint returns it. Do not expose it in public storage or logs.

Example of a request

Shell · STATIC_API_KEY Use account tokens
curl --request POST \
  "https://api.zzhttp.com/openapi/v1/static/instances/update-credentials?api_key=${STATIC_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{"clientOperationNo":"platform-renew-001","instanceIds":[101],"randomize":true}'

Successful response

Synchronous credential update result. Check each item's status. If the result is unknown, query or retry using the original reference.

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.operationIdintegerYes, I am.Minimum 1; Format int64Platform operation ID.
data.clientOperationNostringYes, I am.—Client operation number of 1–64 characters using letters, digits, underscores, periods, or hyphens. Reusing the number with different parameters returns HTTP 200 and business code 10705.
data.typestringYes, I am.—Operation or event type.
data.statusstringYes, I am.Allowed accepted / processing / succeeded / partial / failed / manual_reviewCurrent status. See the enum values in the constraints and check each line for the final outcome.
data.totalAmountCentsintegerYes, I am.Minimum 0; Format int64Amount in integer CNY cents.
data.currencystringYes, I am.Fixed CNYCurrency code. The current API contract uses CNY.
data.settlementobjectYes, I am.—Settlement by order. The original wallet hold equals the current hold plus the amounts debited and released.
data.settlement.fundingSourcestringNo.Allowed wallet / external / noneFunding source. wallet means wallet funds, external means historical external payments, and none means unpaid or free.
data.settlement.externalobjectNo.—Settlement details for historical external payments. An amount due for refund does not confirm that a refund was issued.
data.settlement.external.paidAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.external.capturedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.external.unsettledAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.external.refundDueAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.external.refundedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.external.refundPendingAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.reservedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.frozenAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.capturedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.releasedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.giftobjectNo.—Amounts held, debited, and released from bonus credit.
data.settlement.gift.reservedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.gift.capturedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.gift.releasedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.rechargeobjectNo.—Amounts held, debited, and released from top-up credit.
data.settlement.recharge.reservedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.recharge.capturedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.settlement.recharge.releasedAmountCentsintegerNo.Minimum 0; Format int64Amount in integer CNY cents.
data.itemsobject[]Yes, I am.—Array of results or submitted items. See the nested fields for details.
data.items[].instanceIdintegerYes, I am.Minimum 1; Format int64ID of an instance belonging to the current account. Group membership is attached to this ID.
data.items[].statusstringYes, I am.Allowed accepted / processing / succeeded / partial / failed / manual_reviewCurrent status. See the enum values in the constraints and check each line for the final outcome.
data.items[].amountCentsintegerYes, I am.Minimum 0; Format int64Amount in integer CNY cents.
data.items[].frozenAmountCentsintegerYes, I am.Minimum 0; Format int64Amount in integer CNY cents.
data.items[].capturedAmountCentsintegerYes, I am.Minimum 0; Format int64Amount in integer CNY cents.
data.items[].releasedAmountCentsintegerYes, I am.Minimum 0; Format int64Amount in integer CNY cents.
data.items[].errorCodestringYes, I am.—Per-item reason code. OUT_OF_STOCK, SERVICE_UNAVAILABLE, RESULT_UNCONFIRMED, or FULFILLMENT_FAILED. Empty on success.
data.items[].completedAtstring | nullYes, I am.Format date-timeCompletion time in RFC3339 format. Null until complete.
data.items[].errorMessagestringNo.—Description of the failure.
data.items[].nextActionstringNo.Allowed / check_inventory / query_order / contact_supportSuggested next step. If the outcome is unknown, look up the original order.
data.createdAtstring | nullYes, I am.Format date-timeCreation time in RFC3339 format.
data.completedAtstring | nullYes, I am.Format date-timeCompletion time in RFC3339 format. Null until complete.
data.queryUrlstringYes, I am.—Relative path for polling. Include api_key for authentication.
data.orderNostringNo.—Associated chargeable order number. Omitted if no order was charged.
JSON · HTTP 200
{
  "code": 200,
  "message": "Success",
  "requestId": "00000000-0000-4000-8000-000000000001",
  "data": {
    "operationId": 301,
    "clientOperationNo": "platform-renew-001",
    "type": "renewal",
    "status": "succeeded",
    "totalAmountCents": 3500,
    "currency": "CNY",
    "settlement": {
      "fundingSource": "wallet",
      "reservedAmountCents": 3500,
      "frozenAmountCents": 0,
      "capturedAmountCents": 3500,
      "releasedAmountCents": 0,
      "gift": {
        "reservedAmountCents": 0,
        "capturedAmountCents": 0,
        "releasedAmountCents": 0
      },
      "recharge": {
        "reservedAmountCents": 3500,
        "capturedAmountCents": 3500,
        "releasedAmountCents": 0
      }
    },
    "items": [
      {
        "instanceId": 101,
        "status": "succeeded",
        "amountCents": 3500,
        "frozenAmountCents": 0,
        "capturedAmountCents": 3500,
        "releasedAmountCents": 0,
        "errorCode": "",
        "completedAt": "2026-10-06T08:00:00Z",
        "errorMessage": "",
        "nextAction": ""
      }
    ],
    "createdAt": "2026-10-06T08:00:00Z",
    "completedAt": "2026-10-06T08:00:00Z",
    "queryUrl": "/openapi/v1/static/operations/301",
    "orderNo": "STATIC-RENEW-DEMO-001"
  }
}

Errors and Retry

HTTP 200 with code 200 confirms acceptance. On a timeout or HTTP 500, look up the original clientOrderNo or clientOperationNo before retrying. Reusing a reference with different parameters returns HTTP 200 and business code 10705. Do not submit a new reference to retry the same transaction.

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.