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

# Cancel 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}/cancel": {
      "put": {
        "summary": "Cancel Plan",
        "description": "",
        "operationId": "cancel-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
          }
        ],
        "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\": false,\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": false,
                      "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
}
```