{
  "opencollection": "1.0.0",
  "info": {
    "name": "GlitchTip Accept Stripe API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Stripe",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Stripe Products",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.glitchtip.com/api/0/stripe/products/",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List Stripe Products"
        },
        {
          "info": {
            "name": "Get Stripe Subscription",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.glitchtip.com/api/0/stripe/subscriptions/:organization_slug/",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get Stripe Subscription"
        },
        {
          "info": {
            "name": "Create Stripe Session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.glitchtip.com/api/0/stripe/organizations/:organization_slug/create-stripe-subscription-checkout/",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create Stripe Checkout, send to client for redirecting to Stripe\nSee https://stripe.com/docs/api/checkout/sessions/create"
        },
        {
          "info": {
            "name": "Stripe Billing Portal Session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.glitchtip.com/api/0/stripe/organizations/:organization_slug/create-billing-portal/",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "See https://stripe.com/docs/billing/subscriptions/integrating-self-serve-portal"
        },
        {
          "info": {
            "name": "Stripe Create Subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.glitchtip.com/api/0/stripe/subscriptions/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Stripe Create Subscription"
        },
        {
          "info": {
            "name": "Subscription Events Count For Period",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.glitchtip.com/api/0/stripe/subscriptions/:organization_slug/events_count/period/",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "periods_ago",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Subscription Events Count For Period"
        },
        {
          "info": {
            "name": "Subscription Events Count Daily",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.glitchtip.com/api/0/stripe/subscriptions/:organization_slug/events_count/daily/",
            "params": [
              {
                "name": "organization_slug",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Subscription Events Count Daily"
        }
      ]
    }
  ],
  "bundled": true
}