# Renew static proxy instances

Use the business number to batch accept instance renewals and query the final results.

Receive bulk renewal fees. Access only data from the current token account.

All examples are synthesised data and placement credentials, showing only structure. The interface contract does not mean that the target environment is open.

## Interfaces and authentication

`POST /openapi/v1/static/instances/renew`

Use HTTPS and account API tokens. The response contains Cache-Control: no-store and X-Request-Id.

## Request parameters

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| api_key | string | Yes, I am. | Query · Only non-empty | Account API tokens stored on a controlled server. The example uses a placeholder. |

### Application/json

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| clientOperationNo | string | Yes, I am. | Format ${A-Za-z0-9_.-}{1,64} | (a) The customer operation number, 1-64 digits of letters, numbers, _, ..., -. The same number but different parameters return HTTP 200 / business code 10705. |
| instanceIds | integer | Yes, I am. | Minimum 1. Maximum 100 | My instance ID array, 1-100 items per instance. Any invalid instance will be rejected. |
| durationDays | integer | Yes, I am. | Minimum 1. Maximum 3650 | (a) The number of days of the period. The corresponding expiration rules in the commodity/instance capabilities must be met. |
| expectedTotalAmountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |

## Example of a request

```bash
curl --request POST \
  "https://api.zzhttp.com/openapi/v1/static/instances/renew?api_key=${STATIC_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{"clientOperationNo":"platform-renew-001","instanceIds":[101],"durationDays":30,"expectedTotalAmountCents":3500}'
```

Examples of requests:

```json
{
  "clientOperationNo": "platform-renew-001",
  "instanceIds": [
    101
  ],
  "durationDays": 30,
  "expectedTotalAmountCents": 3500
}
```

## Successful response

The response does not contain the proxy password, and the credentials are returned only by the dedicated interface.

HTTP 200 · Successful response: Asynchronous acceptance, please check final status

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| code | integer | Yes, I am. | Fixed 200 | UNICODE: HTTP and UNICODE successes are both 200. Asynchronous acceptance does not represent completion of delivery. |
| message | string | Yes, I am. | — | Service-side results description. |
| requestId | string | Yes, I am. | — | The tracking ID for this request is used for troubleshooting purposes and is not a business equivalent number. |
| data | object | Yes, I am. | — | This interface is business data. |
| data.operationId | integer | Yes, I am. | Minimum 1. Format int64 | The platform operation ID. |
| data.clientOperationNo | string | Yes, I am. | — | (a) The customer operation number, 1-64 digits of letters, numbers, _, ..., -. The same number but different parameters return HTTP 200 / business code 10705. |
| data.type | string | Yes, I am. | — | Operation/event type. |
| data.status | string | Yes, I am. | List accepted / processing / succeeded / partial / failed / manual_review | (a) Current status. The list is limited and the final status is confirmed item by item. |
| data.totalAmountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.currency | string | Yes, I am. | Fixed CNY | Currency of the amount, the current contract is CNY. |
| data.settlement | object | Yes, I am. | — | Funding on an order-by-order basis. Wallet originally frozen = current frozen + held + released. |
| data.settlement.fundingSource | string | No. | List wallet / external / none | Source of funds: wallet, external history of external payments, none unpaid or free. |
| data.settlement.external | object | No. | — | Historical external payment settlement information cannot be used to refund due amounts. |
| data.settlement.external.paidAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.external.capturedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.external.unsettledAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.external.refundDueAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.external.refundedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.external.refundPendingAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.reservedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.frozenAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.capturedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.releasedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.gift | object | No. | — | Freezing, deduction and release of gift balances. |
| data.settlement.gift.reservedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.gift.capturedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.gift.releasedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.recharge | object | No. | — | Freezing, deduction and release of top-up balances. |
| data.settlement.recharge.reservedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.recharge.capturedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.settlement.recharge.releasedAmountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items | object | Yes, I am. | — | Results or submit a breakdown array, see below for specific fields. |
| data.items.instanceId | integer | Yes, I am. | Minimum 1. Format int64 | (a) The instance ID, which belongs to the current account. Group binds this ID. |
| data.items.status | string | Yes, I am. | List accepted / processing / succeeded / partial / failed / manual_review | (a) Current status. The list is limited and the final status is confirmed item by item. |
| data.items.amountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.frozenAmountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.capturedAmountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.releasedAmountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.errorCode | string | Yes, I am. | — | CREDENTIAL_UPDATE_NOT_SUBMITTED when the security expires. Other delivery failures are FULFILLMENT_FAILED. Success is an empty string |
| data.items.completedAt | string \| null | Yes, I am. | Date-time format | Time to completion, RFC 3339. Not ending as null. |
| data.createdAt | string \| null | Yes, I am. | Date-time format | Time of creation, RFC 3339. |
| data.completedAt | string \| null | Yes, I am. | Date-time format | Time to completion, RFC 3339. Not ending as null. |
| data.queryUrl | string | Yes, I am. | — | The relative path of the query to the query, still requires api_key authentication. |
| data.orderNo | string | No. | — | (a) The associated fee order number. Omit for no charge orders |

```json
{
  "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
      }
    ],
    "createdAt": "2026-10-06T08:00:00Z",
    "completedAt": null,
    "queryUrl": "/openapi/v1/static/operations/301",
    "orderNo": "STATIC-RENEW-DEMO-001"
  }
}
```

## Errors and Retry

HTTP 200 / code 200 indicates that the request was successfully accepted. Timeout or 500 First query the original clientOrderNo/clientOperationNo. Do not replace numbers in duplicate transactions. Different parameters for the same number are 200 / 10705.

Error code, HTTP status, and error response fields are unified.[Error Codes and Recommendations](/en/developers/errors/error-codes).

html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}
