Update subscription status · GPT Actions for ChatGPT | Prompt Studio
    1. ChatGPT
    2. GPT Actions
    3. Update subscription status
    ChatGPT · GPT ActionsFacturación

    Update subscription status

    Moves a subscription through its statuses.

    by Prompt Studio

    openapisubscriptions

    License: MITView original

    Contents

    Where it goes: GPT → Configurar → Acciones → Esquema

    {
      "openapi": "3.1.0",
      "info": {
        "title": "Cambiar estado de suscripción",
        "version": "1.0.0",
        "description": "Acción de GPT para suscripciones. Cambia el servidor por la URL de tu API."
      },
      "servers": [
        {
          "url": "https://api.tu-dominio.com/v1"
        }
      ],
      "paths": {
        "/subscriptions/{id}/status": {
          "patch": {
            "operationId": "updateSubscriptionStatus",
            "summary": "Cambia el estado de suscripción",
            "x-openai-isConsequential": true,
            "parameters": [
              {
                "name": "id",
                "in": "path",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            ],
            "requestBody": {
              "required": true,
              "content": {
                "application/json": {
                  "schema": {
                    "type": "object",
                    "required": [
                      "status"
                    ],
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "activa",
                          "en pausa",
                          "cancelada"
                        ]
                      },
                      "note": {
                        "type": "string",
                        "description": "Motivo del cambio"
                      }
                    }
                  }
                }
              }
            },
            "responses": {
              "200": {
                "description": "Actualizado",
                "content": {
                  "application/json": {
                    "schema": {
                      "$ref": "#/components/schemas/Subscription"
                    }
                  }
                }
              },
              "404": {
                "description": "No encontrado"
              }
            }
          }
        }
      },
      "components": {
        "schemas": {
          "Subscription": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "customerId": {
                "type": "string"
              },
              "plan": {
                "type": "string"
              },
              "price": {
                "type": "number"
              },
              "renewsOn": {
                "type": "string",
                "format": "date"
              },
              "status": {
                "type": "string",
                "enum": [
                  "activa",
                  "en pausa",
                  "cancelada"
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        },
        "securitySchemes": {
          "bearerAuth": {
            "type": "http",
            "scheme": "bearer"
          }
        }
      },
      "security": [
        {
          "bearerAuth": []
        }
      ]
    }
    

    More in GPT Actions

    • Weather by city

      Minimal Action example with an API key in the header.

    • Create CRM lead

      Registers contacts from the chat using OAuth.

    • Schedule meeting

      Creates events with guests and time zone.

    • Send to webhook

      Posts the GPT output to any URL (Zapier, Make, n8n).

    • Search contacts

      Lets your GPT search contacts by text and status.

    • Get contact

      Fetches one contact by ID.

    See all in GPT Actions (504) →

    Your ultimate collection of AI prompts. Gather inspiration, explore examples, and create with AI.

    Main hubs

    • Prompts
    • Images
    • Videos
    • Generate Videos
    • Templates
    • Animations
    • Prices
    • About
    • Affiliate

    Browse by type

    • Component kits
    • Image Tags
    • Video Tags
    • Webs

    Popular topics

    • Music
    • Portfolio
    • Gaming
    • Travel
    • Nano Banana Pro

    Legal

    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Licenses Policy
    • Refund Policy
    • Affiliate Program Terms
    • Crowdfunding Terms

    Magzin LLC, 800 Third Avenue Associates, New York, NY, 10022, United States

    © 2026 Prompt Studio by Magzin. All rights reserved.