Update static proxy credentials
Batch random or designated accounts, reading the results of execution item by item.
Interfaces and authentication
/openapi/v1/static/instances/update-credentialsSubmit 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 / PostmanRequest parameters
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
api_key | string | Yes, I am. | Query · One nonempty value | Account API token. Keep it on a trusted server. Examples use placeholders. |
Random credentials · application/json
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
clientOperationNo | string | Yes, 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. |
instanceIds | integer[] | Yes, I am. | Min items 1; Max items 100 | Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected. |
randomize | boolean | Yes, I am. | Fixed true | Set true to generate random credentials. When false, both username and password are required. |
Custom credentials · application/json
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
clientOperationNo | string | Yes, 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. |
instanceIds | integer[] | Yes, I am. | Min items 1; Max items 100 | Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected. |
randomize | boolean | Yes, I am. | Fixed false | Set true to generate random credentials. When false, both username and password are required. |
username | string | Yes, I am. | — | Proxy username for the instance. |
password | string | Yes, 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
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.
| Field | Type | Required field | Default values / Limits | Notes |
|---|---|---|---|---|
code | integer | Yes, I am. | Fixed 200 | Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery. |
message | string | Yes, I am. | — | Server response message. |
requestId | string | Yes, I am. | — | Request ID for troubleshooting. This is separate from the business idempotency key. |
data | object | Yes, I am. | — | Response data for this endpoint. |
data.operationId | integer | Yes, I am. | Minimum 1; Format int64 | Platform operation ID. |
data.clientOperationNo | string | Yes, 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.type | string | Yes, I am. | — | Operation or event type. |
data.status | string | Yes, I am. | Allowed accepted / processing / succeeded / partial / failed / manual_review | Current status. See the enum values in the constraints and check each line for the final outcome. |
data.totalAmountCents | integer | Yes, I am. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.currency | string | Yes, I am. | Fixed CNY | Currency code. The current API contract uses CNY. |
data.settlement | object | Yes, I am. | — | Settlement by order. The original wallet hold equals the current hold plus the amounts debited and released. |
data.settlement.fundingSource | string | No. | Allowed wallet / external / none | Funding source. wallet means wallet funds, external means historical external payments, and none means unpaid or free. |
data.settlement.external | object | No. | — | Settlement details for historical external payments. An amount due for refund does not confirm that a refund was issued. |
data.settlement.external.paidAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.external.capturedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.external.unsettledAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.external.refundDueAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.external.refundedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.external.refundPendingAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.reservedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.frozenAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.capturedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.releasedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.gift | object | No. | — | Amounts held, debited, and released from bonus credit. |
data.settlement.gift.reservedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.gift.capturedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.gift.releasedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.recharge | object | No. | — | Amounts held, debited, and released from top-up credit. |
data.settlement.recharge.reservedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.recharge.capturedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.settlement.recharge.releasedAmountCents | integer | No. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.items | object[] | Yes, I am. | — | Array of results or submitted items. See the nested fields for details. |
data.items[].instanceId | integer | Yes, I am. | Minimum 1; Format int64 | ID of an instance belonging to the current account. Group membership is attached to this ID. |
data.items[].status | string | Yes, I am. | Allowed accepted / processing / succeeded / partial / failed / manual_review | Current status. See the enum values in the constraints and check each line for the final outcome. |
data.items[].amountCents | integer | Yes, I am. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.items[].frozenAmountCents | integer | Yes, I am. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.items[].capturedAmountCents | integer | Yes, I am. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.items[].releasedAmountCents | integer | Yes, I am. | Minimum 0; Format int64 | Amount in integer CNY cents. |
data.items[].errorCode | string | Yes, I am. | — | Per-item reason code. OUT_OF_STOCK, SERVICE_UNAVAILABLE, RESULT_UNCONFIRMED, or FULFILLMENT_FAILED. Empty on success. |
data.items[].completedAt | string | null | Yes, I am. | Format date-time | Completion time in RFC3339 format. Null until complete. |
data.items[].errorMessage | string | No. | — | Description of the failure. |
data.items[].nextAction | string | No. | Allowed / check_inventory / query_order / contact_support | Suggested next step. If the outcome is unknown, look up the original order. |
data.createdAt | string | null | Yes, I am. | Format date-time | Creation time in RFC3339 format. |
data.completedAt | string | null | Yes, I am. | Format date-time | Completion time in RFC3339 format. Null until complete. |
data.queryUrl | string | Yes, I am. | — | Relative path for polling. Include api_key for authentication. |
data.orderNo | string | No. | — | Associated chargeable order number. Omitted if no order was charged. |
{
"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.