---
updatedAt: 2025-06-11T00:45:10.000Z
agentTools:
  projectIndex: https://docs.netpay.com.mx/llms.txt
---

# Update Plan

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-sandbox-netpay-loop",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://gateway-154.netpaydev.com/gateway-ecommerce"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v3/plans/{plan-id}": {
      "put": {
        "summary": "Update Plan",
        "description": "",
        "operationId": "update-plan",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "SecretKey",
            "schema": {
              "type": "string",
              "default": "SecretKey"
            }
          },
          {
            "name": "plan-id",
            "in": "path",
            "description": "Identificador del plan",
            "schema": {
              "type": "string",
              "default": "3_OoILATPJVhXP9xd9qw66b9OvwmcN"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "amount",
                  "currency",
                  "frecuency",
                  "interval",
                  "name",
                  "expiryCount",
                  "trialDays",
                  "variableAmount",
                  "dayStartPayment",
                  "identifier"
                ],
                "properties": {
                  "amount": {
                    "type": "number",
                    "description": "Monto o precio base del plan",
                    "default": 300,
                    "format": "double"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Divisa",
                    "default": "MXN"
                  },
                  "frecuency": {
                    "type": "integer",
                    "description": "Número de veces que se cobrará el plan según el intervalo de tiempo especificado",
                    "default": 1,
                    "format": "int32"
                  },
                  "interval": {
                    "type": "string",
                    "description": "Intervalo de tiempo en el que se cobrará el plan (DAILY, WEEKLY, MONTHLY, YEARLY)",
                    "default": "MONTHLY"
                  },
                  "name": {
                    "type": "string",
                    "description": "Nombre del plan",
                    "default": "Nuevo Plan 2 mejorado"
                  },
                  "expiryCount": {
                    "type": "integer",
                    "description": "Número de veces que se cobrará la suscripción",
                    "default": 12,
                    "format": "int32"
                  },
                  "trialDays": {
                    "type": "integer",
                    "description": "Días de prueba del plan",
                    "default": 0,
                    "format": "int32"
                  },
                  "variableAmount": {
                    "type": "boolean",
                    "description": "Bandera que indica si el plan es de monto variable o no",
                    "default": false
                  },
                  "dayStartPayment": {
                    "type": "integer",
                    "default": 1,
                    "format": "int32"
                  },
                  "identifier": {
                    "type": "string",
                    "description": "Identificador del plan (definido por el comercio)",
                    "default": "gimnasio-plan-2"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "amount": 720,
                    "currency": "MXN",
                    "frecuency": 1,
                    "interval": "MONTHLY",
                    "name": "Colegiatura Semestral Preparatoria (update)",
                    "expiryCount": 6,
                    "trialDays": 0,
                    "variableAmount": false,
                    "dayStartPayment": 1,
                    "identifier": "planid-colegiatura-0000"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": \"3_OoILATPJVhXP9xd9qw66b9OvwmcN\",\n    \"name\": \"Colegiatura Semestral Preparatoria (update)\",\n    \"amount\": 720.0,\n    \"currency\": \"MXN\",\n    \"interval\": \"MONTHLY\",\n    \"frecuency\": 1,\n    \"trialDays\": 0,\n    \"expiryCount\": 6,\n    \"active\": true,\n    \"variableAmount\": false,\n    \"selfRetries\": false,\n    \"selfRenewal\": false,\n    \"terminalView\": false,\n    \"deprecated\": false,\n    \"dayStartPayment\": 1,\n    \"identifier\": \"planid-colegiatura-0000\",\n    \"nextBillingStart\": null,\n    \"createdAt\": \"2021-11-22T20:55:51.000+0000\",\n    \"subscriptions\": []\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "3_OoILATPJVhXP9xd9qw66b9OvwmcN"
                    },
                    "name": {
                      "type": "string",
                      "example": "Colegiatura Semestral Preparatoria (update)"
                    },
                    "amount": {
                      "type": "integer",
                      "example": 720,
                      "default": 0
                    },
                    "currency": {
                      "type": "string",
                      "example": "MXN"
                    },
                    "interval": {
                      "type": "string",
                      "example": "MONTHLY"
                    },
                    "frecuency": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "trialDays": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "expiryCount": {
                      "type": "integer",
                      "example": 6,
                      "default": 0
                    },
                    "active": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "variableAmount": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "selfRetries": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "selfRenewal": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "terminalView": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "deprecated": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "dayStartPayment": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "identifier": {
                      "type": "string",
                      "example": "planid-colegiatura-0000"
                    },
                    "nextBillingStart": {},
                    "createdAt": {
                      "type": "string",
                      "example": "2021-11-22T20:55:51.000+0000"
                    },
                    "subscriptions": {
                      "type": "array"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```