TaxJar.Requests.Taxes (tax_jar v0.3.0)

All the TaxJar tax API endpoints are defined in this module.

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, TaxJar.Requests.Error.t()}

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.