> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# addonAssociatedEntities

> Get the latest associated entities of an addon



**query** `addonAssociatedEntities(input: AddonAssociatedEntitiesInput!): AddonAssociatedEntities!`

## Arguments

**`input`**: `AddonAssociatedEntitiesInput!` (required)

Query associated entities input

## Returns

`AddonAssociatedEntities!`

**`packageGroups`**: `[AddonAssociatedPackageGroup!]!`

List of package groups that have this addon

---

**`plans`**: `[AddonAssociatedPlan!]!`

List of published or draft plans

## Examples

```graphql Query
query AddonAssociatedEntities($input: AddonAssociatedEntitiesInput!) {
  addonAssociatedEntities(input: $input) {
    packageGroups {
      displayName
      packageGroupId
    }
    plans {
      displayName
      refId
      status
      versionNumber
    }
  }
}
```

```json Variables
{
  "input": {
    "environmentId": "string",
    "refId": "string"
  }
}
```

```json Response
{
  "data": {
    "addonAssociatedEntities": {
      "packageGroups": [
        {
          "displayName": "string",
          "packageGroupId": "string"
        }
      ],
      "plans": [
        {
          "displayName": "string",
          "refId": "string",
          "status": "ARCHIVED",
          "versionNumber": 1.5
        }
      ]
    }
  }
}
```


## Related topics

- [AddonAssociatedEntities](https://docs.stigg.io/graphql-reference/types/AddonAssociatedEntities.md)
- [AddonAssociatedEntitiesInput](https://docs.stigg.io/graphql-reference/types/AddonAssociatedEntitiesInput.md)
- [List custom currency associated entities](https://docs.stigg.io/api-reference/custom-currencies/list-custom-currency-associated-entities.md)
- [Create an addon](https://docs.stigg.io/api-reference/addons/create-an-addon.md)
- [AddonAssociatedPlan](https://docs.stigg.io/graphql-reference/types/AddonAssociatedPlan.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.