# Place a static proxy order

Purchase static IP, select region, quantity and duration, and view order results.

Purchase a static IP. Access only to data from the current token account, no authentication required for formal procurement.

The procurement time is put on each order item `durationDays` In the case of the 30-day period, the period of omission is 30 days. The service end calculates the amount by the time of the goods, quantity and time, quotes for reference only, the purchase does not need to transmit the amount. The expected amount of transfers from the old client would be ignored. The actual order amount is based on the service-side calculation. The current price of the goods `capabilities.purchase`; Current procurement terms are at least 30 days and multiples of 30, with a maximum of 360 days for the platform. Omit the semantic equivalence with explicit 30 days. Amendments to the procurement timeframe require the use of a new business number.

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/orders`

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 |
| --- | --- | --- | --- | --- |
| clientOrderNo | string | Yes, I am. | Format ${A-Za-z0-9_.-}{1,64} | Customer order number, 1-64 digits of letters, numbers, _, ..., -. Returns the original result when the same number and parameters are repeatedly submitted from the same account. |
| items | object | Yes, I am. | Minimum 1. Maximum 100 | Results or submit a breakdown array, see below for specific fields. |
| items.offerId | integer | Yes, I am. | Minimum 1. Format int64 | Currently available to purchase item ID, from the item list. |
| items.quantity | integer | Yes, I am. | Minimum 1. Up to 1000 | Quantity of purchases of the commodity, 1-1000. The capacity of available stock and supply also needs to be met. |
| items.durationDays | integer | No. | Default 30. Minimum 30. Maximum 360 | (a) The length of the procurement (days), subject to the satisfaction of the commodity capabilities.purchase. The current procurement timeframe is multiplied by 30 days. |

## Example of a request

```bash
curl --request POST \
  "https://api.zzhttp.com/openapi/v1/static/orders?api_key=${STATIC_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{"clientOrderNo":"platform-order-001","items":[{"offerId":17,"quantity":1,"durationDays":30}]}'
```

Examples of requests:

```json
{
  "clientOrderNo": "platform-order-001",
  "items": [
    {
      "offerId": 17,
      "quantity": 1,
      "durationDays": 30
    }
  ]
}
```

## Successful response

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

HTTP 200 · Synchronization successful, partial delivery or received pending confirmation

| 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.orderNo | string | Yes, I am. | — | (a) Platform order number. When query filtering exactly match your order. |
| data.clientOrderNo | string | Yes, I am. | — | Customer order number, 1-64 digits of letters, numbers, _, ..., -. Returns the original result when the same number and parameters are repeatedly submitted from the same account. |
| data.kind | string | Yes, I am. | — | (a) Type of request or order: purchase, renew. The order may include other types of operations that are supported. |
| 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.itemId | integer | Yes, I am. | Minimum 1. Format int64 | Order item ID. |
| data.items.offerId | integer | Yes, I am. | Minimum 1. Format int64 | Currently available to purchase item ID, from the item list. |
| 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.requestedQuantity | integer | Yes, I am. | Minimum 0. Format int64 | The number of order items requested. |
| data.items.deliveredQuantity | integer | Yes, I am. | Minimum 0. Format int64 | Quantity delivered. |
| data.items.durationDays | integer | Yes, I am. | Minimum 0. Format int64 | (a) The number of days of the period. The corresponding expiration rules in the commodity/instance capabilities must be met. |
| data.items.unitPriceCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.totalAmountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.pricingSource | string | Yes, I am. | — | Price source: customer price, retail price. |
| 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.instanceIds | integer | Yes, I am. | — | My instance ID array, 1-100 items per instance. Any invalid instance will be rejected. |
| data.items.errorCode | string | Yes, I am. | — | Cause by cause: OUT_OF_STOCK, SERVICE_UNAVAILABLE, RESULT_UNCONFIRMED, FULFILLMENT_FAILED. Success is an empty string. |
| data.items.errorMessage | string | Yes, I am. | — | (b) The reasons for failures in user security. Success is an empty string. |
| data.items.nextAction | string | Yes, I am. | — | check_inventory, query_order, contact_support; Success is an empty string. |
| 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.source | string | Yes, I am. | console / admin / api | Order Source: User Console, Backend Management, Open API |
| data.operationId | integer | No. | Minimum 1. Format int64 | (a) The associated charge transaction ID. Unrelated time omitted |
| data.clientOperationNo | string | No. | — | (a) The customer business number associated with the charge-based transaction. Unrelated time omitted |

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

## Errors and Retry

When the HTTP status code is 200 and the API business code is 200, it means that delivery was successful, partially delivered, or received pending confirmation, and data.status must be read. Determine the procurement failure returns HTTP 200, distinguished by the business code 10702 (insufficient inventory) or 10707 (service unavailable, contact administrator), and retains the original order number, item-by-item reason, and fund settlement result in data. The order query is successful but returns HTTP 200. Timeout or 500 First query the original clientOrderNo/clientOperationNo. Do not replace numbers in duplicate transactions. When the same numbering is used for different parameters, the HTTP status code is 200 and the API operation code is 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);}
