# SplitTenderContextDto

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

The split-tender membership of a single transaction, plus the running balance the group has
collected so far. Lets a caller render "tender 2 of 3, $40.00 still owed" without fetching and
summing every member of the group itself.

## Fields
- `splitTenderGroupId` (string(uuid)): Identifier shared by every tender in the group.
- `sequence` (integer(int32)): 1-based position of the transaction this context was assembled for.
- `role` ([SplitTenderRole](https://docs.winkpg.io/docs/api/models/SplitTenderRole.md)): Whether the transaction this context was assembled for is the group's primary tender or a continuation.
  Values:
  - `Primary`: The first tender in the group: the sale that declared the order total, or the transaction whose partial approval left the shortfall. Exactly one member of a group holds this role, and it always carries SplitTenderSequence = 1.
  - `Continuation`: A follow-up tender collecting part of the remaining balance. A group may hold several, ordered by SplitTenderSequence (2, 3, ...). A continuation the issuer partially approves is kept for its approved amount without waiting for a decision, and the group stays open for another continuation to collect the rest, up to the merchant's tender maximum. For a merchant that does not accept partial approvals, it is voided instead.
- `totalRequestedAmount` (number(double)): The order total the group is collecting toward, in major currency units: the order total declared on the primary tender's create request when one was declared, otherwise the amount originally requested on the primary tender. When a surcharged payment was partially approved and the split tender opened on it, this is the amount requested less its surcharge, and each further payment is surcharged on its own share.
- `totalApprovedAmount` (number(double)): What the tenders in the group have collected, in major currency units: each card's approved amount, less anything reversed or refunded. A voided or declined tender, and one still being authorized, contributes nothing. When the order total was declared with `requestedSplitTenderTotalExcludesFees`, or the split tender opened on a surcharged payment that was partially approved, each payment counts without its own fee (its surcharge, or a convenience fee included in its total), and `feesAmount` states the fees; otherwise a fee counts toward the order total like the rest of the payment.
- `remainingAmount` (number(double)): What is still owed, in major currency units: `totalRequestedAmount` minus `totalApprovedAmount`. Zero once the group has collected the full order total. While another payment in the group is still being authorized, an additional payment for this full amount is refused until that payment resolves. When a check payment in a completed group is returned by the bank, this is the amount the return left unpaid; the group does not reopen for further payments. Submit this as the next payment's amount rather than working it out from the partial approval's requested and approved amounts or its balance due, which include any surcharge on the whole order.
- `tenderCount` (integer(int32)): Number of tenders currently in the group, including voided ones (they remain part of the audit trail).
- `occupiedTenderCount` (integer(int32)): Number of tenders that collected, or are collecting, something: the primary plus every other tender holding an amount above zero. This is what the merchant's maximum counts, so a declined or voided attempt leaves room for another payment.
- `maxTenders` (integer(int32)): The most tenders the merchant allows in one split-tender group, the primary included.
- `returnedAmount` (number(double)): What the bank took back from the group after it completed, in major currency units: the sum of every check payment returned (for example, for insufficient funds) once the group had already collected its order total. Already taken off `totalApprovedAmount` and added back to `remainingAmount`. Null when no payment in the group has been returned. (nullable)
- `dualPricingCardPricedAmount` (number(double)): Present only when the merchant runs dual pricing on split tenders, so that each payment in the group is priced on its own share: a card pays the card price for its share, and a cash or bank payment pays the cash price. The group's amounts are then stated at the cash price: `totalRequestedAmount` is the order's cash price, and `totalApprovedAmount` and `remainingAmount` count each payment charged the card price at its cash price (what it was charged less the difference between the two prices). This is the part of `totalApprovedAmount` that payments charged the card price cover, at the cash price, in major currency units; zero when none has been. Send an additional payment for the cash price you want to collect: a card payment is charged the card price on it. Null for every other group. (nullable)
- `feesAmount` (number(double)): Present only when the order total was declared with `requestedSplitTenderTotalExcludesFees` set to `true`, or the split tender opened on a surcharged payment that was partially approved. The group's amounts then exclude fees: `totalApprovedAmount` and `remainingAmount` count each payment at what it was approved for less its surcharge and less a convenience fee included in its total. This is those fees, in major currency units: what the payments were charged and still hold, less `totalApprovedAmount`. A refund lowers both. A convenience fee charged as its own transaction is not included. Zero when no payment carried a fee; null for every other group. (nullable)

## See also

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