# PricePlanRateEntryDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

DTO for a rate entry within a price plan. Targets either a single SKU (`skuCode`)
or a catch-all billing group (`skuGroupCode`); exactly one is set.

## Fields
- `id` (string(uuid)): The entry's identifier within the plan. Leave it out on a new entry.
- `skuCode` (string): Registered SKU code this entry prices. Null when `skuGroupCode` is set. Conditional: When SkuCode is not empty. Max length: 64. (nullable)
- `skuGroupCode` (string): Registered billing-group code this catch-all entry prices. Null when `skuCode` is set. Conditional: When SkuGroupCode is not empty. Max length: 64. (nullable)
- `displayNameOverride` (string): An optional name for the invoice line in place of the SKU's own display name. (nullable)
- `pricingStrategy` ([MerchantBillingPricingStrategy](https://docs.winkpg.io/docs/api/models/MerchantBillingPricingStrategy.md)) required: How the entry's charge is calculated. (nullable)
  Values:
  - `Fixed`: A fixed amount per billing period regardless of usage quantity.
  - `PerUnit`: A per-unit rate multiplied by the usage quantity.
  - `Tiered`: Per-unit rates that vary by quantity brackets (tiers).
  - `FixedPlusPercentage`: A fixed base amount plus a percentage of the transaction amount or volume.
- `buyRate` (number(double)): The amount the reseller pays upstream, in the plan's currency: per unit for a per-unit entry, per billing period for a fixed entry. Conditional: When BuyRate is not null. Must be >= 0. (nullable)
- `sellRate` (number(double)): The amount the merchant is charged, in the plan's currency: per unit for a per-unit entry, per billing period for a fixed entry. Conditional: When SellRate is not null. Must be >= 0. (nullable)
- `tiers` (array<[PricingTierDto](https://docs.winkpg.io/docs/api/models/PricingTierDto.md)>): The quantity brackets of a tiered entry. Conditional: When Tiers is not null and Tiers.Count > 0. (nullable)
  Fields of each item:
  - `fromQuantity` (integer(int64)): The first billable unit in this bracket, inclusive. Null starts the bracket at zero. Conditional: When FromQuantity is not null. Must be >= 0. (nullable)
  - `toQuantity` (integer(int64)): The last billable unit in this bracket, inclusive. Null leaves the final bracket unbounded. Conditional: When ToQuantity is not null. Must be > 0. Conditional: When FromQuantity is not null and ToQuantity is not null. (nullable)
  - `buyRate` (number(double)): The amount the reseller pays upstream per unit in this bracket, in the plan's currency. Conditional: When BuyRate is not null. Must be >= 0. (nullable)
  - `sellRate` (number(double)): The amount the merchant is charged per unit in this bracket, in the plan's currency. Conditional: When SellRate is not null. Must be >= 0. (nullable)
- `fixedComponent` (number(double)): The fixed base amount of a fixed-plus-percentage entry, per billing period, in the plan's currency. Conditional: When FixedComponent is not null. Must be >= 0. (nullable)
- `percentageComponent` (number(double)): The percentage of a fixed-plus-percentage entry, as a whole percent (2.5 means 2.5%), applied to the base `percentageBase` names. Conditional: When PercentageComponent is not null. Must be >= 0. (nullable)
- `percentageBase` ([PercentagePricingBase](https://docs.winkpg.io/docs/api/models/PercentagePricingBase.md)): What the percentage of a fixed-plus-percentage entry is applied to. Conditional: When PercentageBase is not null. (nullable)
  Values:
  - `TransactionAmount`: Deprecated. Prices the period's total amount, exactly as TotalVolume does. Still accepted so stored rate entries keep validating; choose TotalVolume instead.
  - `TotalVolume`: Percentage applied to the total amount recorded for the billing period. Refunds and reversals add to the base like sales.
  - `NetVolume`: Percentage applied to the period's amount net of refunds and reversals: a SKU that reduces volume (a refund or a reversal) subtracts its amount instead of adding it, and the base never goes below zero. A single SKU that does not reduce volume prices exactly as TotalVolume; a single SKU that does prices a zero base.
- `includedQuantity` (integer(int64)): The number of units each billing period that are free before the entry charges. Conditional: When IncludedQuantity is not null. Must be >= 0. (nullable)
- `minimumCharge` (number(double)): The least the entry charges the merchant in a billing period, in the plan's currency. Conditional: When MinimumCharge is not null. Must be >= 0. (nullable)
- `maximumCharge` (number(double)): The most the entry charges the merchant in a billing period, in the plan's currency. Conditional: When MaximumCharge is not null. Must be >= 0. Conditional: When MinimumCharge is not null and MaximumCharge is not null. (nullable)
- `sortOrder` (integer(int32)): The position of the entry's line on the invoice, lowest first. (nullable)
- `isEnabled` (boolean): Whether the entry charges. A disabled entry stays on the plan and charges nothing. (nullable)

## See also

- [All documentation](https://docs.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
