---
updatedAt: 2026-03-12T12:10:42.000Z
agentTools:
  projectIndex: https://docs.ventipay.com/llms.txt
---

# Actualizar

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

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "servers": [
    {
      "url": "https://api.ventipay.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "info": {
    "title": "Suscripciones",
    "description": "Endpoints para gestionar suscripciones, notas de venta, planes, productos, cupones e impuestos.",
    "version": "1"
  },
  "tags": [
    {
      "name": "Planes",
      "description": "Un `Plan` es una plantilla reutilizable para crear suscripciones con configuración predefinida."
    }
  ],
  "paths": {
    "/plans/{id}": {
      "put": {
        "summary": "Actualizar",
        "description": "Actualiza un objeto `Plan`. Cualquier parámetro que no se proporcione no se modificará.",
        "operationId": "plans-update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean"
                  },
                  "billing_cycle_anchor": {
                    "type": "string",
                    "enum": [
                      "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": {
                    "type": "string"
                  },
                  "cancel_url_method": {
                    "type": "string",
                    "default": "post",
                    "enum": [
                      "get",
                      "post"
                    ]
                  },
                  "custom_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "description": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "metadata": {
                    "type": "string",
                    "format": "json"
                  },
                  "name": {
                    "type": "string"
                  },
                  "proration_behavior": {
                    "type": "string",
                    "enum": [
                      "create_prorations",
                      "full",
                      "none"
                    ]
                  },
                  "success_url": {
                    "type": "string"
                  },
                  "success_url_method": {
                    "type": "string",
                    "default": "post",
                    "enum": [
                      "get",
                      "post"
                    ]
                  },
                  "trial_days": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID del objeto",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "Planes"
        ]
      }
    }
  }
}
```