AgentHandel
SACP · 1.3.0-draft

Document 04

Discovery document

An agent reads one well-known file, then calls only the capabilities that file declares.

The architecture names two locations: /.well-known/sacp.json or /.well-known/agent-commerce. The OpenAPI document also lists GET /.well-known/sacp. This documentation host serves all three paths with the same JSON. A merchant shop would publish its own document at those paths; the file on this host describes the specification itself, not a catalog.

Merchant example: example-well-known-sacp.json. Specification discovery: /.well-known/sacp.json.

{
  "protocol": "sacp",
  "version": "1.3.0-draft",
  "name": "AgentHandel Standard",
  "capabilities": ["catalog.search", "catalog.product", "shipping.quote", "negotiation.offer", "collection.items", "checkout.handoff", "checkout.status", "terms.binding", "authority.mandate", "agent.lane", "rest.profile"],
  "endpoints": {
    "catalog_search": "/wp-json/agent-commerce/v1/catalog/search",
    "catalog_product": "/wp-json/agent-commerce/v1/catalog/product/{id}",
    "shipping_quote": "/wp-json/agent-commerce/v1/shipping/quote",
    "negotiation_offer": "/wp-json/agent-commerce/v1/negotiation/offer",
    "collection_items": "/wp-json/agent-commerce/v1/collection/items",
    "checkout_prepare": "/wp-json/agent-commerce/v1/checkout/prepare",
    "checkout_status": "/wp-json/agent-commerce/v1/checkout/{checkout_id}",
    "checkout_cancel": "/wp-json/agent-commerce/v1/checkout/{checkout_id}/cancel",
    "jwks": "/.well-known/jwks.json"
  },
  "payment_handoff": ["swish", "iban", "card", "crypto"],
  "identity_handoff": ["bankid"],
  "extensions": {
    "future_rails": ["ekrona", "digital_euro"],
    "terms_binding": {"hash": "sha256", "canonicalization": "jcs-rfc8785", "max_validity_seconds": 900, "signed_quotes": false},
    "authority": {"levels": ["consumer", "enterprise"], "mandate_formats": ["jws"], "trusted_issuers": ["https://authority.example.org"]},
    "agent_lane": {"phases": ["shopping", "checkout"], "checkout_modes": ["human_handoff"], "identification": ["body.agent", "SACP-Agent-Id"], "shopping_rate_limit": {"requests_per_minute": 60, "burst": 20}, "checkout_rate_limit": {"requests_per_minute": 10, "burst": 3}},
    "rest": {"profile": "1.3", "level": "rest-checkout", "versions": ["1"], "openapi": "https://agentictradestandard.org/openapi.json", "jwks_uri": "/.well-known/jwks.json", "signature": {"algorithms": ["ed25519", "ecdsa-p256-sha256"], "required_for": ["checkout"], "max_clock_skew_seconds": 60, "max_validity_seconds": 300, "mtls": false}, "idempotency": {"retention_seconds": 86400}, "pagination": {"default_limit": 20, "max_limit": 100}, "max_body_bytes": 1048576, "webhooks": true}
  }
}

Fields in this example

FieldThis draft
protocolsacp
version1.3.0-draft
capabilitiescatalog.search, catalog.product, shipping.quote, negotiation.offer, collection.items, checkout.handoff, checkout.status, terms.binding, authority.mandate, agent.lane, rest.profile
endpointsWooCommerce REST paths under /wp-json/agent-commerce/v1/, including negotiation, item collection, and purchase
payment_handoffswish, iban, card, crypto. A shop may add another name.
identity_handoffbankid. Identity, not a payment.
extensions.future_railsekrona, digital_euro
extensions.terms_bindingHash, canonicalization, maximum validity and whether quotes are signed. See approved terms.
extensions.authorityLevels, mandate formats and trusted issuers. See authority.
extensions.agent_lanePhases, checkout modes, identification and rate limits. See shopping and checkout.
extensions.restREST profile level, versions, OpenAPI address, key directory, signature policy, idempotency retention, pagination limits, body limit and webhooks. See the REST profile.

Rendered from discovery/example-well-known-sacp.json.