SACP SACP · 1.3.0-draft

Document 05

Answer engines

The Standard Agent Commerce Protocol (SACP) is an online API trade standard so an AI agent can buy on its own. AEO on this page means Answer Engine Optimization: a machine-readable /llms.txt, a page of quotable answers, FAQPage JSON-LD, and crawler permission. It is a draft extension. It does not change the canonical discovery example.

Det här är ett utkast för svarsmotorer, inte en ISO-standard.

Open material

The open material is this draft. It is the pages, the OpenAPI document, the JSON Schemas, the discovery example, /llms.txt, and /robots.txt. The draft is Apache-2.0. It is not an ISO standard. The plugins are not part of the open material.

Which shops need this?

These are shop platforms, counted on Swedish sites in 2026, not five named company websites. WooCommerce is PHP. Custom storefronts use the language that site is already written in. Shopify uses Liquid, or JavaScript when the storefront is headless. Abicart is a hosted Swedish shop. Magento is PHP. The open standard is the HTTP API any of those shops can publish.

  1. WooCommerce, PHP. Largest share in both public counts below.
  2. Custom storefronts, the site's own language. About a quarter of Swedish stores in the MyLeadFox count.
  3. Shopify, Liquid or JavaScript. Second in the WMTips count and third in the MyLeadFox count.
  4. Abicart, hosted Swedish shops. Five percent in the WMTips count of 36,993 Swedish websites on 26 October 2026.
  5. Magento, PHP. 4.2 percent in that same WMTips count.

WMTips on 26 October 2026: WooCommerce 38.1 percent, Shopify 17.6 percent, Abicart 5 percent, Magento 4.2 percent, then Wix eCommerce 3.3 percent. MyLeadFox on 5 November 2026, about 69,900 Swedish stores: WooCommerce 33.2 percent, custom 25.1 percent, Shopify 19.1 percent. Closed plugins for Wix and Magento are sold on the plugins page. This draft does not claim a plugin for Abicart.

Open API

The OpenAPI document (3.1, since 1.3.0-draft) defines GET /.well-known/sacp, GET /.well-known/jwks.json, POST /catalog/search, GET /catalog/product/{id}, POST /shipping/quote, POST /negotiation/offer, POST /collection/items, POST /checkout/prepare, GET /checkout/{checkout_id}, POST /checkout/{checkout_id}/confirm, POST /checkout/{checkout_id}/cancel and a signed webhook, with request and response schemas. Checkout is a handoff by default. Confirm exists only for autonomous checkout. It does not charge a card.

What is not settled

The three discovery names are not unified. The architecture names /.well-known/sacp.json and /.well-known/agent-commerce. The OpenAPI document uses GET /.well-known/sacp.

The OpenAPI document defines request and response schemas from 1.3.0-draft. The 1.0.0 skeleton had none.

Plugins

The ten shop plugins are closed software. Each one costs 5 USD and is sold only on this site. This site does not publish the source. A download is issued only after payment. They return a checkout URL. They do not create an order and they do not charge a card.

Questions

What is the Standard Agent Commerce Protocol (SACP)?

The Standard Agent Commerce Protocol (SACP) is an online API trade standard so an AI agent can buy on its own. The agent calls the shop API and receives a checkout handoff. Draft 1.3.0, December 2026. Not an ISO standard. The merchant stays merchant of record. The reference plugins return a checkout URL. They do not create an order and they do not charge a card.

What does AEO mean here?

AEO here means Answer Engine Optimization: a machine-readable /llms.txt, a page of quotable answers, FAQPage JSON-LD, and crawler permission. It is a draft extension. It does not change the canonical discovery example.

Is the Standard Agent Commerce Protocol an ISO standard?

No. Standard Agent Commerce Protocol is draft 1.2.0, December 2026. It is not an ISO standard.

Does this extension change the canonical discovery example?

No. The optional file discovery/aeo-extension.example.json does not replace discovery/example-well-known-sacp.json.

Are the three discovery names unified?

No. The three discovery names are not unified. The architecture names /.well-known/sacp.json and /.well-known/agent-commerce. The OpenAPI document uses GET /.well-known/sacp.

Does the OpenAPI document have response schemas?

Yes, from 1.3.0-draft. The OpenAPI document defines request and response schemas, security schemes, error responses and webhooks. The 1.0.0 skeleton had none.

