Who Owes the Tax When an AI Agent Transacts?
Operator, marketplace facilitator, and merchant of record get used interchangeably to describe who is responsible for sales tax. They are not synonyms, only one of them is defined in a tax statute, and the one most often relied on in contracts is the one that decides the least. This is the four-step test, in the order it has to be run.
Merchant of record is not a tax status
Start here, because this is the assumption that sends platforms down the wrong branch. Merchant of record is a genuinely useful commercial arrangement. It is not an answer to a sales tax question, and it never appears in the decision tree below.
The decision tree
Work it in this order, per state, per transaction type. The order matters: the first question that returns yes ends the inquiry. Running the facilitator test on a transaction that step 1 already answered is the most common expensive mistake here.
Same architecture, opposite answers
47 jurisdictions have marketplace facilitator statutes and they do not share a definition. Missouri and Washington sit at opposite ends of the range. Read them side by side with one agent platform in mind.
- Lists or advertises the marketplace seller's property or services for sale, in any forum, AND
- Directly or indirectly collects payment from the purchaser and transmits all or part of it to the seller
- Contracts with sellers to facilitate the sale of the seller's products for consideration, AND
- Transmits or otherwise communicates the offer or acceptance between buyer and seller, AND
- Engages in ANY ONE of: payment processing, fulfillment or storage, listing products, setting prices, branding sales as its own, taking orders, or providing customer service
What is settled, and what is not
Settled: that both prongs of a narrow statute like Missouri's must be met. That contractual labels do not override statutory status. That merchant of record is not a tax designation.
Unsettled: where an agent platform that orchestrates without transacting actually lands. Our position is that facilitator obligations apply where a state's definition is unambiguously met, and that a pure tax-calculation integration sits outside facilitator classification. That is an interpretation, not a holding. No state has issued guidance on API-only platforms and no court has ruled on facilitator classification for agent orchestration.
If a state concludes your platform qualifies, you can face liability for uncollected tax alongside your merchants — both parties owing the same underlying tax. Anyone taking the narrow reading should take it knowingly.
Tell the engine which position you occupy
Once you have your answer from the tree, it is one field. marketplace_role accepts seller, facilitator, or direct. When you are a seller on a facilitating platform in a facilitator jurisdiction, the response says the marketplace is the collector of record, moves the tax out of total_tax into marketplace_remitted_tax, and sets counts_toward_nexus_threshold for that state.
// A seller selling THROUGH a facilitating platform, into a facilitator state.
// The facilitator is the collector of record. Whether the sale still counts
// toward your own economic-nexus threshold depends on the state; Washington counts it.
const response = await fetch("https://agenttax.io/api/v1/calculate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "atx_live_..."
},
body: JSON.stringify({
role: "seller",
marketplace_role: "seller", // seller | facilitator | direct
amount: 2400,
buyer_state: "WA",
buyer_zip: "98101",
transaction_type: "compute",
work_type: "compute",
counterparty_id: "buyer-agent-77"
})
});{
"success": true,
"role": "seller",
"marketplace_role": "seller",
"amount": 2400,
"buyer_state": "WA",
"buyer_zip": "98101",
"transaction_type": "compute",
"work_type": "compute",
"total_tax": 0,
"marketplace_remitted_tax": 253.2,
"collected_by_marketplace": true,
"counts_toward_nexus_threshold": true,
"advisories": [
{
"type": "marketplace_facilitator",
"state": "WA",
"flagged": true,
"counts_toward_threshold": true,
"advisory": "Marketplace facilitator law in Washington shifts collection to the facilitator, but this sale still counts toward your own economic-nexus threshold. The tax due on this transaction is reported in marketplace_remitted_tax — it is excluded from total_tax and payment routing because the facilitator collects and remits it. Registration duties can survive even when you owe no tax — see registration_relief.",
"confidence": "high"
}
]
}What to do this week
- Write down which of the four positions you occupy, per state. If you cannot name it, your contracts are carrying weight they cannot hold.
- Stop treating your merchant-of-record clause as a tax answer. Reread it as what it is: an indemnity.
- Run the actual statutory elements in your five largest states rather than a vendor summary chart. The charts flatten exactly the variation that decides your case.
- If you are a marketplace seller on someone else's platform in a facilitator state, check, state by state, whether those sales count toward your own economic nexus threshold. Many states count them even though the platform collects; Washington is one.