{"openapi":"3.1.0","info":{"title":"ZZHTTP Static Residential API","version":"1.0.0","description":"Authenticate using the account API token in a single api_key query parameter. No additional permissions need to be selected. Check the console for availability. Purchases and operations are idempotent by account, operation type, and client reference. Webhooks are signed with a separate notification secret."},"servers":[{"url":"https://api.zzhttp.com/openapi/v1/static","description":"Production public API for static residential proxies"}],"security":[{"AccountAPIKey":[]}],"paths":{"/balance":{"get":{"operationId":"get__balance","summary":"Get account balance","parameters":[],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Balance","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"rechargeBalanceCents":10000,"giftBalanceCents":2000,"frozenAmountCents":0,"purchasableAmountCents":12000,"currency":"CNY"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-balance","tags":["Account"],"description":"Get the balance for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/balance?api_key=${STATIC_API_KEY}\""}]}},"/offers":{"get":{"operationId":"get__offers","summary":"List customer offers and inventory","parameters":[{"in":"query","name":"countryCode","schema":{"type":"string"},"description":"Three-letter country code, such as USA. Use the value returned by the country catalog.","example":"USA"},{"in":"query","name":"cityCode","schema":{"type":"string"},"description":"City code returned by the city catalog.","example":"NYC"},{"in":"query","name":"ispType","schema":{"type":"integer","enum":[1,2]},"description":"IP type as shown in the console. 1 is Native IP and 2 is Dedicated ISP IP.","example":1}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Offers","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"offerId":17,"ispType":1,"countryCode":"USA","cityCode":"NYC","durationDays":30,"unitPriceCents":3500,"currency":"CNY","pricingSource":"retail","availableCount":100,"inventorySyncedAt":"2026-10-06T08:00:00Z","purchasable":false,"capabilities":{"purchase":{"minDays":30,"maxDays":360,"stepDays":30},"renew":{"allowedDays":[30]},"convertTrial":{},"trialDays":0,"changeIp":false,"selectReplacement":false,"customCredentials":true,"randomCredentials":true,"maxBatchSize":100}}],"inventorySyncedAt":"2026-10-06T08:00:00Z"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-offers","tags":["Static IPs"],"description":"List offers and inventory for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/offers?api_key=${STATIC_API_KEY}\""}]}},"/quotes":{"post":{"operationId":"post__quotes","summary":"Quote without reserving funds or inventory","parameters":[],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Quote","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"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}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteInput"},"examples":{"variant1":{"summary":"purchase","value":{"kind":"purchase","items":[{"offerId":17,"quantity":1,"durationDays":30}]}},"variant2":{"summary":"renew","value":{"kind":"renew","instanceIds":[101],"durationDays":30}}}}}},"x-doc-path":"/developers/api/static-quotes","tags":["Static IPs"],"description":"Get a quote for the account associated with the current token. Funds and inventory are not reserved.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/static/quotes?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"kind\":\"purchase\",\"items\":[{\"offerId\":17,\"quantity\":1,\"durationDays\":30}]}'"}]}},"/orders":{"post":{"operationId":"post__orders","summary":"Purchase static IPs","parameters":[],"responses":{"200":{"description":"The request was processed. Check code, data.status, and each item's reason to determine whether it succeeded.","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"The request succeeded or was accepted. Check data.status for the delivery outcome."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Order","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},{"$ref":"#/components/schemas/PurchaseError"}]},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"orderNo":"STATIC-DEMO-001","clientOrderNo":"platform-order-001","kind":"purchase","status":"accepted","totalAmountCents":3500,"currency":"CNY","settlement":{"fundingSource":"wallet","reservedAmountCents":3500,"frozenAmountCents":3500,"capturedAmountCents":0,"releasedAmountCents":0,"gift":{"reservedAmountCents":0,"capturedAmountCents":0,"releasedAmountCents":0},"recharge":{"reservedAmountCents":3500,"capturedAmountCents":0,"releasedAmountCents":0}},"items":[{"itemId":201,"offerId":17,"status":"accepted","requestedQuantity":1,"deliveredQuantity":0,"durationDays":30,"unitPriceCents":3500,"totalAmountCents":3500,"pricingSource":"retail","frozenAmountCents":3500,"capturedAmountCents":0,"releasedAmountCents":0,"instanceIds":[],"errorCode":"","errorMessage":"","nextAction":""}],"createdAt":"2026-10-06T08:00:00Z","completedAt":null,"queryUrl":"/openapi/v1/static/orders/STATIC-DEMO-001","source":"api"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInput"},"examples":{"variant1":{"summary":"Request example","value":{"clientOrderNo":"platform-order-001","items":[{"offerId":17,"quantity":1,"durationDays":30}]}}}}}},"x-doc-path":"/developers/api/static-create-order","tags":["Static IPs"],"description":"Purchase static IPs. Use items[].durationDays to select the duration, which defaults to 30 days. Refer to the offer for supported durations and the order result for the final price.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/static/orders?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"clientOrderNo\":\"platform-order-001\",\"items\":[{\"offerId\":17,\"quantity\":1,\"durationDays\":30}]}'"}]},"get":{"operationId":"get__orders","summary":"List orders by client reference","parameters":[{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"default":1},"description":"Page number, starting at 1. Defaults to 1.","example":1},{"in":"query","name":"pageSize","schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Number of records per page. Defaults to 20. See the field constraints for the maximum.","example":20},{"in":"query","name":"clientOrderNo","schema":{"type":"string"},"description":"Client order number of 1–64 characters using letters, digits, underscores, periods, or hyphens. Submitting the same reference and parameters again returns the original result for the account.","example":"platform-order-001"},{"in":"query","name":"source","schema":{"type":"string","enum":["console","admin","api"]},"description":"Order source. console means the user console, admin means the admin portal, and api means the public API.","example":"console"}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/OrderPage","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"orderNo":"STATIC-DEMO-001","clientOrderNo":"platform-order-001","kind":"purchase","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":[{"itemId":201,"offerId":17,"status":"succeeded","requestedQuantity":1,"deliveredQuantity":1,"durationDays":30,"unitPriceCents":3500,"totalAmountCents":3500,"pricingSource":"retail","frozenAmountCents":0,"capturedAmountCents":3500,"releasedAmountCents":0,"instanceIds":[101],"errorCode":"","errorMessage":"","nextAction":""}],"createdAt":"2026-10-06T08:00:00Z","completedAt":"2026-10-06T08:00:00Z","queryUrl":"/openapi/v1/static/orders/STATIC-DEMO-001","source":"api"}],"page":1,"pageSize":20,"total":1}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-orders","tags":["Static IPs"],"description":"List orders by client reference for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/orders?api_key=${STATIC_API_KEY}&page=1&pageSize=20\""}]}},"/orders/{orderNo}":{"get":{"operationId":"get__orders_orderNo","summary":"Get an order and its itemized settlement","parameters":[{"in":"path","name":"orderNo","required":true,"schema":{"type":"string"},"description":"Platform order number. When used as a filter, it must exactly match an order belonging to the account.","example":"STATIC-DEMO-001"}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Order","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"orderNo":"STATIC-DEMO-001","clientOrderNo":"platform-order-001","kind":"purchase","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":[{"itemId":201,"offerId":17,"status":"succeeded","requestedQuantity":1,"deliveredQuantity":1,"durationDays":30,"unitPriceCents":3500,"totalAmountCents":3500,"pricingSource":"retail","frozenAmountCents":0,"capturedAmountCents":3500,"releasedAmountCents":0,"instanceIds":[101],"errorCode":"","errorMessage":"","nextAction":""}],"createdAt":"2026-10-06T08:00:00Z","completedAt":"2026-10-06T08:00:00Z","queryUrl":"/openapi/v1/static/orders/STATIC-DEMO-001","source":"api"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-order-detail","tags":["Static IPs"],"description":"Get an order and its itemized settlement for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/orders/STATIC-DEMO-001?api_key=${STATIC_API_KEY}\""}]}},"/instances":{"get":{"operationId":"get__instances","summary":"List account instances","parameters":[{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"default":1},"description":"Page number, starting at 1. Defaults to 1.","example":1},{"in":"query","name":"pageSize","schema":{"type":"integer","minimum":1,"maximum":1000,"default":20},"description":"Number of records per page. Defaults to 20. See the field constraints for the maximum.","example":20},{"in":"query","name":"countryCode","schema":{"type":"string"},"description":"Three-letter country code, such as USA. Use the value returned by the country catalog.","example":"USA"},{"in":"query","name":"cityCode","schema":{"type":"string"},"description":"City code returned by the city catalog.","example":"NYC"},{"in":"query","name":"status","schema":{"type":"string"},"description":"Exact instance status filter. provisioning means delivery is in progress, active means usable, expired means expired, cancelled means cancelled, and failed means failed.","example":"succeeded"},{"in":"query","name":"orderNo","schema":{"type":"string"},"description":"Platform order number. When used as a filter, it must exactly match an order belonging to the account.","example":"STATIC-DEMO-001"},{"name":"ip","in":"query","schema":{"type":"string"},"description":"Match part of a single IP address. This filter cannot be combined with the batch POST search.","example":"203.0.113.10"},{"name":"groupId","in":"query","schema":{"type":"integer","minimum":0},"description":"Omit to include all groups. Use 0 for ungrouped instances or a positive integer for a group in the current account.","example":12},{"name":"ip","in":"query","schema":{"type":"string"},"description":"Match part of a single IP address. This filter cannot be combined with the batch POST search.","example":"203.0.113.10"},{"name":"groupId","in":"query","schema":{"type":"integer","minimum":0},"description":"Omit to include all groups. Use 0 for ungrouped instances or a positive integer for a group in the current account.","example":12},{"name":"ip","in":"query","schema":{"type":"string"},"description":"Match part of a single IP address. This filter cannot be combined with the batch POST search.","example":"203.0.113.10"},{"name":"groupId","in":"query","schema":{"type":"integer","minimum":0},"description":"Omit to include all groups. Use 0 for ungrouped instances or a positive integer for a group in the current account.","example":12},{"name":"activatedFrom","in":"query","required":false,"description":"Inclusive lower bound for activation time, in RFC3339 with a time zone. Can be set independently.","schema":{"type":"string","format":"date-time","description":"Inclusive lower bound for activation time, in RFC3339 with a time zone. Can be set independently.","example":"2026-08-07T00:00:00+08:00"}},{"name":"activatedTo","in":"query","required":false,"description":"Inclusive upper bound for activation time, in RFC3339 with a time zone. Can be set independently and must not precede the lower bound.","schema":{"type":"string","format":"date-time","description":"Inclusive upper bound for activation time, in RFC3339 with a time zone. Can be set independently and must not precede the lower bound.","example":"2026-08-07T23:59:59.999+08:00"}}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/InstancePage","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"instanceId":101,"offerId":17,"status":"active","ip":"203.0.113.10","port":9000,"protocols":["http","socks5"],"countryCode":"USA","cityCode":"NYC","ispType":1,"expiresAt":"2026-11-05T08:00:00Z","activatedAt":"2026-10-06T08:00:00Z","capabilities":{"purchase":{"minDays":30,"maxDays":360,"stepDays":30},"renew":{"allowedDays":[30]},"convertTrial":{},"trialDays":0,"changeIp":false,"selectReplacement":false,"customCredentials":true,"randomCredentials":true,"maxBatchSize":100},"groupId":null}],"page":1,"pageSize":20,"total":1}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-instances","tags":["Static IPs"],"description":"List instances in the current account that match all filters. Use a partial address for a single IP or the POST search for a batch of full addresses. Lists and details omit passwords. Ungrouped instances have a null groupId.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/instances?api_key=${STATIC_API_KEY}&page=1&pageSize=20\""}]}},"/instances/{instanceId}":{"get":{"operationId":"get__instances_instanceId","summary":"Get an instance","parameters":[{"in":"path","name":"instanceId","required":true,"schema":{"type":"integer","minimum":1,"format":"int64"},"description":"ID of an instance belonging to the current account. Group membership is attached to this ID.","example":101}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Instance","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"instanceId":101,"offerId":17,"status":"active","ip":"203.0.113.10","port":9000,"protocols":["http","socks5"],"countryCode":"USA","cityCode":"NYC","ispType":1,"expiresAt":"2026-10-06T08:00:00Z","activatedAt":"2026-10-06T08:00:00Z","capabilities":{"purchase":{"minDays":30,"maxDays":360,"stepDays":30},"renew":{"allowedDays":[30]},"convertTrial":{},"trialDays":0,"changeIp":false,"selectReplacement":false,"customCredentials":true,"randomCredentials":true,"maxBatchSize":100},"groupId":null}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-instance-detail","tags":["Static IPs"],"description":"Get an instance belonging to the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/instances/101?api_key=${STATIC_API_KEY}\""}]}},"/instances/credentials":{"post":{"operationId":"post__instances_credentials","summary":"Read node credentials without caching or logging them","parameters":[],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Credentials","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"instanceId":101,"ip":"203.0.113.10","port":9000,"protocols":"http,socks5","username":"example_user","password":"REPLACE_WITH_INSTANCE_PASSWORD"}]}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceIDs"},"examples":{"variant1":{"summary":"Request example","value":{"instanceIds":[101]}}}}}},"x-doc-path":"/developers/api/static-credentials","tags":["Static IPs"],"description":"Read node credentials for the account associated with the current token. Do not cache or log them.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/static/instances/credentials?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"instanceIds\":[101]}'"}]}},"/instances/renew":{"post":{"operationId":"post__instances_renew","summary":"Submit a batch renewal","parameters":[],"responses":{"200":{"description":"The request was accepted for asynchronous processing. Query its final status.","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Operation","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"operationId":301,"clientOperationNo":"platform-renew-001","type":"renewal","status":"accepted","totalAmountCents":3500,"currency":"CNY","settlement":{"fundingSource":"wallet","reservedAmountCents":3500,"frozenAmountCents":3500,"capturedAmountCents":0,"releasedAmountCents":0,"gift":{"reservedAmountCents":0,"capturedAmountCents":0,"releasedAmountCents":0},"recharge":{"reservedAmountCents":3500,"capturedAmountCents":0,"releasedAmountCents":0}},"items":[{"instanceId":101,"status":"accepted","amountCents":3500,"frozenAmountCents":3500,"capturedAmountCents":0,"releasedAmountCents":0,"errorCode":"","completedAt":null,"errorMessage":"","nextAction":""}],"createdAt":"2026-10-06T08:00:00Z","completedAt":null,"queryUrl":"/openapi/v1/static/operations/301","orderNo":"STATIC-RENEW-DEMO-001"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewInput"},"examples":{"variant1":{"summary":"Request example","value":{"clientOperationNo":"platform-renew-001","instanceIds":[101],"durationDays":30,"expectedTotalAmountCents":3500}}}}}},"x-doc-path":"/developers/api/static-renew","tags":["Static IPs"],"description":"Submit a batch renewal for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/static/instances/renew?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"clientOperationNo\":\"platform-renew-001\",\"instanceIds\":[101],\"durationDays\":30,\"expectedTotalAmountCents\":3500}'"}]}},"/instances/update-credentials":{"post":{"operationId":"post__instances_update-credentials","summary":"Submit a batch credential update","parameters":[],"responses":{"200":{"description":"Synchronous credential update result. Check each item's status. If the result is unknown, query or retry using the original reference.","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Operation","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"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"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialUpdateInput"},"examples":{"variant1":{"summary":"Random credentials","value":{"clientOperationNo":"platform-renew-001","instanceIds":[101],"randomize":true}},"variant2":{"summary":"Custom credentials","value":{"clientOperationNo":"platform-renew-001","instanceIds":[101],"randomize":false,"username":"example_user","password":"REPLACE_WITH_INSTANCE_PASSWORD"}}}}}},"x-doc-path":"/developers/api/static-update-credentials","tags":["Static IPs"],"description":"Submit a batch credential update for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/static/instances/update-credentials?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"clientOperationNo\":\"platform-renew-001\",\"instanceIds\":[101],\"randomize\":true}'"}]}},"/operations":{"get":{"operationId":"get__operations","summary":"Get an operation by client reference","parameters":[{"in":"query","name":"page","schema":{"type":"integer","minimum":1,"default":1},"description":"Page number, starting at 1. Defaults to 1.","example":1},{"in":"query","name":"pageSize","schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Number of records per page. Defaults to 20. See the field constraints for the maximum.","example":20},{"in":"query","name":"clientOperationNo","schema":{"type":"string"},"description":"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.","example":"platform-renew-001"},{"in":"query","name":"type","schema":{"type":"string"},"description":"Operation or event type.","example":"renewal"}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/OperationPage","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"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"}],"page":1,"pageSize":20,"total":1}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-operations","tags":["Static IPs"],"description":"Get an operation by client reference for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/operations?api_key=${STATIC_API_KEY}&page=1&pageSize=20\""}]}},"/operations/{operationId}":{"get":{"operationId":"get__operations_operationId","summary":"List per-instance operation results","parameters":[{"in":"path","name":"operationId","required":true,"schema":{"type":"integer","minimum":1,"format":"int64"},"description":"Platform operation ID.","example":301}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Operation","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"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"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-operation-detail","tags":["Static IPs"],"description":"List per-instance operation results for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/operations/301?api_key=${STATIC_API_KEY}\""}]}},"/countries":{"get":{"operationId":"get__countries","summary":"List countries for static IPs","parameters":[{"in":"query","name":"ispType","schema":{"type":"integer","enum":[1,2]},"description":"IP type as shown in the console. 1 is Native IP and 2 is Dedicated ISP IP.","example":1}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["countryCode","countryName"],"properties":{"countryCode":{"type":"string","description":"Three-letter country code, such as USA. Use the value returned by the country catalog."},"countryName":{"type":"string","description":"Country display name."}}},"description":"Array of results or submitted items. See the nested fields for details."}},"description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"countryCode":"USA","countryName":"United States"}]}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-countries","tags":["Static IPs"],"description":"List countries for static IPs for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/countries?api_key=${STATIC_API_KEY}\""}]}},"/cities":{"get":{"operationId":"get__cities","summary":"List static IP cities in a country","parameters":[{"in":"query","name":"countryCode","required":true,"schema":{"type":"string","pattern":"^[A-Za-z]{3}$"},"description":"Three-letter country code, such as USA.","example":"USA"},{"in":"query","name":"ispType","schema":{"type":"integer","enum":[1,2]},"description":"IP type as shown in the console. 1 is Native IP and 2 is Dedicated ISP IP.","example":1}],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object","required":["countryCode","cityCode","cityName"],"properties":{"countryCode":{"type":"string","description":"Three-letter country code, such as USA. Use the value returned by the country catalog."},"cityCode":{"type":"string","description":"City code returned by the city catalog."},"cityName":{"type":"string","description":"City display name."}}},"description":"Array of results or submitted items. See the nested fields for details."}},"description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"countryCode":"USA","cityCode":"NYC","cityName":"New York"}]}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-cities","tags":["Static IPs"],"description":"List static IP cities in the specified country for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/cities?api_key=${STATIC_API_KEY}&countryCode=USA\""}]}},"/instances/search":{"post":{"operationId":"post__instances_search","summary":"Search static instances in bulk","parameters":[],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/InstancePage","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"instanceId":101,"offerId":17,"status":"active","ip":"203.0.113.10","port":9000,"protocols":["http","socks5"],"countryCode":"USA","cityCode":"NYC","ispType":1,"expiresAt":"2026-10-06T08:00:00Z","activatedAt":"2026-10-06T08:00:00Z","capabilities":{"purchase":{"minDays":30,"maxDays":360,"stepDays":30},"renew":{"allowedDays":[30]},"convertTrial":{},"trialDays":0,"changeIp":false,"selectReplacement":false,"customCredentials":true,"randomCredentials":true,"maxBatchSize":100},"groupId":null}],"page":1,"pageSize":20,"total":1}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceSearchInput"},"examples":{"variant1":{"summary":"Request example","value":{"ips":["192.0.2.1:18080","[2001:db8::4]:18080"],"orderNo":"STATIC-DEMO-001","groupId":0,"countryCode":"USA","cityCode":"NYC","status":"active","page":1,"pageSize":20,"activatedFrom":"2026-08-07T00:00:00+08:00","activatedTo":"2026-08-07T23:59:59.999+08:00"}}}}}},"x-doc-path":"/developers/api/static-instance-search","tags":["Static IPs"],"description":"Read-only exact IP search. Results must also match any order, group, location, and status filters. Up to 500 valid unique IPv4 or IPv6 entries are allowed. An empty, invalid, or oversized batch is rejected in full. Matches in other accounts are never disclosed.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/static/instances/search?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"ips\":[\"203.0.113.10\",\"2001:db8::1\"],\"orderNo\":\"STATIC-DEMO-001\",\"groupId\":0,\"countryCode\":\"USA\",\"cityCode\":\"NYC\",\"status\":\"active\",\"page\":1,\"pageSize\":20}'"}]}},"/groups":{"get":{"operationId":"get__groups","summary":"List static IP groups","parameters":[],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Groups","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"items":[{"groupId":12,"name":"Work","createdAt":"2026-10-06T08:00:00Z","updatedAt":"2026-10-06T08:00:00Z"}]}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"x-doc-path":"/developers/api/static-groups","tags":["Static IPs"],"description":"List static IP groups for the account associated with the current token.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request GET \\\n  \"https://api.zzhttp.com/openapi/v1/static/groups?api_key=${STATIC_API_KEY}\""}]},"post":{"operationId":"post__groups","summary":"Create a static IP group","parameters":[],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Group","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"groupId":12,"name":"Work","createdAt":"2026-10-06T08:00:00Z","updatedAt":"2026-10-06T08:00:00Z"}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupInput"},"examples":{"variant1":{"summary":"Request example","value":{"name":"Work"}}}}}},"x-doc-path":"/developers/api/static-create-group","tags":["Static IPs"],"description":"Create a top-level group in the current account. Names must be 1–50 characters after trimming. Duplicate names in the same account return HTTP 400 and business code 10700. Deleting, renaming, and nesting groups are unsupported.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request POST \\\n  \"https://api.zzhttp.com/openapi/v1/static/groups?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"name\":\"Work\"}'"}]}},"/instances/group":{"put":{"operationId":"put__instances_group","summary":"Move static instances to a group","parameters":[],"responses":{"200":{"description":"Success","headers":{"Cache-Control":{"schema":{"const":"no-store"}},"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","const":200,"description":"Numeric business code. HTTP status 200 and business code 200 indicate success. An accepted asynchronous request may still be pending delivery."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/GroupMoveResult","description":"Response data for this endpoint."}},"required":["code","message","requestId","data"],"additionalProperties":false},"examples":{"example":{"summary":"Successful response","value":{"code":200,"message":"Success","requestId":"00000000-0000-4000-8000-000000000001","data":{"updatedCount":1}}}}}}},"default":{"description":"Standard business error. An HTTP 500 response can leave the outcome unknown. Keep the client reference for status queries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"example":{"summary":"Invalid request example","value":{"code":10700,"message":"Invalid request parameters","requestId":"00000000-0000-4000-8000-000000000001"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupMoveInput"},"examples":{"variant1":{"summary":"Request example","value":{"instanceIds":[101],"groupId":12}}}}}},"x-doc-path":"/developers/api/static-move-group","tags":["Static IPs"],"description":"Move the selected instances to the target group. Use groupId=0 to ungroup them. The instances and target group must belong to the current account. If any selection is invalid, nothing moves. Changing groups does not interrupt proxy use.","x-retry-notes":"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.","x-codeSamples":[{"lang":"Shell","label":"cURL","source":"curl --request PUT \\\n  \"https://api.zzhttp.com/openapi/v1/static/instances/group?api_key=${STATIC_API_KEY}\" \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"instanceIds\":[101],\"groupId\":12}'"}]}}},"components":{"securitySchemes":{"AccountAPIKey":{"type":"apiKey","in":"query","name":"api_key","description":"Account API token from account settings. It grants access to all public API endpoints."}},"schemas":{"PurchaseItem":{"type":"object","properties":{"offerId":{"type":"integer","minimum":1,"format":"int64","description":"ID of a purchasable offer returned by the offer list."},"quantity":{"type":"integer","minimum":1,"maximum":1000,"description":"Number of IPs to purchase for this offer, from 1 to 1000, subject to available stock and provider capabilities."},"durationDays":{"type":"integer","minimum":30,"maximum":360,"default":30,"description":"Purchase 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."}},"required":["offerId","quantity"],"additionalProperties":false},"OrderInput":{"type":"object","properties":{"clientOrderNo":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$","description":"Client order number of 1–64 characters using letters, digits, underscores, periods, or hyphens. Submitting the same reference and parameters again returns the original result for the account."},"items":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseItem"},"minItems":1,"maxItems":100,"description":"Array of results or submitted items. See the nested fields for details."}},"required":["clientOrderNo","items"],"additionalProperties":false},"InstanceIDs":{"type":"object","properties":{"instanceIds":{"type":"array","items":{"type":"integer","minimum":1,"format":"int64"},"minItems":1,"maxItems":100,"description":"Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected."}},"required":["instanceIds"],"additionalProperties":false},"PurchaseQuote":{"type":"object","properties":{"kind":{"const":"purchase","description":"Request or order type. purchase means purchase and renew means renewal. Orders may include other supported operation types."},"items":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseItem"},"minItems":1,"maxItems":100,"description":"Array of results or submitted items. See the nested fields for details."}},"required":["kind","items"],"additionalProperties":false},"RenewQuote":{"type":"object","properties":{"kind":{"const":"renew","description":"Request or order type. purchase means purchase and renew means renewal. Orders may include other supported operation types."},"instanceIds":{"type":"array","items":{"type":"integer","minimum":1,"format":"int64"},"minItems":1,"maxItems":100,"description":"Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected."},"durationDays":{"type":"integer","minimum":1,"maximum":3650,"description":"Duration in days. Must comply with the applicable offer or instance capabilities."}},"required":["kind","instanceIds","durationDays"],"additionalProperties":false},"QuoteInput":{"oneOf":[{"$ref":"#/components/schemas/PurchaseQuote"},{"$ref":"#/components/schemas/RenewQuote"}]},"RenewInput":{"type":"object","properties":{"clientOperationNo":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$","description":"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":{"type":"array","items":{"type":"integer","minimum":1,"format":"int64"},"minItems":1,"maxItems":100,"description":"Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected."},"durationDays":{"type":"integer","minimum":1,"maximum":3650,"description":"Duration in days. Must comply with the applicable offer or instance capabilities."},"expectedTotalAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."}},"required":["clientOperationNo","instanceIds","durationDays","expectedTotalAmountCents"],"additionalProperties":false},"RandomCredentials":{"type":"object","properties":{"clientOperationNo":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$","description":"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":{"type":"array","items":{"type":"integer","minimum":1,"format":"int64"},"minItems":1,"maxItems":100,"description":"Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected."},"randomize":{"const":true,"description":"Set true to generate random credentials. When false, both username and password are required."}},"required":["clientOperationNo","instanceIds","randomize"],"additionalProperties":false},"CustomCredentials":{"type":"object","properties":{"clientOperationNo":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$","description":"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":{"type":"array","items":{"type":"integer","minimum":1,"format":"int64"},"minItems":1,"maxItems":100,"description":"Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected."},"randomize":{"const":false,"description":"Set true to generate random credentials. When false, both username and password are required."},"username":{"type":"string","description":"Proxy username for the instance."},"password":{"type":"string","writeOnly":true,"description":"Proxy password for the instance. Only the credentials endpoint returns it. Do not expose it in public storage or logs."}},"required":["clientOperationNo","instanceIds","randomize","username","password"],"additionalProperties":false},"CredentialUpdateInput":{"oneOf":[{"$ref":"#/components/schemas/RandomCredentials"},{"$ref":"#/components/schemas/CustomCredentials"}]},"SettlementSource":{"type":"object","properties":{"reservedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"capturedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"releasedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."}},"required":[],"additionalProperties":false},"ExternalSettlement":{"type":"object","properties":{"paidAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"capturedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"unsettledAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"refundDueAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"refundedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"refundPendingAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."}},"required":[],"additionalProperties":false},"Settlement":{"type":"object","properties":{"fundingSource":{"enum":["wallet","external","none"],"description":"Funding source. wallet means wallet funds, external means historical external payments, and none means unpaid or free."},"external":{"$ref":"#/components/schemas/ExternalSettlement","description":"Settlement details for historical external payments. An amount due for refund does not confirm that a refund was issued."},"reservedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"frozenAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"capturedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"releasedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"gift":{"$ref":"#/components/schemas/SettlementSource","description":"Amounts held, debited, and released from bonus credit."},"recharge":{"$ref":"#/components/schemas/SettlementSource","description":"Amounts held, debited, and released from top-up credit."}},"required":[],"additionalProperties":false,"example":{"fundingSource":"wallet","reservedAmountCents":3500,"frozenAmountCents":0,"capturedAmountCents":3500,"releasedAmountCents":0,"gift":{"reservedAmountCents":0,"capturedAmountCents":0,"releasedAmountCents":0},"recharge":{"reservedAmountCents":3500,"capturedAmountCents":3500,"releasedAmountCents":0}}},"Balance":{"type":"object","properties":{"rechargeBalanceCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"giftBalanceCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"frozenAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"purchasableAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"currency":{"const":"CNY","description":"Currency code. The current API contract uses CNY."}},"required":["rechargeBalanceCents","giftBalanceCents","frozenAmountCents","purchasableAmountCents","currency"],"additionalProperties":false},"Offer":{"type":"object","properties":{"offerId":{"type":"integer","minimum":1,"format":"int64","description":"ID of a purchasable offer returned by the offer list."},"ispType":{"enum":[1,2],"description":"IP type as shown in the console. 1 is Native IP and 2 is Dedicated ISP IP."},"countryCode":{"type":"string","description":"Three-letter country code, such as USA. Use the value returned by the country catalog."},"cityCode":{"type":"string","description":"City code returned by the city catalog."},"durationDays":{"type":"integer","minimum":0,"format":"int64","description":"Base term for the offer unit price, currently 30 days. Select the actual purchase term with durationDays on the purchase line."},"unitPriceCents":{"type":"integer","minimum":0,"format":"int64","description":"Customer price per IP for the base term, in integer CNY cents. Check the quote for the selected term's price."},"currency":{"const":"CNY","description":"Currency code. The current API contract uses CNY."},"pricingSource":{"enum":["customer","retail"],"description":"Price source. customer means customer-specific pricing and retail means standard retail pricing."},"availableCount":{"type":"integer","minimum":0,"format":"int64","description":"Most recently synced stock available for sale. The quote and order flows both check stock again."},"inventorySyncedAt":{"type":["string","null"],"format":"date-time","description":"Inventory sync time in RFC3339, or null if inventory has not been synced."},"purchasable":{"type":"boolean","description":"Whether the offer is currently purchasable."},"capabilities":{"$ref":"#/components/schemas/Capabilities","description":"Provider or instance capabilities. The server still checks rules at submission. An unavailable snapshot can appear as an empty object."}},"required":["offerId","ispType","countryCode","cityCode","durationDays","unitPriceCents","currency","pricingSource","availableCount","inventorySyncedAt","purchasable","capabilities"],"additionalProperties":false},"Offers":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Offer"},"description":"Array of results or submitted items. See the nested fields for details."},"inventorySyncedAt":{"type":["string","null"],"format":"date-time","description":"Inventory sync time in RFC3339, or null if inventory has not been synced."}},"required":["items","inventorySyncedAt"],"additionalProperties":false},"QuoteItem":{"type":"object","properties":{"offerId":{"type":"integer","minimum":1,"format":"int64","description":"ID of a purchasable offer returned by the offer list."},"instanceId":{"type":"integer","minimum":1,"format":"int64","description":"ID of an instance belonging to the current account. Group membership is attached to this ID."},"quantity":{"type":"integer","minimum":0,"format":"int64","description":"Number of IPs to purchase for this offer, from 1 to 1000, subject to available stock and provider capabilities."},"durationDays":{"type":"integer","minimum":0,"format":"int64","description":"Duration in days. Must comply with the applicable offer or instance capabilities."},"unitPriceCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"amountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"pricingSource":{"type":"string","description":"Price source. customer means customer-specific pricing and retail means standard retail pricing."}},"required":[],"additionalProperties":false},"Quote":{"type":"object","properties":{"kind":{"enum":["purchase","renew"],"description":"Request or order type. purchase means purchase and renew means renewal. Orders may include other supported operation types."},"currency":{"const":"CNY","description":"Currency code. The current API contract uses CNY."},"items":{"type":"array","items":{"$ref":"#/components/schemas/QuoteItem"},"description":"Quote line items. Purchase lines contain offerId, while renewal lines contain instanceId."},"totalAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"quotedAt":{"type":["string","null"],"format":"date-time","description":"Quote time in RFC3339 format."},"inventoryReserved":{"const":false,"description":"Whether the quote reserves inventory. Always false."}},"required":["kind","currency","items","totalAmountCents","quotedAt","inventoryReserved"],"additionalProperties":false},"OrderItem":{"type":"object","properties":{"itemId":{"type":"integer","minimum":1,"format":"int64","description":"Order line ID."},"offerId":{"type":"integer","minimum":1,"format":"int64","description":"ID of a purchasable offer returned by the offer list."},"status":{"type":"string","enum":["accepted","processing","succeeded","partial","failed","manual_review"],"description":"Current status. See the enum values in the constraints and check each line for the final outcome."},"requestedQuantity":{"type":"integer","minimum":0,"format":"int64","description":"Quantity requested on the order line."},"deliveredQuantity":{"type":"integer","minimum":0,"format":"int64","description":"Quantity delivered."},"durationDays":{"type":"integer","minimum":0,"format":"int64","description":"Duration in days. Must comply with the applicable offer or instance capabilities."},"unitPriceCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"totalAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"pricingSource":{"type":"string","description":"Price source. customer means customer-specific pricing and retail means standard retail pricing."},"frozenAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"capturedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"releasedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"instanceIds":{"type":"array","items":{"type":"integer","minimum":1,"format":"int64"},"description":"Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected."},"errorCode":{"type":"string","description":"Per-item reason code. OUT_OF_STOCK, SERVICE_UNAVAILABLE, RESULT_UNCONFIRMED, or FULFILLMENT_FAILED. Empty on success."},"errorMessage":{"type":"string","description":"Description of the failure."},"nextAction":{"type":"string","enum":["","check_inventory","query_order","contact_support"],"description":"Suggested next step. If the outcome is unknown, look up the original order."}},"required":["itemId","offerId","status","requestedQuantity","deliveredQuantity","durationDays","unitPriceCents","totalAmountCents","pricingSource","frozenAmountCents","capturedAmountCents","releasedAmountCents","instanceIds","errorCode"],"additionalProperties":false},"Order":{"type":"object","properties":{"orderNo":{"type":"string","description":"Platform order number. When used as a filter, it must exactly match an order belonging to the account."},"clientOrderNo":{"type":"string","description":"Client order number of 1–64 characters using letters, digits, underscores, periods, or hyphens. Submitting the same reference and parameters again returns the original result for the account."},"kind":{"type":"string","description":"Request or order type. purchase means purchase and renew means renewal. Orders may include other supported operation types."},"status":{"type":"string","enum":["accepted","processing","succeeded","partial","failed","manual_review"],"description":"Current status. See the enum values in the constraints and check each line for the final outcome."},"totalAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"currency":{"const":"CNY","description":"Currency code. The current API contract uses CNY."},"settlement":{"$ref":"#/components/schemas/Settlement","description":"Settlement by order. The original wallet hold equals the current hold plus the amounts debited and released."},"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderItem"},"description":"Array of results or submitted items. See the nested fields for details."},"createdAt":{"type":["string","null"],"format":"date-time","description":"Creation time in RFC3339 format."},"completedAt":{"type":["string","null"],"format":"date-time","description":"Completion time in RFC3339 format. Null until complete."},"queryUrl":{"type":"string","description":"Relative path for polling. Include api_key for authentication."},"source":{"type":"string","enum":["console","admin","api"],"description":"Order source: user console, admin portal, or public API."},"operationId":{"type":"integer","minimum":1,"format":"int64","description":"ID of the associated chargeable operation. Omitted if there is no associated operation."},"clientOperationNo":{"type":"string","description":"Client reference of the associated chargeable operation. Omitted if there is no associated operation."}},"required":["orderNo","clientOrderNo","kind","status","totalAmountCents","currency","settlement","items","createdAt","completedAt","queryUrl","source"],"additionalProperties":false,"example":{"orderNo":"STATIC-DEMO-001","clientOrderNo":"platform-order-001","kind":"purchase","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":[{"itemId":201,"offerId":17,"status":"succeeded","requestedQuantity":1,"deliveredQuantity":1,"durationDays":30,"unitPriceCents":3500,"totalAmountCents":3500,"pricingSource":"retail","frozenAmountCents":0,"capturedAmountCents":3500,"releasedAmountCents":0,"instanceIds":[101],"errorCode":"","errorMessage":"","nextAction":""}],"createdAt":"2026-10-06T08:00:00Z","completedAt":"2026-10-06T08:00:00Z","queryUrl":"/openapi/v1/static/orders/STATIC-DEMO-001","source":"api"}},"OperationItem":{"type":"object","properties":{"instanceId":{"type":"integer","minimum":1,"format":"int64","description":"ID of an instance belonging to the current account. Group membership is attached to this ID."},"status":{"type":"string","enum":["accepted","processing","succeeded","partial","failed","manual_review"],"description":"Current status. See the enum values in the constraints and check each line for the final outcome."},"amountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"frozenAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"capturedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"releasedAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"errorCode":{"type":"string","description":"Per-item reason code. OUT_OF_STOCK, SERVICE_UNAVAILABLE, RESULT_UNCONFIRMED, or FULFILLMENT_FAILED. Empty on success."},"completedAt":{"type":["string","null"],"format":"date-time","description":"Completion time in RFC3339 format. Null until complete."},"errorMessage":{"type":"string","description":"Description of the failure."},"nextAction":{"type":"string","enum":["","check_inventory","query_order","contact_support"],"description":"Suggested next step. If the outcome is unknown, look up the original order."}},"required":["instanceId","status","amountCents","frozenAmountCents","capturedAmountCents","releasedAmountCents","errorCode","completedAt"],"additionalProperties":false},"Operation":{"type":"object","properties":{"operationId":{"type":"integer","minimum":1,"format":"int64","description":"Platform operation ID."},"clientOperationNo":{"type":"string","description":"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."},"type":{"type":"string","description":"Operation or event type."},"status":{"type":"string","enum":["accepted","processing","succeeded","partial","failed","manual_review"],"description":"Current status. See the enum values in the constraints and check each line for the final outcome."},"totalAmountCents":{"type":"integer","minimum":0,"format":"int64","description":"Amount in integer CNY cents."},"currency":{"const":"CNY","description":"Currency code. The current API contract uses CNY."},"settlement":{"$ref":"#/components/schemas/Settlement","description":"Settlement by order. The original wallet hold equals the current hold plus the amounts debited and released."},"items":{"type":"array","items":{"$ref":"#/components/schemas/OperationItem"},"description":"Array of results or submitted items. See the nested fields for details."},"createdAt":{"type":["string","null"],"format":"date-time","description":"Creation time in RFC3339 format."},"completedAt":{"type":["string","null"],"format":"date-time","description":"Completion time in RFC3339 format. Null until complete."},"queryUrl":{"type":"string","description":"Relative path for polling. Include api_key for authentication."},"orderNo":{"type":"string","description":"Associated chargeable order number. Omitted if no order was charged."}},"required":["operationId","clientOperationNo","type","status","totalAmountCents","currency","settlement","items","createdAt","completedAt","queryUrl"],"additionalProperties":false,"example":{"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"}},"Instance":{"type":"object","properties":{"instanceId":{"type":"integer","minimum":1,"format":"int64","description":"ID of an instance belonging to the current account. Group membership is attached to this ID."},"offerId":{"type":"integer","minimum":1,"format":"int64","description":"ID of a purchasable offer returned by the offer list."},"status":{"type":"string","enum":["provisioning","active","expired","cancelled","failed"],"description":"Current status. See the enum values in the constraints and check each line for the final outcome."},"ip":{"type":"string","description":"Actual instance IP address."},"port":{"type":"integer","minimum":0,"format":"int64","description":"Instance direct connection port."},"protocols":{"type":"array","items":{"type":"string"},"description":"Supported protocols. The instance list uses an array of strings. The credentials response uses a comma-separated string."},"countryCode":{"type":"string","description":"Three-letter country code, such as USA. Use the value returned by the country catalog."},"cityCode":{"type":"string","description":"City code returned by the city catalog."},"ispType":{"type":"integer","minimum":0,"format":"int64","description":"IP type as shown in the console. 1 is Native IP and 2 is Dedicated ISP IP."},"expiresAt":{"type":["string","null"],"format":"date-time","description":"Instance expiry time in RFC3339 format, or null if unknown."},"activatedAt":{"type":["string","null"],"format":"date-time","description":"Instance activation time in RFC3339 format, or null if the instance has not been activated."},"capabilities":{"$ref":"#/components/schemas/Capabilities","description":"Provider or instance capabilities. The server still checks rules at submission. An unavailable snapshot can appear as an empty object."},"groupId":{"type":["integer","null"],"minimum":1,"description":"Custom group ID, or null if ungrouped. New instances are ungrouped by default."}},"required":["instanceId","offerId","status","ip","port","protocols","countryCode","cityCode","ispType","expiresAt","activatedAt","capabilities","groupId"],"additionalProperties":false,"example":{"instanceId":101,"offerId":17,"status":"active","ip":"203.0.113.10","port":9000,"protocols":["http","socks5"],"countryCode":"USA","cityCode":"NYC","ispType":1,"expiresAt":"2026-11-05T08:00:00Z","activatedAt":"2026-10-06T08:00:00Z","capabilities":{"purchase":{"minDays":30,"maxDays":360,"stepDays":30},"renew":{"allowedDays":[30]},"convertTrial":{},"trialDays":0,"changeIp":false,"selectReplacement":false,"customCredentials":true,"randomCredentials":true,"maxBatchSize":100},"groupId":null}},"Credential":{"type":"object","properties":{"instanceId":{"type":"integer","minimum":1,"format":"int64","description":"ID of an instance belonging to the current account. Group membership is attached to this ID."},"ip":{"type":"string","description":"Actual instance IP address."},"port":{"type":"integer","minimum":0,"format":"int64","description":"Instance direct connection port."},"protocols":{"type":"string","description":"Supported protocols. The instance list uses an array of strings. The credentials response uses a comma-separated string."},"username":{"type":"string","description":"Proxy username for the instance."},"password":{"type":"string","description":"Proxy password for the instance. Only the credentials endpoint returns it. Do not expose it in public storage or logs."}},"required":["instanceId","ip","port","protocols","username","password"],"additionalProperties":false},"Credentials":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Credential"},"description":"Array of results or submitted items. See the nested fields for details."}},"required":["items"],"additionalProperties":false},"OrderPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Order"},"description":"Array of results or submitted items. See the nested fields for details."},"page":{"type":"integer","minimum":0,"format":"int64","description":"Page number, starting at 1. Defaults to 1."},"pageSize":{"type":"integer","minimum":0,"format":"int64","description":"Number of records per page. Defaults to 20. See the field constraints for the maximum."},"total":{"type":"integer","minimum":0,"format":"int64","description":"Total records matching the filters, across all pages."}},"required":["items","page","pageSize","total"],"additionalProperties":false},"OperationPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Operation"},"description":"Array of results or submitted items. See the nested fields for details."},"page":{"type":"integer","minimum":0,"format":"int64","description":"Page number, starting at 1. Defaults to 1."},"pageSize":{"type":"integer","minimum":0,"format":"int64","description":"Number of records per page. Defaults to 20. See the field constraints for the maximum."},"total":{"type":"integer","minimum":0,"format":"int64","description":"Total records matching the filters, across all pages."}},"required":["items","page","pageSize","total"],"additionalProperties":false},"InstancePage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Instance"},"description":"Array of results or submitted items. See the nested fields for details."},"page":{"type":"integer","minimum":0,"format":"int64","description":"Page number, starting at 1. Defaults to 1."},"pageSize":{"type":"integer","minimum":0,"format":"int64","description":"Number of records per page. Defaults to 20. See the field constraints for the maximum."},"total":{"type":"integer","minimum":0,"format":"int64","description":"Total records matching the filters, across all pages."}},"required":["items","page","pageSize","total"],"additionalProperties":false},"Error":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business code. See the Static Residential API documentation."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."}},"required":["code","message","requestId"],"additionalProperties":false},"WebhookEvent":{"type":"object","properties":{"eventId":{"type":"string","description":"Unique notification event ID for deduplication."},"type":{"enum":["order.completed"],"description":"Operation or event type."},"occurredAt":{"type":["string","null"],"format":"date-time","description":"Event time in RFC3339 format."},"data":{"type":"object","description":"Response data for this endpoint."}},"required":["eventId","type","occurredAt","data"],"additionalProperties":false},"InstanceSearchInput":{"type":"object","properties":{"ips":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10000,"description":"Full IP, IPv4:port, or [IPv6]:port. Ports range from 1 to 65535. An address with a port matches both values exactly. An address without a port matches all ports. Put IPv6 addresses with ports in brackets. CIDR, zone IDs, and partial addresses are rejected. Up to 10,000 input entries are allowed. After deduplication by IP and port, 1–500 entries must remain. The first spelling of each address is retained for exact matching."},"orderNo":{"type":"string","description":"Platform order number. When used as a filter, it must exactly match an order belonging to the account."},"groupId":{"type":["integer","null"],"minimum":0,"description":"Group filter. Omit or use null for all groups, 0 for ungrouped instances, or a positive integer for a group in the current account."},"countryCode":{"type":"string","description":"Three-letter country code, such as USA. Use the value returned by the country catalog."},"cityCode":{"type":"string","description":"City code returned by the city catalog."},"status":{"type":"string","description":"Exact instance status filter: provisioning, active, expired, cancelled, or failed."},"page":{"type":"integer","minimum":1,"maximum":1000000,"default":1,"description":"Page number, starting at 1. Defaults to 1."},"pageSize":{"type":"integer","minimum":1,"maximum":1000,"default":20,"description":"Number of records per page. Defaults to 20. See the field constraints for the maximum."},"activatedFrom":{"type":"string","format":"date-time","description":"Inclusive lower bound for activation time, in RFC3339 with a time zone. Can be set independently.","example":"2026-08-07T00:00:00+08:00"},"activatedTo":{"type":"string","format":"date-time","description":"Inclusive upper bound for activation time, in RFC3339 with a time zone. Can be set independently and must not precede the lower bound.","example":"2026-08-07T23:59:59.999+08:00"}},"required":["ips"],"additionalProperties":false},"GroupInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Name of 1–50 Unicode characters after trimming. It must be unique within the account."}},"required":["name"],"additionalProperties":false},"Group":{"type":"object","properties":{"groupId":{"type":"integer","minimum":1,"description":"Group ID."},"name":{"type":"string","description":"Custom group name."},"createdAt":{"type":"string","format":"date-time","description":"Creation time in RFC3339 format."},"updatedAt":{"type":"string","format":"date-time","description":"Last update time in RFC3339 format."}},"required":["groupId","name","createdAt","updatedAt"],"additionalProperties":false},"Groups":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Group"},"description":"Groups in the current account, sorted by ID ascending. Returns an empty array if there are no groups."}},"required":["items"],"additionalProperties":false},"GroupMoveInput":{"type":"object","properties":{"instanceIds":{"type":"array","items":{"type":"integer","minimum":1,"format":"int64"},"minItems":1,"maxItems":100,"description":"Array of 1–100 instance IDs in the current account. An invalid instance causes the entire batch to be rejected."},"groupId":{"type":"integer","minimum":0,"description":"Required destination group ID. Use 0 to ungroup. A positive integer must identify a group in the current account."}},"required":["instanceIds","groupId"],"additionalProperties":false},"GroupMoveResult":{"type":"object","properties":{"updatedCount":{"type":"integer","minimum":0,"description":"Number of unique instances updated.","example":1}},"required":["updatedCount"],"additionalProperties":false},"DurationRule":{"type":"object","properties":{"allowedDays":{"type":"array","items":{"type":"integer","minimum":1},"description":"Allowed durations in days. This list takes precedence when it is nonempty."},"minDays":{"type":"integer","minimum":0,"description":"Minimum duration when allowedDays is absent."},"maxDays":{"type":"integer","minimum":0,"description":"Maximum duration. A value of 0 means no upper limit."},"stepDays":{"type":"integer","minimum":0,"description":"Allowed duration increment, in days, measured from the minimum."}},"required":[],"additionalProperties":false},"Capabilities":{"type":"object","properties":{"purchase":{"$ref":"#/components/schemas/DurationRule","description":"Purchase duration rules."},"renew":{"$ref":"#/components/schemas/DurationRule","description":"Renewal duration rules."},"convertTrial":{"$ref":"#/components/schemas/DurationRule","description":"Duration rules for converting a trial to a paid instance."},"trialDays":{"type":"integer","minimum":0,"description":"Trial duration in days. A value of 0 means no trial is available."},"changeIp":{"type":"boolean","description":"Whether IP replacement is supported."},"selectReplacement":{"type":"boolean","description":"Whether the customer can select a replacement node."},"customCredentials":{"type":"boolean","description":"Whether the customer can supply proxy credentials."},"randomCredentials":{"type":"boolean","description":"Whether random credential generation is supported."},"maxBatchSize":{"type":"integer","minimum":0,"description":"Batch limit declared by the provider. Server request limits still apply."}},"required":[],"additionalProperties":false,"example":{"purchase":{"minDays":30,"maxDays":360,"stepDays":30},"renew":{"allowedDays":[30]},"convertTrial":{},"trialDays":0,"changeIp":false,"selectReplacement":false,"customCredentials":true,"randomCredentials":true,"maxBatchSize":100}},"PurchaseError":{"type":"object","properties":{"code":{"type":"integer","description":"Numeric business code. See the Static Residential API documentation."},"message":{"type":"string","description":"Server response message."},"requestId":{"type":"string","description":"Request ID for troubleshooting. This is separate from the business idempotency key."},"data":{"$ref":"#/components/schemas/Order","description":"Synchronous failure outcome for an existing order. This field may be absent if the request was rejected before order creation."}},"required":["code","message","requestId"],"additionalProperties":false}}},"webhooks":{"staticResourceChanged":{"post":{"summary":"Static order outcome notification. Deduplicate by eventId and handle duplicate or out-of-order delivery.","security":[],"parameters":[{"in":"header","name":"X-ZZ-Event-Id","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-ZZ-Timestamp","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-ZZ-Nonce","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-ZZ-Signature","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"The event was durably received or was a duplicate. Return 2xx to acknowledge it."}}}}}}