# Get a static proxy quote

Calculate purchase or renewal quotes, without freezing balances and inventory.

The offer does not freeze funds or stocks. 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/quotes`

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. |

### purchase · application/json

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| kind | string | Yes, I am. | Fixed purchase | (a) Type of request or order: purchase, renew. The order may include other types of operations that are supported. |
| 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. |

Procurement time use `items[].durationDays` Top floor. `durationDays` For renewal only. The unit price of a commodity is the baseline cycle price, quoted in proportion to the number of days of procurement and incremented to whole points. Orders must be placed using the same set of commodities, quantity, duration and total bid.

### renew · application/json

| Field | Type | Required field | Default values / Limits | Notes |
| --- | --- | --- | --- | --- |
| kind | string | Yes, I am. | Fixed renew | (a) Type of request or order: purchase, renew. The order may include other types of operations that are supported. |
| 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. |

## Example of a request

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

purchase:

```json
{
  "kind": "purchase",
  "items": [
    {
      "offerId": 17,
      "quantity": 1,
      "durationDays": 30
    }
  ]
}
```

renew:

```json
{
  "kind": "renew",
  "instanceIds": [
    101
  ],
  "durationDays": 30
}
```

## Successful response

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

HTTP 200 · Successful response: Successful

| 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.kind | string | Yes, I am. | List purchase / renew | (a) Type of request or order: purchase, renew. The order may include other types of operations that are supported. |
| data.currency | string | Yes, I am. | Fixed CNY | Currency of the amount, the current contract is CNY. |
| data.items | object | Yes, I am. | — | (a) A breakdown of the quotation. The purchase item contains the offerId and the renewal item contains the instanceId. |
| data.items.offerId | integer | No. | Minimum 1. Format int64 | Currently available to purchase item ID, from the item list. |
| data.items.instanceId | integer | No. | Minimum 1. Format int64 | (a) The instance ID, which belongs to the current account. Group binds this ID. |
| data.items.quantity | integer | No. | Minimum 0. Format int64 | Quantity of purchases of the commodity, 1-1000. The capacity of available stock and supply also needs to be met. |
| data.items.durationDays | integer | No. | 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 | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.amountCents | integer | No. | Minimum 0. Format int64 | Entire points in renminbi |
| data.items.pricingSource | string | No. | — | Price source: customer price, retail price. |
| data.totalAmountCents | integer | Yes, I am. | Minimum 0. Format int64 | Entire points in renminbi |
| data.quotedAt | string \| null | Yes, I am. | Date-time format | Quotation time, RFC 3339. |
| data.inventoryReserved | boolean | Yes, I am. | Fixed | The quote does not retain stock, fixed to false. |

```json
{
  "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
  }
}
```

## Errors and Retry

Read request encounters business code 10713 Wait for Retry-After;500 Limited retry. If the result of the cluster creation is not known, the cluster list is consulted first. Move the same target and try again safely.

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);}
