# CreatePriceTier

## Example Usage

```typescript
import { CreatePriceTier } from "@flexprice/sdk/sdk/models";

let value: CreatePriceTier = {
  unitAmount: "<value>",
};
```

## Fields

| Field                                                                                                                                                                                                                                                                               | Type                                                                                                                                                                                                                                                                                | Required                                                                                                                                                                                                                                                                            | Description                                                                                                                                                                                                                                                                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `flatAmount`                                                                                                                                                                                                                                                                        | *string*                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                  | flat_amount is the flat amount for the given tier (optional)<br/>Applied on top of unit_amount*quantity. Useful for cases like "2.7$ + 5c"                                                                                                                                          |
| `unitAmount`                                                                                                                                                                                                                                                                        | *string*                                                                                                                                                                                                                                                                            | :heavy_check_mark:                                                                                                                                                                                                                                                                  | unit_amount is the amount per unit for the given tier                                                                                                                                                                                                                               |
| `upTo`                                                                                                                                                                                                                                                                              | *number*                                                                                                                                                                                                                                                                            | :heavy_minus_sign:                                                                                                                                                                                                                                                                  | up_to is the quantity up to which this tier applies. It is null for the last tier.<br/>IMPORTANT: Tier boundaries are INCLUSIVE.<br/>- If up_to is 1000, then quantity less than or equal to 1000 belongs to this tier<br/>- This behavior is consistent across both VOLUME and SLAB tier modes |