{
  "schema_version": "1.0",
  "id": "receipts",
  "title": "Receipts",
  "summary": "Payment and signed verification receipt retrieval.",
  "sections": {
    "kinds": [
      "payment record",
      "verification receipt"
    ],
    "format": "Canonical JSON with SHA-256 payload hash and Ed25519 signature when signing keys are provisioned.",
    "amendments": "Corrections require a new amendment receipt; historical signed payloads are not rewritten.",
    "workflow": [
      "GET /v1/jobs/{job_id}/receipt",
      "verify payload_hash over canonical payload JSON",
      "POST /v1/receipts/verify",
      "GET /v1/signing-keys",
      "POST /v1/receipts/{receipt_id}/deliver",
      "GET /v1/jobs/{job_id}/delivery"
    ]
  },
  "examples": {
    "retrieve": {
      "method": "GET",
      "url": "/v1/jobs/job_123/receipt"
    },
    "deliver": {
      "method": "POST",
      "url": "/v1/receipts/rcpt_123/deliver",
      "body": {
        "email": "customer@example.com"
      }
    }
  },
  "version": "2026-08-v6",
  "effective_at": "2026-08-10T00:00:00Z",
  "content_hash": "sha256:464b2f5e0a8dc6f59e1b3fd42a83ba432e3d35a5818d4f1050b0986c33207dad"
}