---
title: "Alterar Plano da Assinatura"
method: POST
path: "/subscriptions/{id}/change_plan/{plan_identifier}"
---

# Alterar Plano da Assinatura

`POST /subscriptions/{id}/change_plan/{plan_identifier}`

Altera o Plano de uma Assinatura. Uma Fatura cobrando a mudança de plano poderá ser gerada para o cliente.

## Path parameters

- `id` string, required
- `plan_identifier` string, required

## Request body

- object
  - `payable_with` string[] — Métodos de pagamento disponíveis para esta assinatura (bank_slip, credit_card, pix ou all). Aceita apenas os métodos disponíveis do plano especificado em plan_identifier.

## Response `200`

200

- object
  - `id` string
  - `suspended` boolean
  - `plan_identifier` string
  - `price_cents` integer
  - `currency` string
  - `features` object
    - `Trimestral` object
      - `name` string
      - `value` integer
  - `customer_name` string
  - `customer_email` string
  - `cycled_at` string
  - `credits_min` integer
  - `credits_cycle` unknown
  - `payable_with` string
  - `ignore_due_email` boolean
  - `max_cycles` integer
  - `cycles_count` integer
  - `recent_invoices` object[]
    - `id` string
    - `due_date` string
    - `status` string
    - `total` string
    - `secure_url` string
  - `subitems` object[]
    - `id` string
    - `description` string
    - `quantity` integer
    - `price_cents` integer
    - `recurrent` boolean
    - `price` string
    - `total` string
  - `logs` object[]
    - `id` string
    - `description` string
    - `notes` string
    - `subscription_changes` string
    - `created_at` string
  - `custom_variables` object[]
    - `name` string
    - `value` unknown
  - `expires_at` unknown
  - `created_at` string
  - `updated_at` string
  - `customer_id` string
  - `plan_name` string
  - `customer_ref` string
  - `plan_ref` string
  - `active` boolean
  - `two_step` boolean
  - `suspend_on_invoice_expired` boolean
  - `in_trial` unknown
  - `credits` integer
  - `credits_based` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/iugu/apis/tokens-de-api.md) · [All operations](https://skmtc.net/iugu/apis/tokens-de-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/iugu/tokens-de-api/versions/4590fc729d1e/schema)
