---
title: "Actualizar"
method: PUT
path: "/plans/{id}"
tags: ["Planes"]
---

# Actualizar

`PUT /plans/{id}`

## Request

- Base URL: `https://api.ventipay.com/v1`
- URL: `https://api.ventipay.com/v1/plans/{id}`
- Auth: HTTP bearer

Actualiza un objeto `Plan`. Cualquier parámetro que no se proporcione no se modificará.

## Path parameters

- `id` string, required

## Request body

- object
  - `active` boolean
  - `billing_cycle_anchor` 'now' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31'
  - `cancel_url` string
  - `cancel_url_method` 'get' | 'post'
  - `custom_fields` string[]
  - `description` string
  - `duration` integer
  - `metadata` string, json
  - `name` string
  - `proration_behavior` 'create_prorations' | 'full' | 'none'
  - `success_url` string
  - `success_url_method` 'get' | 'post'
  - `trial_days` integer

---

[API](https://skmtc.dev/ventipay/apis/suscripciones.md) - [All operations](https://skmtc.dev/ventipay/apis/suscripciones/llms.txt) - [OpenAPI document](https://skmtc.dev/ventipay/apis/suscripciones/revisions/8189bbaa5f79?raw)
