# TransactionStatisticsDto

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

Count and total amount over every transaction matching a filter, grouped by transaction type,
by payment type and by result code.

## Fields
- `transactionCount` (integer(int64)): The number of matching transactions folded into the three groupings.
- `totalAmount` (number(double)): The sum of the matching transactions' totals.
- `truncated` (boolean): Whether the scan stopped at `MaxScannedTransactions`  before the filtered set ran out, in which case every figure is over a prefix of that set.
- `byTransactionType` (array<[TransactionStatisticsBucketDto](https://devportal.demo.winkpg.io/docs/api/models/TransactionStatisticsBucketDto.md)>): Count and total per transaction type, keyed by the `TransactionType` member name  (`Sale`, `Authorization`, `Return`, ...), ordered by descending count. (nullable)
  Fields of each item:
  - `key` (string): The bucket key: the enum member name of the grouping this bucket belongs to. (nullable)
  - `count` (integer(int64)): The number of matching transactions in the bucket.
  - `totalAmount` (number(double)): The sum of the bucket's transaction totals.
- `byPaymentType` (array<[TransactionStatisticsBucketDto](https://devportal.demo.winkpg.io/docs/api/models/TransactionStatisticsBucketDto.md)>): Count and total per payment method, keyed by the `PaymentMethodsGranular` member name  (`Visa`, `MasterCard`, `Check`, `AlternativePayment`, ...), resolved by  the same rule every transaction read surface uses, ordered by descending count. (nullable)
  Fields of each item:
  - `key` (string): The bucket key: the enum member name of the grouping this bucket belongs to. (nullable)
  - `count` (integer(int64)): The number of matching transactions in the bucket.
  - `totalAmount` (number(double)): The sum of the bucket's transaction totals.
- `byResultCode` (array<[TransactionStatisticsBucketDto](https://devportal.demo.winkpg.io/docs/api/models/TransactionStatisticsBucketDto.md)>): Count and total per gateway result, keyed by the `ResultCode` member name (`Ok`,  `Declined`, ...), ordered by descending count. A transaction that recorded no response  at all falls in the bucket keyed `NoResultKey`. (nullable)
  Fields of each item:
  - `key` (string): The bucket key: the enum member name of the grouping this bucket belongs to. (nullable)
  - `count` (integer(int64)): The number of matching transactions in the bucket.
  - `totalAmount` (number(double)): The sum of the bucket's transaction totals.

## See also

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