Anrok Transactions API

This documentation describes how to use Anrok's Transactions API to synchronize transactions between Anrok and your billing system, as well as calculate sales tax for new invoices. Use of this API is generally recommended for sellers with custom billing systems or workflows that prevent you from using one of our pre-built platform integrations. Sellers utilizing Stripe Subscriptions or Checkout may also use this API to calculate and add tax on initial invoices, while continuing to use Anrok's Stripe integration to manage tax for subsequent billing cycles. # Invoice lifecycle 1. When an invoice is created: the billing system should call the `createEphemeral` endpoint to calculate the sales tax amount. 1. When an invoice is updated: same as above. 1. When an invoice is finalized and ready to send to the customer: the billing system should call the `createOrUpdate` endpoint so that the transaction is recorded in Anrok. 1. When an invoice is paid: Anrok does not need to be notified. Sellers are required to remit sales tax to a state upon invoice, not receipt of payment. While the above covers a standard invoice lifecycle, the Transactions API also includes endpoints for exceptional states like voiding and negating invoices, which are described below.

GitHub OpenAPI
Business capability
Subscription Tax Management BC-4250.60

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/seller/transactions/createOrUpdate Record a sale with tax calculation · Create or update transaction #
Ask an LLM
“How do I record a sale so Anrok files the right sales tax return?”
“Can I save a transaction with the tax already added?”
Tell an agent
Create transaction {id} with line items {lineItems} in {currencyCode} for {customerAddress}.
Record sale {id} for {customerName} at {customerAddress} with tax already added {taxAmountAdded}.
POST /v1/seller/transactions/createEphemeral Calculate tax on a sale without saving it · Create ephemeral transaction #
Ask an LLM
“Can I calculate sales tax for an invoice without saving it?”
“What would the tax be on a sale I'm about to send?”
Tell an agent
Calculate tax for {lineItems} in {currencyCode} to {customerAddress} without saving it.
Estimate tax on {lineItems} for {customerName} at {customerAddress} using tax date {taxDate}.
POST /v1/seller/transactions/createNegation Create a refund transaction · Create negation #
Ask an LLM
“How do I create a refund transaction that reverses a sale?”
“Can I create a negation of an existing transaction?”
Tell an agent
Create negation {newTransactionId} of transaction {originalTransactionId}.
Reverse sale {originalTransactionId} with refund {newTransactionId} at version {originalTransactionExpectedVersion}.
POST /v1/seller/transactions/id:{transactionId}/get Get a transaction · Get transaction #
Ask an LLM
“What are the details of a transaction?”
“Can I look up one transaction by its ID?”
Tell an agent
Get transaction {transactionId}.
Show the latest version of transaction {transactionId}.
POST /v1/seller/transactions/id:{transactionId}/void Void a transaction · Void transaction #
Ask an LLM
“How do I void a transaction so it's excluded from returns?”
“Can I cancel a sale I already recorded?”
Tell an agent destructive · confirm first
Void transaction {transactionId}.
Cancel transaction {transactionId} expecting version {transactionExpectedVersion}.
POST /v1/seller/transactions/list List transactions · List transactions #
Ask an LLM
“Which transactions have been recorded?”
“Can I list transactions modified since a certain date?”
Tell an agent
List transactions matching {filter}.
Show {limit} transactions.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/anrok:anrok-transactions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

anrok-transactions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Anrok Transactions API
  version: '1.1'
  termsOfService: https://www.anrok.com/privacy-terms
  contact:
    email: support@anrok.com
  license:
    name: All rights reserved
    url: https://www.anrok.com
  x-logo:
    url: https://global-uploads.webflow.com/632add85afcd1ac30aa74675/6357842d130e1f3e0e23d1fe_anrok_logo.svg
  description: '# API reference


    The Anrok API server is accessible at `https://api.anrok.com`.


    All requests are HTTP POSTs with JSON in the body.


    Authentication is via an HTTP header `Authorization: Bearer {apiKey}`.


    The default rate limit for a seller account is 10 API requests per second.'
servers:
- url: https://api.anrok.com
security:
- http: []
tags:


# --- truncated at 32 KB (60 KB total) ---
# Full source: https://artifacts.apis.io/anrok/openapi/anrok-transactions-api-openapi.yml