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 skeleton 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.0.0-draft",
"name": "AgentHandel Standard",
"capabilities": ["catalog.search", "catalog.product", "shipping.quote", "checkout.handoff"],
"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",
"checkout_prepare": "/wp-json/agent-commerce/v1/checkout/prepare"
},
"payment_handoff": ["swish", "bankid"],
"extensions": {
"future_rails": ["ekrona", "digital_euro", "cards"]
}
}
Fields in this example
| Field | This draft |
|---|---|
protocol | sacp |
version | 1.0.0-draft |
capabilities | catalog.search, catalog.product, shipping.quote, checkout.handoff |
endpoints | WooCommerce REST paths under /wp-json/agent-commerce/v1/, including product detail |
payment_handoff | swish, bankid |
extensions.future_rails | ekrona, digital_euro, cards |
Rendered from discovery/example-well-known-sacp.json.