TaxJar.Requests.Taxes (tax_jar v0.1.1)

Summary

Functions

Request sales tax for the given order.

Functions

Link to this function

get_sales_tax_for_order(payload)

@spec get_sales_tax_for_order(map()) :: {:ok, map()} | {:error, any()}

Request sales tax for the given order.

The API response is a map with the tax liability wrapped in a map with a single key "tax". This returns the content without the wrapper.

See Sales Tax API for details.