---
title: "Change Calling Plan Immediately"
method: POST
path: "/v2/partition/{partitionId}/account/{accountId}/callingplanswap"
tags: ["Account"]
deprecated: true
---

# Change Calling Plan Immediately

`POST /v2/partition/{partitionId}/account/{accountId}/callingplanswap`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/callingplanswap`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/callingplanswap/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

DEPRECATED USE account/{accountId}/callingplan INSTEAD -- Will swap the active calling plan immediately for the specified calling plan

## Path parameters

- `accountId` string, required
- `partitionId` string, required

## Request body

- CallingPlanSwapX
  - `swapCallingPlanProductId` string
  - `newMinutesUsed` integer

## Response `200`

Successful operation

- CallingPlanX[]
  - `id` string
  - `referenceId` string
  - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'IVR' | 'ACCOUNT' | 'SPECIALTY_LINE' | 'CONTACT_CENTER'
  - `callingPlanProductId` string
  - `endDate` string, date-time
  - `startDate` string, date-time
  - `planMinutes` integer
  - `secondsRemaining` integer

## Other responses

- `400`: Invalid ID supplied
- `404`: Account or Calling Plan Product not found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
