/transaction endpoint is the core of the Centsless API. You send a transaction, and the engine resolves the jurisdiction, applies the correct rounding rule for that location, and returns the legally correct cash total — complete with compliance certification and a fraud score. Every transaction is committed to an immutable audit hash chain, giving you a tamper-evident record for regulators and auditors.
Endpoint
Authentication
All requests require anx-api-key header. Use your merchant key or partner key.
Your merchant or partner API key.
Request body
Unique merchant identifier issued by Centsless or your POS vendor.
Pre-tax subtotal in cents. Tax is always calculated on this pre-rounded amount.
Sales tax in cents. Always pass the tax calculated on the pre-rounded subtotal — never recalculate tax after rounding.
Payment tender type. One of:
cash, card, ebt, mobile. Only cash transactions are subject to rounding. EBT transactions are never rounded per 7 CFR 278.2.ZIP code for automatic jurisdiction resolution. Recommended — the engine resolves state, county, city, and the applicable rounding rule from a single field.
Two-letter state code (e.g.,
AZ, IN). Use when you don’t have a ZIP code.County name for sub-state jurisdiction resolution. Combined with
state for county-level rules.City name for municipal-level jurisdiction resolution. Combined with
state and county.Explicit rounding mode override. One of:
swedish_rounding, mandatory_round_down, mandatory_round_up, symmetrical_rounding, nearest_nickel, none. Use for testing only — omit this field in production to let the engine resolve the correct rule for the jurisdiction.Store location identifier for multi-location merchants.
POS terminal identifier. Included in the audit record.
Cashier or employee identifier. Included in the audit record.
Set to
true when the customer is splitting payment across multiple tender types.Array of tender components for split tender transactions. Each item has a
type (one of cash, card, ebt, mobile) and an amount_cents integer.Examples
Response fields
The processed transaction record.