Prerequisites
- An API key for the sandbox environment (contact Centsless to obtain sandbox credentials)
- A tool for making HTTP requests (curl, Postman, or your preferred language)
Check that the API is live
Confirm the API is reachable before making authenticated requests:You should receive a
200 OK response with system status. This endpoint requires no API key.Process an Arizona cash transaction
Send a cash transaction with an Arizona ZIP code. The engine resolves the jurisdiction and applies Swedish rounding automatically per AZ HB 2938.The response includes the rounded cash total, the rounding delta, the jurisdiction that was resolved, and a compliance status:The customer pays **7.23. The 2-cent
rounding_delta_cents is applied per Arizona HB 2938 (mandatory Swedish rounding). Save the id field — you will need it in step 5.ledger_total_cents is the pre-rounded total (subtotal + tax). cash_total_cents is what the customer actually pays. Sales tax is always calculated on the pre-rounded amount.Try a different state
Swap the ZIP code for a state code to see a different rounding methodology. Send the same amounts to Indiana:Same input amounts, but Indiana SB 243 gives the operator a choice of rounding method (three-tier, permissive). The jurisdiction field in the response will reflect
US-IN and the resolved rounding mode will differ from Arizona. This is the core value of jurisdiction-awareness — your POS code stays the same while the correct rule is applied per location.Verify EBT exemption
EBT/SNAP transactions are never rounded, regardless of jurisdiction. Confirm this by submitting the same transaction with The response will show
payment_method: "ebt":rounding_delta_cents: 0 and include an ebt_compliance_flag confirming 7 CFR 278.2 compliance. No rounding is applied even though Arizona mandates it for cash transactions.Generate a compliance receipt
Use the transaction ID from step 2 to generate a receipt. The receipt includes the rounding disclosure language required by state law:Replace
TXN-ID-HERE with the id value from the step 2 response (e.g., TXN-2026-04-14-A82C2EAA). The default format is merchant, which is the customer-facing receipt with rounding disclosure. You can request audit or pos formats using the ?format= query parameter.Next steps
- Jurisdiction Resolution — understand the full resolution cascade and how ZIP, state, county, and city rules interact
- Rounding Methods — details on Swedish rounding, symmetrical rounding, three-tier operator choice, and the other methodologies
- API Reference — complete endpoint documentation for all transaction, receipt, audit, and export operations