<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: GuilleJB97</title>
    <description>The latest articles on DEV Community by GuilleJB97 (@guillejb97).</description>
    <link>https://dev.to/guillejb97</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265149%2Fc953532f-24fb-480e-a118-84fc66377615.png</url>
      <title>DEV Community: GuilleJB97</title>
      <link>https://dev.to/guillejb97</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/guillejb97"/>
    <language>en</language>
    <item>
      <title>How an AI agent can check who is behind an online shop before it pays</title>
      <dc:creator>GuilleJB97</dc:creator>
      <pubDate>Wed, 25 Nov 2026 16:39:51 +0000</pubDate>
      <link>https://dev.to/guillejb97/how-an-ai-agent-can-check-who-is-behind-an-online-shop-before-it-pays-2aap</link>
      <guid>https://dev.to/guillejb97/how-an-ai-agent-can-check-who-is-behind-an-online-shop-before-it-pays-2aap</guid>
      <description>&lt;p&gt;Your agent has found a coffee grinder for 49 euros. The shop looks fine: product page, legal notice, a company name, a tax number. The original shop sells the same grinder for 89 euros, with the same legal notice and the same tax number, because a clone copies all of that in a few seconds.&lt;/p&gt;

&lt;p&gt;Before an agent pays, it needs an answer to one question: &lt;strong&gt;which company is behind this domain, and has anyone proved it?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We built &lt;a href="https://fidemcheck.com" rel="noopener noreferrer"&gt;Fidem&lt;/a&gt; to answer that question for agents. This post covers what we measured, what can and cannot be proved from public data, and how to call it from your agent in a few lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an agent can learn today: 1,000 shops measured
&lt;/h2&gt;

&lt;p&gt;On 24 November 2026 we ran the same lookup an agent would run against 1,000 online shops in 14 countries (Spain, the rest of the EU, the UK, the US and Latin America):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;0 of 1,000&lt;/strong&gt; publish a machine-verifiable statement of who runs them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;971 of the 988&lt;/strong&gt; TLS certificates we read are domain-validated. They prove the connection is encrypted, not which company is behind it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;410&lt;/strong&gt; publish a company identifier that we could match in an official register (VIES for EU VAT numbers, Companies House for the UK).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;345&lt;/strong&gt; do not publish a company identifier on the legal pages we read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;202&lt;/strong&gt; did not let a program read them (blocked or too slow).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;931&lt;/strong&gt; have a robots.txt that lets AI agents in. Only 2 close the door to them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So agents are welcome on almost every shop, but almost no shop tells them, in a way they can check, who they are paying. A legal notice is text, and text can be copied.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can be proved, and how
&lt;/h2&gt;

&lt;p&gt;A copied legal notice can name the right company. What a clone cannot copy is control of the original domain. That is the core of the approach:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The shop proves it controls the domain&lt;/strong&gt; with a DNS record or a file on its own site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fidem checks the company&lt;/strong&gt; against the official register, and for companies, that the person who signs up represents it (a PDF signed with a qualified representative certificate, checked against the EU Trust List).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fidem signs a Merchant Verification File (MVF)&lt;/strong&gt;, a small JSON document published at &lt;code&gt;https://shop.example/.well-known/merchant-verification.json&lt;/code&gt;. It says which company runs the domain, which register it was checked against and until when the statement is valid (30 days, renewed before it expires).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The signature is Ed25519 over the RFC 8785 (JCS) canonical form of the file, so any agent can check it offline with the issuer's public keys. A clone can copy the file, but the file names the original domain, so it fails on the clone.&lt;/p&gt;

&lt;p&gt;MVF is an open draft standard (&lt;a href="https://github.com/fidemcheck/mvf-spec" rel="noopener noreferrer"&gt;spec and reference checker on GitHub&lt;/a&gt;). Three rules in it matter for anyone integrating:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Trust policy.&lt;/strong&gt; A valid signature proves nothing if you do not trust the issuer. Checkers keep their own list of trusted issuers and take the keys from that list, never from the URL inside the file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Revocation.&lt;/strong&gt; Each issuer publishes a signed revocation list at &lt;code&gt;/.well-known/mvf-revocations.json&lt;/code&gt;, valid for 8 days at most. A revoked shop that still hosts its old file is caught even offline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demo files never verify.&lt;/strong&gt; Issuers can publish fictitious examples, marked &lt;code&gt;demo.fictitious: true&lt;/code&gt;, and checkers must reject them for payments.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Using it from an agent
&lt;/h2&gt;

&lt;p&gt;There are three ways, all free and with no API key (300 lookups per hour per IP).&lt;/p&gt;

&lt;h3&gt;
  
  
  1. MCP
&lt;/h3&gt;

