AgentHandel
SACP · 1.0.0-draft

Document 03 · OpenAPI 3.1.0

API skeleton

Catalog search, shipping quotes, and payment handoff for AI agents. Request and response bodies are not fully specified in this draft.

Server template: https://example.com/wp-json/agent-commerce/v1

Stable machine-readable copy: /openapi/sacp-v1.yaml (also at /files/sacp-v1.yaml). Served as application/yaml.

POST /catalog/search

Search products. JSON body is required.

FieldType
querystring
max_pricenumber

Response 200: matching products. The product schema is not defined yet.

GET /catalog/product/{id}

Product details. id is a required path string. Response 200: product.

POST /shipping/quote

Shipping quotes. JSON body is required. The body schema is an open object in this draft. Response 200: shipping options.

POST /checkout/prepare

Prepare checkout handoff. JSON body is required. The body schema is an open object in this draft.

Response 200: payment handoff payload (Swish, BankID, and later rails).

The merchant stays merchant of record. Payment authorization stays a human-in-the-loop handoff. Rendered from openapi/sacp-v1.yaml.