How to pass custom amount in tax in Square Order API?


We want to pass custom tax amount when we create order through Square API.

As of now, we can pass percentage in tax and which is applicable on order amount. But how to pass custom tax in amount instead of in tax?

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Apply Taxes and Discounts
Payments Pricing with Square APIs and SDKs
Orders API: How It Works

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Square’s Orders API currently only supports percentage-based taxes. It does not support specifying a fixed amount for tax. When you create an order, you can specify a tax by referencing a predefined CatalogTax object or defining an ad hoc tax. Both methods require you to specify a percentage. The API then applies this percentage to the appropriate amount to calculate the tax. If you need to apply a specific tax amount, you would need to calculate the equivalent percentage and apply that as the tax. :slightly_smiling_face: