{
  "opencollection": "1.0.0",
  "info": {
    "name": "Lago API documentation Add_ons Plans API",
    "version": "1.15.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Plans",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Lago List all plans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getlago.com/api/v1/plans",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of records per page."
              }
            ]
          },
          "docs": "This endpoint retrieves all existing plans."
        },
        {
          "info": {
            "name": "Lago Create a plan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getlago.com/api/v1/plans",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint creates a plan with subscription and usage-based charges. It supports flexible billing cadence (in-advance or in-arrears) and allows for both recurring and metered charges."
        },
        {
          "info": {
            "name": "Lago Retrieve a plan",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getlago.com/api/v1/plans/:code",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path",
                "description": "The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance."
              }
            ]
          },
          "docs": "This endpoint retrieves a specific plan."
        },
        {
          "info": {
            "name": "Lago Update a plan",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.getlago.com/api/v1/plans/:code",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path",
                "description": "The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint updates a specific plan with subscription and usage-based charges. It supports flexible billing cadence (in-advance or in-arrears) and allows for both recurring and metered charges."
        },
        {
          "info": {
            "name": "Lago Delete a plan",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.getlago.com/api/v1/plans/:code",
            "params": [
              {
                "name": "code",
                "value": "",
                "type": "path",
                "description": "The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance."
              }
            ]
          },
          "docs": "This endpoint deletes a specific plan. Note that this plan could be associated with active subscriptions."
        }
      ]
    }
  ],
  "bundled": true
}