Tax and Tip Handling

Koard resolves tax settings hierarchically, and handles tips either at the time of sale or as a later adjustment.

Surcharge settings (surcharge_rate, surcharge_basis, surcharge_confirmation_required) use the same location, terminal, then account resolution order described below. See Surcharging.

Hierarchical tax defaults

tax_rate and tax_basis can be configured at three levels: the account, the location, and the terminal:

Field Meaning
tax_rate Tax percentage.
tax_basis What the tax is calculated on.

Resolution order: Koard uses the first non-null setting from the location, then the terminal, then the merchant account. A null inherits from the next level. An explicit zero rate stops inheritance and disables the default tax.

Set the broad default once on the account. Only set the field on a location or terminal when it needs to differ from the level above it.

tax_rate and tax_basis here are configuration defaults (resolved in location → terminal → account order, with an explicit zero stopping inheritance). They are separate from the transaction-breakdown fields returned on a completed transaction: taxAmount (the computed tax, in cents) and taxRate (the rate actually applied to that transaction; see the transaction breakdown schema for its exact representation). Don't conflate the config input (tax_rate, a percentage) with the computed breakdown output (taxRate / taxAmount).

Sending tax you calculated

For a basket with multiple product tax rates, send the combined tax in breakdown.taxAmount and omit taxRate or set it to null. A supplied taxAmount, including zero, is authoritative: Koard does not recalculate it from a rate or add the configured default tax. Setting account tax_rate: 0 is compatible with this flow, but is not required to override a default when you supply taxAmount.

For example, this breakdown requests a $100.00 subtotal and exactly $7.25 tax:

{
  "subtotal": 10000,
  "taxAmount": 725,
  "taxRate": null,
  "tipAmount": 0,
  "tipType": "fixed"
}

Pass amount: 10725 before any surcharge calculated by Koard. The resulting sale reports subtotal: 10000 and tax_amount: 725; an eligible surcharge changes total_amount, not those two components. A null request rate is not a promise that the response's tax_rate stays null.

The released iOS 1.0.21 and Android 1.0.7 PaymentBreakdown models accept a nullable taxRate. Use taxRate: nil in Swift or taxRate = null in Kotlin with the explicit taxAmount. These are request fields in camelCase; API and webhook transaction fields use tax_amount and tax_rate.

Tip handling

Tips are captured in one of two modes, tracked on the transaction as tip_capture_mode:

Mode When Notes
Tip at sale (tip_at_sale) The tip is included on the original sale. Any non-tip-adjust transaction that carries a tip.
Tip adjust (tip_adjust) The tip is added/changed after the sale (e.g. restaurant tip-on-receipt). A dedicated tip_adjust transaction referencing the original.

Each carries a tip_amount and tip_type (e.g. percentage or a fixed amount).

Tip adjust does not apply surcharge. A tip adjustment only changes the tip on an existing transaction: it does not recompute or add a surcharge. Surcharge is applied on the sale, independently of tips (see Surcharging).