# BillingRunLineItemDto

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

Output DTO for a single billing line item charge.

## Fields
- `id` (string(uuid)): (nullable)
- `skuCode` (string): (nullable)
- `displayName` (string): (nullable)
- `pricingStrategy` ([MerchantBillingPricingStrategy](https://docs.winkpg.io/docs/api/models/MerchantBillingPricingStrategy.md)): (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.
- `rawQuantity` (integer(int64)): (nullable)
- `billableQuantity` (integer(int64)): (nullable)
- `percentageAmountBase` (number(double)): For a fixed plus percentage line, the amount the percentage was taken of: the SKU's or billing group's total recorded amount for the period, or, on a net volume entry, that total less refunds and reversals, never below zero. A decimal amount in the major unit of the currency the merchant was rated in (dollars for USD, not cents), summed from the period's recorded usage. The billing run does not round it. The line's amount is `fixedComponent + percentageAmountBase * percentageComponent / 100`, taking both rates from the price plan's rate entry (`percentageComponent` is a whole percent), rounded half away from zero to the currency's minor unit. That rounding of the computed amount is the only rounding step. A minimum or maximum charge then applies to the sell amount, as `minimumChargeApplied` and `maximumChargeApplied` report. Null for every other pricing strategy, and on a line priced before it was recorded. (nullable)
- `percentageGrossAmountBase` (number(double)): For a fixed plus percentage line, the total amount its usage recorded for the period before refunds and reversals were netted out. A decimal amount in the major unit of the currency the merchant was rated in (dollars for USD, not cents), as `percentageAmountBase` is, and likewise not rounded. Equal to `percentageAmountBase` except on a net volume entry. The percentage is always taken of `percentageAmountBase`, so reconstruct a billed percentage from that field; this one tells a line netted to zero apart from one whose usage recorded no amount. Null for every other pricing strategy, and on a line priced before it was recorded. (nullable)
- `unitBuyRate` (number(double)): (nullable)
- `unitSellRate` (number(double)): (nullable)
- `buyAmount` (number(double)): (nullable)
- `sellAmount` (number(double)): (nullable)
- `minimumChargeApplied` (boolean): (nullable)
- `maximumChargeApplied` (boolean): (nullable)
- `isCustomItem` (boolean): (nullable)
- `customChargeType` ([CustomChargeType](https://docs.winkpg.io/docs/api/models/CustomChargeType.md)): (nullable)
  Values:
  - `OneTime`: Charged once only, for the billing period of the month the assignment started.
  - `Monthly`: Charged every monthly billing period.
  - `Quarterly`: Charged every third billing period, counted from the month the assignment started.
  - `Annual`: Charged every twelfth billing period, counted from the month the assignment started.
- `sortOrder` (integer(int32)): (nullable)

## See also

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