canonical: https://jentic.com/apis/anrok.com/anrok

# Anrok API

Jentic publishes the only available OpenAPI specification for Anrok API, keeping it validated and agent-ready. The Anrok API calculates sales tax and VAT for software and SaaS businesses, recording each transaction so a seller can report and file accurately across jurisdictions. It creates and updates taxable transactions, runs ephemeral calculations that are not persisted, voids or negates prior transactions, and manages customer exemption certificates. Tax identifier validation, product-to-tax-code mappings, and filing lists round out the compliance surface.

## For AI agents

Calculate sales tax and VAT on SaaS transactions, record and void transactions, manage exemption certificates, validate tax IDs, and list filings.

## Scope

Does not handle payment collection, invoicing, or general ledger accounting. Use for sales tax calculation, exemption certificates, and filings only.

## Capabilities

- Calculate sales tax on a transaction and persist it for reporting
- Run an ephemeral tax calculation without saving a transaction
- Void or negate a previously recorded transaction
- Create and archive customer tax exemption certificates
- Validate a customer tax identification number
- List recorded transactions and tax filings for a seller

## Use cases

### Agent-Automated Tax Calculation

An AI billing agent computes the correct sales tax for each SaaS invoice before it is sent, then records the transaction for filing. Through Jentic the agent searches for the tax-calculation operation, loads its input schema, and submits line items and customer address without hand-wiring Anrok's bearer auth. This keeps tax accurate as a customer base spans new jurisdictions.

Example prompt: Calculate sales tax for an invoice given line items and a customer billing address, then record the transaction

### Real-Time Tax Estimates at Checkout

A storefront needs a tax figure to display at checkout without committing a transaction to the ledger. Anrok's ephemeral calculation returns the tax amount for a cart and address so the total is accurate, and only the completed order is later recorded. This separates a preview from the reportable transaction.

Example prompt: Run an ephemeral tax calculation for a cart total and customer address and return the tax amount

### Exemption Certificate Management

Tax-exempt customers require a certificate on file so their transactions are not taxed. Anrok creates and archives exemption certificates tied to a customer, and validates tax identification numbers so exemptions are applied correctly. This keeps exempt sales defensible at audit time.

Example prompt: Create an exemption certificate for a customer and validate their tax identification number

### Transaction Reconciliation and Filings

At period close, a finance team reconciles recorded transactions and reviews the filings Anrok has prepared. Listing transactions and filings lets a bookkeeping system confirm coverage before returns are submitted. Voiding or negating erroneous transactions keeps the reportable set clean.

Example prompt: List the seller's transactions and filings for the period and void any duplicate transaction

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/v1/seller/transactions/createOrUpdate` | Create or update a transaction and calculate tax |
| POST | `/v1/seller/transactions/createEphemeral` | Calculate tax without persisting a transaction |
| POST | `/v1/seller/transactions/list` | List recorded transactions |
| POST | `/v1/seller/certificates/create` | Create an exemption certificate |
| POST | `/v1/seller/taxId/validate` | Validate a tax identification number |
| POST | `/v1/seller/filings/list` | List tax filings |

## Key resources

- **Transactions** — Create, update, void, and negate taxable transactions and calculate tax
- **Certificates** — Create and archive customer tax exemption certificates
- **Tax ID** — Validate customer tax identification numbers
- **Integrations** — Manage product-to-tax-code mappings for connected systems
- **Filings** — List the tax filings prepared for a seller

## Why Jentic

- **Setup:** Wiring Anrok by hand means managing its bearer token against api.anrok.com and threading it through every tax calculation, certificate, and filing call yourself. Through Jentic you install once, import Anrok from the API Directory, store the credential once, and your agent calls it.
- **Permission scoping:** Anrok's operations are seller-scoped, so a rule limits your agent to the operations it needs, such as calculating tax and listing transactions. You choose which operations it may call, so voiding or negating a transaction is not included unless you add it.
- **Credential handling:** Your Anrok bearer token is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'calculate sales tax' or 'validate a tax id', and Jentic returns the matching Anrok operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Avalara AvaTax** — Avalara is a broad tax compliance platform covering many industries, where Anrok focuses on software and SaaS sellers.
- **TaxJar** — TaxJar calculates sales tax and files returns with a strong e-commerce focus, an alternative to Anrok's SaaS focus.
- **Quaderno** — Quaderno handles tax calculation and invoicing for digital businesses, overlapping with Anrok's tax calculation.
- **Stripe** — Stripe collects the payment; pair it with Anrok to compute and record the sales tax on the same order.

## FAQ

### Why is there no official OpenAPI spec for Anrok API?

Anrok does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call the Anrok API via structured tooling. It is validated against the live API and kept up to date. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### What authentication does the Anrok API use?

The Anrok API authenticates with an HTTP bearer token in the Authorization header per its OpenAPI spec. Through Jentic, that token is stored encrypted by your own Jentic One instance and injected at execution time, so it never enters the agent's prompt or logs.

### Can I calculate sales tax without recording a transaction with the Anrok API?

Yes. Anrok exposes an ephemeral calculation that returns the tax amount for a cart and customer address without persisting anything, so a checkout can display an accurate total. When the order completes, you record it with the create-or-update transaction operation for reporting and filing.

### What are the rate limits for the Anrok API?

The OpenAPI spec does not specify rate limits for the Anrok API. Check the Anrok developer documentation at https://apidocs.anrok.com for current limits, and back off when you receive a 429 response.

### How do I calculate sales tax through Jentic?

Search Jentic for 'calculate sales tax on a transaction'. Jentic returns Anrok's transaction operation with its input schema covering line items, amounts, and the customer address, so your agent can call it directly and read back the computed tax.

### Can I limit what my agent is allowed to do with the Anrok API?

Yes. You write a rule that allows only the operations the agent needs, such as calculating tax and listing transactions, so operations like voiding or negating a transaction stay out of reach unless you add them. Because Jentic One is self-hosted, those rules and the audit log of every call stay on your own infrastructure.

### Is there an Anrok API MCP server?

You do not need an MCP server to give your agent the Anrok API. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent can calculate tax, manage certificates, and list filings. That also keeps your agent's context free of an extra server's tool definitions.
