This is the rendered version of the full Lua documentation exposed to agents when they inspect the integration namespace.
TaxJar — Lua API Reference
list_orders
List order transactions from TaxJar with optional date filtering and pagination.
Parameters
| Name | Type | Required | Description |
|---|
from_date | string | no | Filter by start date (ISO 8601 format, e.g. 2024-01-01) |
to_date | string | no | Filter by end date (ISO 8601 format, e.g. 2024-12-31) |
limit | integer | no | Number of results per page |
offset | integer | no | Offset for pagination |
Example
local result = app.integrations.taxjar.list_orders({
from_date = "2024-01-01",
to_date = "2024-12-31",
limit = 50
})
for _, order in ipairs(result.orders) do
print(order.transaction_id .. " — " .. order.amount .. " — " .. order.transaction_date)
end
get_order
Retrieve details of a single order transaction.
Parameters
| Name | Type | Required | Description |
|---|
id | string | yes | The order transaction ID |
Example
local result = app.integrations.taxjar.get_order({
id = "ORDER-123"
})
local order = result.order
print("Amount: " .. order.amount)
print("Tax: " .. order.tax)
print("Shipping: " .. (order.shipping or "N/A"))
list_refunds
List refund transactions from TaxJar with optional date filtering and pagination.
Parameters
| Name | Type | Required | Description |
|---|
from_date | string | no | Filter by start date (ISO 8601 format, e.g. 2024-01-01) |
to_date | string | no | Filter by end date (ISO 8601 format, e.g. 2024-12-31) |
limit | integer | no | Number of results per page |
offset | integer | no | Offset for pagination |
Example
local result = app.integrations.taxjar.list_refunds({
from_date = "2024-01-01",
limit = 25
})
for _, refund in ipairs(result.refunds) do
print(refund.transaction_id .. " — " .. refund.amount .. " — " .. refund.transaction_date)
end
list_transactions
List all transactions (orders and refunds) from TaxJar with optional filtering and pagination.
Parameters
| Name | Type | Required | Description |
|---|
from_date | string | no | Filter by start date (ISO 8601 format, e.g. 2024-01-01) |
to_date | string | no | Filter by end date (ISO 8601 format, e.g. 2024-12-31) |
limit | integer | no | Number of results per page |
offset | integer | no | Offset for pagination |
Example
local result = app.integrations.taxjar.list_transactions({
from_date = "2024-06-01",
to_date = "2024-06-30"
})
for _, txn in ipairs(result.transactions) do
print(txn.transaction_id .. " — " .. txn.amount .. " — " .. txn.transaction_date)
end
get_transaction
Retrieve details of a single transaction by ID.
Parameters
| Name | Type | Required | Description |
|---|
id | string | yes | The transaction ID |
Example
local result = app.integrations.taxjar.get_transaction({
id = "TXN-456"
})
local txn = result.transaction
print("Amount: " .. txn.amount)
print("Tax: " .. txn.tax)
print("Line items: " .. #(txn.line_items or {}))
list_categories
List all tax categories available in TaxJar.
Parameters
None.
Example
local result = app.integrations.taxjar.list_categories({})
for _, cat in ipairs(result.categories) do
print(cat.name .. " — " .. cat.product_tax_code .. " — " .. (cat.description or ""))
end
get_current_user
Retrieve the current authenticated user information.
Parameters
None.
Example
local result = app.integrations.taxjar.get_current_user({})
print("User: " .. (result.user and result.user.email or "N/A"))
Multi-Account Usage
If you have multiple TaxJar accounts configured, use account-specific namespaces:
-- Default account (always works)
app.integrations.taxjar.list_orders({from_date = "2024-01-01"})
-- Explicit default (portable across setups)
app.integrations.taxjar.default.list_orders({from_date = "2024-01-01"})
-- Named accounts
app.integrations.taxjar.production.list_orders({from_date = "2024-01-01"})
app.integrations.taxjar.staging.list_orders({from_date = "2024-01-01"})
All functions are identical across accounts — only the credentials differ.
Raw agent markdown
# TaxJar — Lua API Reference
## list_orders
List order transactions from TaxJar with optional date filtering and pagination.
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `from_date` | string | no | Filter by start date (ISO 8601 format, e.g. 2024-01-01) |
| `to_date` | string | no | Filter by end date (ISO 8601 format, e.g. 2024-12-31) |
| `limit` | integer | no | Number of results per page |
| `offset` | integer | no | Offset for pagination |
### Example
```lua
local result = app.integrations.taxjar.list_orders({
from_date = "2024-01-01",
to_date = "2024-12-31",
limit = 50
})
for _, order in ipairs(result.orders) do
print(order.transaction_id .. " — " .. order.amount .. " — " .. order.transaction_date)
end
```
---
## get_order
Retrieve details of a single order transaction.
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `id` | string | yes | The order transaction ID |
### Example
```lua
local result = app.integrations.taxjar.get_order({
id = "ORDER-123"
})
local order = result.order
print("Amount: " .. order.amount)
print("Tax: " .. order.tax)
print("Shipping: " .. (order.shipping or "N/A"))
```
---
## list_refunds
List refund transactions from TaxJar with optional date filtering and pagination.
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `from_date` | string | no | Filter by start date (ISO 8601 format, e.g. 2024-01-01) |
| `to_date` | string | no | Filter by end date (ISO 8601 format, e.g. 2024-12-31) |
| `limit` | integer | no | Number of results per page |
| `offset` | integer | no | Offset for pagination |
### Example
```lua
local result = app.integrations.taxjar.list_refunds({
from_date = "2024-01-01",
limit = 25
})
for _, refund in ipairs(result.refunds) do
print(refund.transaction_id .. " — " .. refund.amount .. " — " .. refund.transaction_date)
end
```
---
## list_transactions
List all transactions (orders and refunds) from TaxJar with optional filtering and pagination.
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `from_date` | string | no | Filter by start date (ISO 8601 format, e.g. 2024-01-01) |
| `to_date` | string | no | Filter by end date (ISO 8601 format, e.g. 2024-12-31) |
| `limit` | integer | no | Number of results per page |
| `offset` | integer | no | Offset for pagination |
### Example
```lua
local result = app.integrations.taxjar.list_transactions({
from_date = "2024-06-01",
to_date = "2024-06-30"
})
for _, txn in ipairs(result.transactions) do
print(txn.transaction_id .. " — " .. txn.amount .. " — " .. txn.transaction_date)
end
```
---
## get_transaction
Retrieve details of a single transaction by ID.
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `id` | string | yes | The transaction ID |
### Example
```lua
local result = app.integrations.taxjar.get_transaction({
id = "TXN-456"
})
local txn = result.transaction
print("Amount: " .. txn.amount)
print("Tax: " .. txn.tax)
print("Line items: " .. #(txn.line_items or {}))
```
---
## list_categories
List all tax categories available in TaxJar.
### Parameters
None.
### Example
```lua
local result = app.integrations.taxjar.list_categories({})
for _, cat in ipairs(result.categories) do
print(cat.name .. " — " .. cat.product_tax_code .. " — " .. (cat.description or ""))
end
```
---
## get_current_user
Retrieve the current authenticated user information.
### Parameters
None.
### Example
```lua
local result = app.integrations.taxjar.get_current_user({})
print("User: " .. (result.user and result.user.email or "N/A"))
```
---
## Multi-Account Usage
If you have multiple TaxJar accounts configured, use account-specific namespaces:
```lua
-- Default account (always works)
app.integrations.taxjar.list_orders({from_date = "2024-01-01"})
-- Explicit default (portable across setups)
app.integrations.taxjar.default.list_orders({from_date = "2024-01-01"})
-- Named accounts
app.integrations.taxjar.production.list_orders({from_date = "2024-01-01"})
app.integrations.taxjar.staging.list_orders({from_date = "2024-01-01"})
```
All functions are identical across accounts — only the credentials differ.