Skip to main content
POST
Calculate tax

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Headers

Alguna-Version
enum<string>
required
Available options:
2026-04-01
Idempotency-Key
string

A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.

Maximum string length: 255
Example:

"ik_a1b2c3d4e5f6"

Body

application/json
currency
string
required

ISO 4217 currency code

Example:

"USD"

customer
object
required

Who is being taxed

line_items
object[]
required

Line items to tax

Selling legal entity; defaults to the org's default when omitted

tax_behavior
enum<string> | null

Whether line amounts exclude (default) or already include tax

Available options:
exclusive,
inclusive
Example:

"exclusive"

Response

Success

currency
string
required

Currency of the amounts

expires_at
string<date-time>
required

When the calculation stops being issuable

id
string
required

Id of the persisted calculation; pass it when issuing a receipt to pin these results

line_items
object[]
required

Per-line tax breakdown

total_tax
string
required

Sum of per-line tax amounts