> ## 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.

# setPackagePricing

> Set package pricing



**mutation** `setPackagePricing(input: PackagePricingInput!): PackagePrice!`

## Arguments

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

Package Pricing Input

## Returns

`PackagePrice!`

**`packageId`**: `String!`

The package id of the price

---

**`pricingType`**: `PricingType!`

The pricing type of the package price

## Examples

```graphql Mutation
mutation SetPackagePricing($input: PackagePricingInput!) {
  setPackagePricing(input: $input) {
    packageId
    pricingType
  }
}
```

```json Variables
{
  "input": {
    "environmentId": "string",
    "packageId": "string",
    "pricingType": "CUSTOM"
  }
}
```

```json Response
{
  "data": {
    "setPackagePricing": {
      "packageId": "string",
      "pricingType": "CUSTOM"
    }
  }
}
```


## Related topics

- [PackagePricingTypeNotSetError](https://docs.stigg.io/graphql-reference/types/PackagePricingTypeNotSetError.md)
- [Usage-based pricing models](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/usage-based-pricing-models.md)
- [PackagePricingInput](https://docs.stigg.io/graphql-reference/types/PackagePricingInput.md)
- [setCompatiblePackageGroups](https://docs.stigg.io/graphql-reference/mutations/setCompatiblePackageGroups.md)
- [setPackageGroupAddons](https://docs.stigg.io/graphql-reference/mutations/setPackageGroupAddons.md)


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