AutoGPT Agent

AutoGPT Agent · GPT アクション

Subscription status checker (via Make)

  • POST /9t16wenarmzcahanu2nuv0wepv1try9xCheck Stripe subscription status by email

    Check whether a user has an active Stripe subscription using only their email address.

元の API スキーマ
{
  "openapi": "3.1.1",
  "info": {
    "title": "Subscription status checker (via Make)",
    "version": "1.1.1"
  },
  "servers": [
    {
      "url": "https://hook.us1.make.com"
    }
  ],
  "paths": {
    "/9t16wenarmzcahanu2nuv0wepv1try9x": {
      "post": {
        "operationId": "checkSubscriptionByEmail",
        "summary": "Check Stripe subscription status by email",
        "description": "Check whether a user has an active Stripe subscription using only their email address.",
        "x-openai-isConsequential": false,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailCheckRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription status response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionStatusResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EmailCheckRequest": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "User email address to check in Stripe"
          },
          "include_past_due": {
            "type": "boolean",
            "default": false,
            "description": "Count `past_due` as active (grace period access)"
          }
        }
      },
      "SubscriptionStatusResponse": {
        "type": "object",
        "required": [
          "ok",
          "active",
          "status"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "active": {
            "type": "boolean",
            "description": "True if user should be considered \"active\""
          },
          "status": {
            "type": "string",
            "enum": [
              "incomplete",
              "incomplete_expired",
              "trialing",
              "active",
              "past_due",
              "canceled",
              "unpaid",
              "paused",
              "unknown"
            ]
          },
          "customer_id": {
            "type": "string",
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-make-apikey"
      }
    }
  }
}