TaxJar.Requests.Client (tax_jar v0.2.1)
HTTP Client for the TaxJar API. This is the module to facilitate HTTP requests with the configured HTTP adapter.
Configuration
The following are relied on to make calls to the TaxJar API.
:api_key
- Required. Must be a valid TaxJar API auth key for your account.:api_url
- Optional. If you want to override the default url for the current env.:api_version
- Optional. Must be a valid TaxJar API version. Default is"2022-01-24"
.:http_adapter
- Optional. Must be a module that implements theTaxJar.Requests.HTTPBehaviour
protocol.Default is `TaxJar.Requests.HTTPAdapters.Req`. It is read at runtime so the value can be changed on the fly.
Summary
Functions
Perform a POST request to the API using the given payload.
Functions
Link to this function
post(path, body, opts \\ [])
Perform a POST request to the API using the given payload.
When successful the response body will be decoded into a map which is returned.