# Anrok Transactions API

**Canonical:** https://apis.io/apis/anrok/anrok-transactions-api/  
**Provider:** Anrok — https://apis.io/providers/anrok/  
**Base URL:** https://api.anrok.com  
**Documentation:** https://apidocs.anrok.com/

Anrok Transactions API is one of 6 APIs that [Anrok](https://apis.io/providers/anrok/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 1 JSON Schema definition. Tagged areas include Transaction. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 1 JSON Schema.

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.

## Machine-readable artifacts (6)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/anrok/refs/heads/main/openapi/anrok-transactions-api-openapi.yml
- **Documentation** — https://apidocs.anrok.com/
- **Tutorials** — https://apidocs.anrok.com/tutorials
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/anrok/refs/heads/main/json-schema/
- **Vocabulary** — https://raw.githubusercontent.com/api-evangelist/anrok/refs/heads/main/vocabulary/anrok-vocabulary.yml
- **JSONLD** — https://raw.githubusercontent.com/api-evangelist/anrok/refs/heads/main/json-ld/anrok-context.jsonld

## Other Anrok APIs (5)

- [Anrok Customer certificates API](https://apis.io/apis/anrok/anrok-customer-certificates-api/)
- [Anrok Filings API](https://apis.io/apis/anrok/anrok-filings-api/)
- [Anrok Product mappings API](https://apis.io/apis/anrok/anrok-product-mappings-api/)
- [Anrok Products API](https://apis.io/apis/anrok/anrok-products-api/)
- [Anrok Tax ID validation API](https://apis.io/apis/anrok/anrok-tax-id-validation-api/)

## Tags

Transaction

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/anrok/anrok-transactions-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/anrok/.
