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

# Package

> The package pricing is a common price model for example APIs. Customers such as Twillio use package to apply fee units and consumption pricing.

Package price model is another simply yet powerful price model to apply. If you want to apply a fee amount on a range of units. You also have the ability to offer free units.

The *package* price model allow setting `feeAmount` and a `packageQuantity`. The `packageQuantity` is a quantity supporting decimals. The *package* price model will always round up the `packageQuantity`.

## Fee amount

By setting the fee amount, any *quantity* which is not 0, will result in application of the `feeAmount` amount.

**Example: settings `feeAmount` to 1500 USD with `packageQuantity` to 100**
A quantity of 305 would apply the following price:

> from 1 to 100 (perUnit) = 1500 USD<br />
> from 100 to 200 (perUnit) = 1500 USD<br />
> from 200 to 300 (perUnit) = 1500 USD<br />
> from 300 to 400 (perUnit) = 1500 USD<br />
> totals: 6000 USD

Hint: When creating a `price`, a request body may be as follows:

```json theme={null}
...
"priceModel": "package",
"pricing": {
    "usd": {
        "feeAmount": 1500,
        "packageQuantity" : 100.0000
    }
}
...
```

<Info>Only one tier per currency is supported for package pricing.</Info>
