# Card difference fee (cash discounting)

> How Valet adds the card difference fee on cash discounting accounts, and how refunds return it.

Valet developer docs — Reference. Web page: https://storeypos.com/valet/docs/card-difference-fee. Full reference for AI: https://storeypos.com/llms-full.txt. OpenAPI: https://storeypos.com/openapi.json.

If your account uses a card difference fee (cash discounting), Valet adds it to card payments at the percentage set on your account. You never send a percentage and a call can't change it.

- Only at a location boarded for cash discounting at Valor, and only on card sales. Gift card and store credit payments never carry a fee; traditional and dual-pricing locations add none (fee and percent null, amountCharged = amountRequested).
- The percent is always the location's boarded percent. cashDiscountPercent in a request is accepted and ignored, so a caller can never change the fee.
- Fee = (total − tipAmount) × percent, rounded to the cent: subtotal + tax + shipping, never the tip. $100.00 at 3.5% → fee $3.50, card pays $103.50.
- amounts.total stays the cash price you sent. amountRequested = cash price, cardDifferenceFee = fee, amountCharged = what the card paid.
- Terminal stations (default, "Storey adds it"): Valet sends the terminal AMOUNT = cash price + fee; the terminal is set to traditional in Valor and adds nothing. If the terminal still reports a fee of its own, the reply carries warnings: ["double_card_fee"] and the sale is flagged for Storey support. Locations Storey staff set to "The Valor terminal adds it" send the cash price and record the fee the terminal reports.
- Every sale reply carries warnings: an array of codes, empty when nothing is wrong.
- Hosted window, key entry: Valet sends amount = cash price + fee with surchargeAmount = fee, and shows the customer the card fee and card total before they pay.
- Refunds: you state the amount against the cash price. A partial refund returns no fee; the refund that completes the cash price also returns the whole fee, once (cardFeeReturned). A void reverses the whole charged amount.

Fee fields on every answer: `cardDifferenceFee`, `amountRequested`, `amountCharged`, `cardFeePercent`, and on refunds `cardFeeReturned`. See them side by side on [Sale: card](https://storeypos.com/valet/docs/sale), [Refund](https://storeypos.com/valet/docs/refund) and [Void](https://storeypos.com/valet/docs/void).

---

Previous: [Decline categories](https://storeypos.com/valet/docs/decline-categories.md)
Next: [Removed: saved cards](https://storeypos.com/valet/docs/saved-cards-removed.md)
