{
  "protocol": "sacp",
  "version": "1.3.0-draft",
  "name": "Standard Agent Commerce Protocol",
  "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://standardagentcommerceprotocol.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
    }
  }
}