&lt;p&gt;The remote MCP server is &lt;code&gt;https://fidemcheck.com/mcp&lt;/code&gt; (Streamable HTTP). It exposes &lt;code&gt;check_shop&lt;/code&gt; (English fields) and &lt;code&gt;consultar_tienda&lt;/code&gt; (the same lookup with Spanish field names). Most MCP clients take a config like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"fidem"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://fidemcheck.com/mcp"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. REST
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s &lt;span class="s2"&gt;"https://fidemcheck.com/api/v1/shop?domain=intain.io"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Trimmed answer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"intain.io"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"decision"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"verified"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"identity_verified"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"level"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"merchant_verified"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"mvf_file"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"verified"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"legal_entity"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"company"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Intain Coaches, S.L."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"country"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ES"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"identifier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"scheme"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ES-CIF"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"B26832584"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"register"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"VIES, European Commission"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"expires_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-12-23T18:44:34Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"hosting"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"delegated_to_verifier"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The full answer also carries the public facts for any domain, verified or not: the company the site claims and whether the register confirms it, domain age, first archived copy, certificate type, the stated return window with a quote, open phishing lists and whether robots.txt lets agents in. Each fact comes with its source.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Without calling Fidem at all
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install cryptography
curl -O https://raw.githubusercontent.com/fidemcheck/mvf-spec/main/verify_mvf.py
python verify_mvf.py intain.io
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The reference checker fetches the shop's file, verifies the signature with the keys from your trust policy, checks the domain, the expiry date and the issuer's revocation list, and prints &lt;code&gt;VERIFIED&lt;/code&gt; or &lt;code&gt;NOT VERIFIED&lt;/code&gt; with the reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to read the answer
&lt;/h2&gt;

&lt;p&gt;The field to branch on is &lt;code&gt;decision&lt;/code&gt;, which is the same in REST, MCP and the reference checker:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;decision&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;verified&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The company proved control of the domain and was checked against the register. The only value where &lt;code&gt;identity_verified&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;domain_proven&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The shop proved the domain on the free plan. No signed file, no proof of representation.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;in_review&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The shop proved the domain and Fidem is reviewing the company.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;not_verified&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;No verification. This is not a sign of fraud: most shops simply have not done it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;revoked&lt;/code&gt;, &lt;code&gt;expired&lt;/code&gt;, &lt;code&gt;invalid_file&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;There was a verification and it no longer holds.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fictitious_demo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fidem's own example shop. Never pay.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;no_data&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The check could not finish yet (see below).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first lookup of a domain Fidem has never seen can take longer than an agent wants to wait, so the API and the MCP answer within about 7 seconds either way. If the full check has not finished, you get &lt;code&gt;lookup_status: "in_progress"&lt;/code&gt; and &lt;code&gt;retry_after_seconds: 15&lt;/code&gt;; the next call returns the complete, cached answer.&lt;/p&gt;

&lt;p&gt;A sensible policy for a buying agent is short: pay without asking only when &lt;code&gt;identity_verified&lt;/code&gt; is &lt;code&gt;true&lt;/code&gt;; otherwise show the user the public facts and let them decide. Fidem gives no score and no buying advice on purpose. It says who is behind the shop and how that was checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits, said plainly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The standard is new.&lt;/strong&gt; In the measurement above, no shop published a file yet. The first verified shops are arriving now, so most lookups will return the public facts, not a verification.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Registers.&lt;/strong&gt; Today the lookup matches EU VAT numbers (VIES) and UK companies (Companies House). The US and Latin America have no register connected yet, which is why only 1 of the 70 US shops measured got a register match.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sole traders.&lt;/strong&gt; When a shop is run by an individual, Fidem never publishes their name or tax ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What it is not.&lt;/strong&gt; It does not rate products, deliveries or service, and it is not a fraud score.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Free lookup and docs for agents: &lt;a href="https://fidemcheck.com/for-agents.html" rel="noopener noreferrer"&gt;https://fidemcheck.com/for-agents.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;MCP server: &lt;code&gt;https://fidemcheck.com/mcp&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Guides with tested code for &lt;a href="https://fidemcheck.com/langchain-check-online-shop.html" rel="noopener noreferrer"&gt;LangChain&lt;/a&gt;, the &lt;a href="https://fidemcheck.com/openai-agents-sdk-check-online-shop.html" rel="noopener noreferrer"&gt;OpenAI Agents SDK&lt;/a&gt; and the &lt;a href="https://fidemcheck.com/vercel-ai-sdk-check-online-shop.html" rel="noopener noreferrer"&gt;Vercel AI SDK&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;MVF spec and reference checker: &lt;a href="https://github.com/fidemcheck/mvf-spec" rel="noopener noreferrer"&gt;https://github.com/fidemcheck/mvf-spec&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Data from the 1,000-shop measurement: &lt;a href="https://fidemcheck.com/what-ai-agents-can-know-about-a-shop.html" rel="noopener noreferrer"&gt;https://fidemcheck.com/what-ai-agents-can-know-about-a-shop.html&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you build shopping or payment agents, we would like to hear what your agent needs to decide before it pays, and what would make you trust (or not trust) an answer like this one.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>ecommerce</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