Are the plugins part of this public draft?

No. The ten shop plugins are closed software. Each one costs 5 USD and is sold only on this site. This site does not publish the source. A download is issued only after payment.

Which shop platforms need this standard?

WooCommerce (PHP), custom storefronts (the site's own language), Shopify (Liquid or JavaScript), Abicart (hosted Swedish shops), and Magento (PHP). Those are the five groups in public 2026 counts of Swedish shops. The open standard is the HTTP API. It is not five named company websites.

What is open on this site?

The draft pages, /llms.txt, /robots.txt, the OpenAPI document, the JSON Schemas, and the discovery example are open. The draft is Apache-2.0. The plugins are closed and cost 5 USD each on this site.

What does the Verification Mark cost?

The SACP Verification Mark costs 5 USD. LineSpotting AB issues it only on this site. A certificate is valid only while this site lists that certificate id. A copied image is not a certificate. It is not an ISO certification.

Who stays merchant of record?

The merchant stays merchant of record. Payment authorization stays a handoff to a person. The example payment_handoff values are swish, iban, card, and crypto. identity_handoff is bankid.

Where is crawler permission recorded?

Crawler permission is the public /robots.txt. It allows the listed crawlers to read this draft. The machine-readable overview is /llms.txt.

What does the optional AEO extension add?

It adds extensions.aeo beside future_rails, with llms_txt set to /llms.txt and faq set to /aeo/. Version stays 1.3.0-draft. payment_handoff is swish, iban, card, and crypto. identity_handoff is bankid.

What if the price changes before checkout?

The approval is void. The shop re-quotes at checkout and compares the result with the approved terms. Under the default tolerance of zero, any price increase returns 409 terms_changed with a diff and issues no handoff URL. The customer must approve the new terms.

What are approved terms in SACP?

Approved terms are a snapshot of the exact offer the customer approved: merchant, items, quantity, unit price, taxes, shipping method, cost and ETA, total, currency and validity window. The agent hashes it with SHA-256 over canonical JSON, and the shop checks that hash again at checkout.

How does the customer verify what they are approving?

The confirmation screen must show exactly the bound terms, plus a short form of the terms hash and the expiry time. If anything differs from what was approved, the screen shows a diff and asks again. An agent's summary never replaces that screen.

Can a customer allow small price changes?

Yes, through the tolerance policy inside the snapshot. The default is zero for price increases. The principal may set a maximum percent, amount or total increase. A change of merchant, item, quantity or currency is never tolerated.

How does SACP separate an agent's ability to pay from its authority to commit?

Capability is that the agent can call the shop API. Authority is a signed mandate that names the principal, who delegated, the categories and merchants allowed, the spend limits and the validity. The shop or payment side verifies that the mandate covers the exact transaction before it commits. A valid API key alone is never authority.

What is a mandate in SACP?

A mandate is a signed object that states the principal, the delegation chain, the agent, scope, per-transaction and period limits, an approval policy reference, a status address for revocation, and a validity window. It is the only thing SACP accepts as authority to commit the buyer.

What happens when a purchase is above an approval threshold?

The shop answers 428 approval_required and names the approvers needed. Named human approvers sign an approval bound to the terms hash. Without enough valid approvals no handoff is issued.

Can SACP work with an external authority or governance provider?

Yes. SACP defines only the claims, the signature format and the check result. Any provider can issue mandates, hold the approval matrix and run the policy engine, as long as the shop trusts the issuer. No vendor is a dependency.

How is a mandate revoked?

The mandate carries a status address. Revocation applies at once to every new commit. The verifier must read a status no older than max_check_age_seconds, and refuses when the status cannot be read.

What are the SACP authority levels?

Consumer level: one person, a signed limit and validity, and approval at the handoff. Enterprise level: a delegation chain, scope, period limits, an approval matrix with named approvers, signed approval evidence, a fresh revocation check and an append-only audit trail. A shop that advertises neither behaves as in 1.0.0.

What is the difference between agentic shopping and agentic checkout?

Agentic shopping is discovery, browsing, comparison, cart building and recommendation. It creates no financial obligation. Agentic checkout is the agent executing or initiating a payment or an order commitment. In SACP that begins at POST /checkout/prepare. The two phases are labelled separately in the declared agent lane.

How does an agent declare which phase it is in?

Every request in the lane carries agent_phase, set to shopping or checkout, as the JSON field agent.agent_phase or the header SACP-Agent-Phase. A checkout request also declares checkout_mode: human_handoff, which issues a URL for a person to confirm, or autonomous, which is allowed only when the shop offers it and a mandate covers the exact terms.

Why should fraud teams score shopping and checkout separately?

A shopping request is not a payment attempt. A checkout request is. Fraud teams should label every event with the phase and keep separate scores, thresholds and playbooks. A high shopping volume is not by itself a checkout risk. A missing, false or mismatched phase is itself a risk signal.

How does an agent authenticate to a SACP shop?

With HTTP Message Signatures (RFC 9421) or mutual TLS. Every checkout call is signed over the method, the target URI, the body digest, the agent id and the idempotency key, with a window of at most 300 seconds and a one-time nonce. The key thumbprint must match the mandate. A valid signature identifies the agent. It is never authority to commit.

How does SACP stop a retry from buying twice?

Every state-changing POST carries an Idempotency-Key. The shop stores the first answer and returns it again, with Idempotent-Replayed: true, for the same key and request. A different request with the same key gets 422 idempotency_key_reuse, and a request that is still running gets 409 idempotency_in_progress. A checkout also commits at most once.

What error format does SACP use?

RFC 9457 problem+json. Every error has type, title, status and a stable code from the SACP error registry, for example terms_changed, approval_required, rate_limited or precondition_failed. The type is a URL on this site that explains the code. The registry is at /api/#error-registry and /files/sacp-error-registry.json.

What happens if the price changes between prepare and confirm?

Two checks run. If-Match with the checkout ETag catches a checkout that changed after it was read (412 precondition_failed). The terms_hash in the confirm body is compared with a fresh quote and catches a changed price (409 terms_changed with a diff). Under the default tolerance of zero any price increase is material, and nothing is committed.

Is there an OpenAPI document for SACP?

Yes. SACP 1.3.0-draft publishes an OpenAPI 3.1 document at /openapi.yaml and /openapi.json with request and response schemas, security schemes, error responses, and webhooks. It passes redocly lint with no warnings. The human-readable REST profile is at /api/.

What are the SACP REST conformance levels?

rest-core is shopping: TLS, versioning, problem+json, formats, pagination and rate limits. rest-checkout adds signatures, idempotency, ETag with If-Match, the checkout resource and the terms re-check at confirm. rest-enterprise adds signatures or mutual TLS on every call, signed webhooks, key rotation rules, audit ids and the optional autonomous confirm call. A shop declares its level in extensions.rest.level.

What is the SACP agent reference and why must a shop keep it?

The agent reference is key_id, mandate_id and checkout_id, plus a compact ref string. Every checkout answer, order and webhook event must carry it, and the shop must persist it through settlement and reconciliation. It lets a merchant, a PSP or an auditor tie an order to the exact agent key and mandate.

How does SACP keep a human in the loop when an agent buys at scale?

A person approves a policy once instead of each checkout. A standing mandate or batch approval holds limits per order, per day, per supplier and per category, and a validity window. Checkouts inside the policy may run autonomous. Anything outside it escalates to human_handoff with a 403 authority_denied. Review is by exception, and every decision is written to a per-mandate audit log.

Is a SACP mandate a signed, scoped and expiring token?

Yes. A mandate is a JWS signed with EdDSA or ES256 and verified against the issuer JWKS. It carries scope and limits that only narrow along the delegation chain, a required validity window, and the thumbprint of the key the agent signs with, so a copied mandate is useless without that key. Status is checked for revocation.

Should fraud and AML monitoring treat agent traffic like human traffic?

No. Agents differ in velocity, volume and basket patterns. Fraud and AML monitoring should score declared agent traffic against agent-specific baselines, per mandate and per agent key, and not against human baselines. A shop can pass the agent key id, mandate id, phase and checkout mode to PSP or bank screening.

Can a shop support only agentic shopping and not checkout?

Yes. A shop can implement the shopping phase alone (catalog, product, availability, shipping quote and readable terms) and claim conformance level rest-core of the REST profile. It does not advertise checkout.handoff, and it can add checkout later.

Rendered from docs/aeo.md in LinespottingOrg/AgentHandelStandard. The optional extension example does not replace discovery/example-well-known-sacp.json.