Introducing the A2X Public API
More ecommerce sellers, accountants, and bookkeepers are bringing an AI assistant into month-end, asking it to explain a variance or write up the month. We’re building A2X to work with it, because AI does its best work on top of reconciled data.
The A2X public API, now in beta, is the newest part of that. It gives an AI assistant, a script, or your own software direct access to the numbers A2X has already reconciled, and a way to send product costs in, without the manual export and import.
This first release covers monthly reports and product costs on every plan, plus subledger queries for A2X Subledger and A2X Clarity subscribers. Settlements, postings, mappings, and orders are coming next.
What the A2X public API does today
The A2X API lets other software work with A2X directly, without logging in.
An accountant asks their AI assistant for October’s units sold by SKU across a client’s three Shopify stores. With the API connected, the assistant requests the report from A2X, gets the rows back, and writes the summary, without anyone exporting a CSV.
Monthly reports, without the download
The API returns the same monthly reports as the Export Data page: units sold by SKU, and sales by GL account and transaction type, with or without transaction descriptions. Ask for an account and a calendar month, and the API returns the rows as structured data, with the same tax rate, country, and marketplace options.
Product costs, from the system that holds them
The API reads your Product Catalog and its import history, and takes a complete catalog as a new import when costs change. Each import has an effective date, so earlier periods keep the costs they had, and one import updates every A2X account in your organization. Product Catalog needs to be set up in A2X before the API will accept an import.
If you use per-account SKU cost files instead, the API reads your current costs and uploads new ones, either replacing the file or merging into it.
Note: importing costs through the API disconnects any Google Sheets cost sync. Reconnect the sheet in A2X to resume it.
Subledger queries, for A2X Subledger and A2X Clarity
With A2X Subledger or A2X Clarity, you can also query your orders, customers, gift cards, postings, settlements, ad campaigns, and products. Choose the dimensions and measures you want, and the API groups and totals them the way you ask.
Large queries can be checked with an estimate call before they run, and if a query is refused, the error says what to change so a script or an AI assistant can fix it and try again.
How A2X’s public API works
The API is in beta and has to be enabled for your account. Once it is, you generate a token in A2X and connect the script, integration, or AI assistant that will make the requests.
It’s a REST API with token authentication. You mint a token under User Settings → Public API, choose read or write scope, and it’s valid for a year. A token reaches only the organizations and accounts you can open in A2X, and you can revoke it at any time. Requests are limited to 30 per minute per token. There’s nothing to install, and the API docs cover every request.
What’s coming next for the A2X API
Settlements, postings, mappings, and orders are the next endpoints. If there’s something you need before that, tell us.
Getting started with A2X’s public API
To join the beta, email contact@a2xaccounting.com or use the chat icon in A2X and our team will switch it on for your account. Monthly reports and product costs are available on every plan. Subledger queries need A2X Subledger or A2X Clarity, and the subledger API switched on for your organization.
We’re also building AI into A2X itself. A2X AI Close, part of this month’s A2X Additions, matches gateway and marketplace statements to your order data and drafts the entry that clears the account, for you to review.
The A2X public API is part of A2X Additions, our November roundup of new features. See it in the live webinar on Thursday, November 19.
Save hours on your ecommerce accounting
A2X connects your sales channels and accounting software for fast and accurate monthly bookkeeping.
Try A2X today
