# Monthly Cloud Phone Purchase

Use this flow to purchase a 30-day Cloud Phone term. **Activation charges the team wallet.** The caller must have **Fees / Payment Management** permission; otherwise activation returns `99012`.

Local API requires MoreLogin desktop client v2.65.0 or later. Open API has no desktop-client dependency.

## Purchase flow

```mermaid
sequenceDiagram
    participant App as Your application
    participant API as MoreLogin API
    participant Billing as Wallet and order service
    participant Phone as Cloud Phone service
    App->>API: 1. Query monthly SKUs
    API-->>App: skuId and 30-day price
    App->>API: 2. Create Cloud Phone
    API->>Phone: Provision instance
    API-->>App: Inactive Cloud Phone IDs (no charge)
    App->>API: 3. Activate monthly phones
    API->>Billing: Validate order and charge or restore
    Billing-->>API: Paid entitlement
    API->>Phone: Activate 30-day term
    API-->>App: orderId and ordered results
    App->>API: 4. Query phone state
    API-->>App: Billing, expiry, and readiness state
```

## API paths

| Step | Open API | Local API |
|  --- | --- | --- |
| 1. Query plans | [`GET /cloudphone/monthly/skus`](/api-reference/cloud-phone/open-api#operation/listMonthlyCloudPhoneSkus) | [`GET /api/cloudphone/monthly/skus`](/api-reference/cloud-phone/local-api#operation/listMonthlyCloudPhoneSkus) |
| 2. Create inactive phones | [`POST /cloudphone/create`](/api-reference/cloud-phone/open-api#operation/createUsingPOST) | [`POST /api/cloudphone/create`](/api-reference/cloud-phone/local-api#operation/createUsingPOST) |
| 3. Charge and activate | [`POST /cloudphone/monthly/activate`](/api-reference/cloud-phone/open-api#operation/activateMonthlyCloudPhones) | [`POST /api/cloudphone/monthly/activate`](/api-reference/cloud-phone/local-api#operation/activateMonthlyCloudPhones) |
| 4. Query detail | [`POST /cloudphone/info`](/api-reference/cloud-phone/open-api#operation/infoUsingPOST) | [`POST /api/cloudphone/info`](/api-reference/cloud-phone/local-api#operation/infoUsingPOST) |
| 4. Query list | [`POST /cloudphone/page`](/api-reference/cloud-phone/open-api#operation/pageUsingPOST) | [`POST /api/cloudphone/page`](/api-reference/cloud-phone/local-api#operation/pageUsingPOST) |


## Billing and recovery rules

- A request may contain different monthly SKUs. Validation and charging are all-or-nothing.
- If every phone belongs to the same paid order, activation restores that paid entitlement and does not charge again.
- A `33422` response still includes the complete, request-ordered `data.results`; inspect each `status`, `expireTime`, and `errorCode`.
- After a timeout, query phone billing and expiry state before retrying. Do not assume a missing response means payment failed.
- Activation does not power on the phones and does not enable automatic renewal.


See [Error Codes](/api-reference/getting-started/error-codes) for the documented business and common errors.