{
  "$comment": "Test vector for the SACP REST profile 1.3.0-draft. The key pair was generated for this example and the private key was discarded. Verify with the public key in agent_public_jwk. Not a real agent.",
  "method": "POST",
  "target_uri": "https://shop.example.se/wp-json/agent-commerce/v1/checkout/prepare",
  "headers": {
    "Content-Type": "application/json",
    "SACP-Agent-Id": "agent:buyer-agent-7",
    "SACP-Agent-Phase": "checkout",
    "SACP-Checkout-Mode": "human_handoff",
    "Idempotency-Key": "\"8e03978e-40d5-43e8-bc93-6894a57f9324\"",
    "Content-Digest": "sha-256=:j3I/t+GrGfzTpIkdEmGSAE3bmjZs/2FZem/zZ2DZdGQ=:",
    "Signature-Input": "sacp1=(\"@method\" \"@target-uri\" \"content-type\" \"content-digest\" \"sacp-agent-id\" \"idempotency-key\");created=1796374870;expires=1796375170;nonce=\"n-5f1c0a77d2b94e3a\";keyid=\"dRkgvMoKa5Kry4nJd8QjnqBSOxvTzyWiXd9NVAFLYRQ\";alg=\"ed25519\";tag=\"sacp-1\"",
    "Signature": "sacp1=:GkCJ0X9+RJdd1hGrG3jAicurPKg4rnr+RPY38IQuIgHO3VGjmZmKoaW9cuDYNZibPtP44bGiAEr2uHNTDSRyAQ==:"
  },
  "body": "{\"agent\":{\"id\":\"agent:buyer-agent-7\",\"name\":\"Example Buyer Agent\",\"agent_phase\":\"checkout\",\"checkout_mode\":\"human_handoff\"},\"collection_id\":\"col_31c8\",\"items\":[{\"id\":\"sku-1042\",\"qty\":1}],\"shipping\":{\"method\":\"home-delivery\",\"destination\":{\"country\":\"SE\"}},\"payment_handoff\":\"swish\",\"approved_terms\":{\"snapshot\":{\"sacp_terms_version\":\"1.1\",\"quote_id\":\"q_8f3a2c71\",\"merchant\":{\"id\":\"shop.example.se\",\"name\":\"Example Shop AB\",\"origin\":\"https://shop.example.se\"},\"items\":[{\"id\":\"sku-1042\",\"name\":\"Trail running shoes, size 43\",\"qty\":1,\"unit_price\":\"1290.00\",\"line_total\":\"1290.00\",\"availability\":\"in_stock\"}],\"currency\":\"SEK\",\"subtotal\":\"1290.00\",\"taxes\":[{\"type\":\"vat\",\"rate\":\"0.25\",\"amount\":\"269.80\",\"included\":true}],\"shipping\":{\"method\":\"home-delivery\",\"carrier\":\"Example Carrier\",\"cost\":\"59.00\",\"eta_date\":\"2026-12-09\",\"destination\":{\"country\":\"SE\"}},\"total\":\"1349.00\",\"valid_from\":\"2026-12-04T09:00:00Z\",\"valid_until\":\"2026-12-04T09:15:00Z\",\"tolerance\":{\"price_increase_max_percent\":\"0\",\"price_increase_max_amount\":\"0.00\",\"shipping_cost_increase_max\":\"0.00\",\"eta_delay_max_days\":0,\"total_increase_max\":\"0.00\"}},\"terms_hash\":\"sha256:8042bb8bd734bf15b1437a5630335263b0f6494700f4d92ef461049c1235f1fb\"},\"webhook\":{\"url\":\"https://agent.example/hooks/sacp\",\"events\":[\"checkout.confirmed\",\"checkout.expired\"]}}",
  "signature_base": "\"@method\": POST\n\"@target-uri\": https://shop.example.se/wp-json/agent-commerce/v1/checkout/prepare\n\"content-type\": application/json\n\"content-digest\": sha-256=:j3I/t+GrGfzTpIkdEmGSAE3bmjZs/2FZem/zZ2DZdGQ=:\n\"sacp-agent-id\": agent:buyer-agent-7\n\"idempotency-key\": \"8e03978e-40d5-43e8-bc93-6894a57f9324\"\n\"@signature-params\": (\"@method\" \"@target-uri\" \"content-type\" \"content-digest\" \"sacp-agent-id\" \"idempotency-key\");created=1796374870;expires=1796375170;nonce=\"n-5f1c0a77d2b94e3a\";keyid=\"dRkgvMoKa5Kry4nJd8QjnqBSOxvTzyWiXd9NVAFLYRQ\";alg=\"ed25519\";tag=\"sacp-1\"",
  "agent_public_jwk": {
    "kty": "OKP",
    "crv": "Ed25519",
    "x": "U7HLWFadAE_umsCK7CLuBTv4RNf2KqvsBVioPsGsQS0",
    "kid": "dRkgvMoKa5Kry4nJd8QjnqBSOxvTzyWiXd9NVAFLYRQ",
    "use": "sig",
    "alg": "EdDSA"
  }
}
