Skip to main content
POST
Calculate tax

Authorizations

X-API-KEY
string
header
required

Headers

Idempotency-Key
string

Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.

Maximum string length: 255

Body

application/json
company_id
integer
required

Company ID

Example:

1

customer_id
integer | null

Customer ID (money-in records)

Example:

1

vendor_id
integer | null

Vendor ID (money-out records)

Example:

null

record_type
enum<string> | null

Optional taxable record type. Customer/vendor credits use ReturnOrder estimates.

Available options:
invoice,
cash_sale,
customer_credit,
sales_order,
bill,
direct_expense,
vendor_credit,
purchase_order
Example:

"invoice"

credit_source
CreditSourceIn · object | null

Optional linked source for customer/vendor credits. Used to pin AvaTax taxOverride.taxDate to the original sale/purchase.

Example:
transaction_buyer_address
TaxLocationIn · object | null

Buyer address on the transaction — required for sales tax, ignored for VAT

Example:
transaction_date
string<date> | null

Transaction date — required for sales tax

Example:

"2025-08-29"

supply_date
string<date> | null

Tax point / date of supply — filters VAT and GST rates by valid_from / valid_to

Example:

"2025-08-29"

items
TaxedItemIn · object[]

List of items to calculate tax for

Example:
currency_code
enum<string> | null

Currency code (ISO 4217) — required for sales tax

Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
BWP,
BYN,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRU,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
STN,
SVC,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VES,
VND,
VUV,
WST,
XAF,
XAG,
XAU,
XCD,
XDR,
XOF,
XPD,
XPF,
XPT,
YER,
ZAR,
ZMW,
ZWL
Example:

"USD"

Response

OK

type
enum<string>
required
Available options:
SALES_TAX,
VAT,
GST,
NONE
data
SalesTaxDataOut · object
required
Last modified on September 14, 2026