Learn how to use the Commenda API to manage your taxes.
Commenda provides a range of endpoints to manage sales tax transactions:
/calculate
endpoint:
/transactions
endpoints:
/nexus
endpoint:
/registrations
endpoints:
/calculate
endpoint to determine if tax should be collected on transactions./filings
endpoints:
While the /calculate
and /transactions
endpoints can be used independently, a typical workflow is as follows:
A customer visits your website, adds something to their cart, and clicks ‘check out’.
You call our /calculate
API to determine the correct amount of sales tax to charge the customer.
The customer pays the total amount, including the sales tax. You save the transaction details, including the subtotal and tax amount.
After the transaction is completed, you call the /transactions
API to submit the transaction details to our system.
Typically, discounts are treated as a reduction in the overall sales price. To account for this, simply call our /calculate
and /transactions
endpoints using the post-discount price as the amount
and subtotal
.
For accounting purposes, some customers may prefer to recognize the full sale amount and treat the discount as an expense. If you need this setup, please contact the Commenda team.