{
  "opencollection": "1.0.0",
  "info": {
    "name": "Neynar Action subscription API",
    "version": "3.176.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-api-key",
      "value": "{{x-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "subscription",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Process subscription upgrade with credit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.neynar.com/portal/subscription/upgrade",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Applies a subscription plan change for the current organization and returns the applied credit, charge amount, and whether the change takes effect immediately."
        },
        {
          "info": {
            "name": "Get upgrade preview with credit calculation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.neynar.com/portal/subscription/upgrade/preview",
            "params": [
              {
                "name": "newPlan",
                "value": "",
                "type": "query"
              },
              {
                "name": "productCategory",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Calculates the billing impact of changing to a new subscription plan, including available credit, charge amount, and whether the billing date or usage carryover changes."
        }
      ]
    }
  ],
  "bundled": true
}