{
  "sample": true,
  "notice": "SAMPLE ONLY. Testnet-style placeholders. Not a real payment, tx hash, wallet or deliverable. payTo is always 0xPAYTO_PLACEHOLDER — never a live wallet.",
  "receipt_id": "spec72-rcpt-SAMPLE-0001",
  "sku": "spec72-audit",
  "price_usd": 99,
  "scope": {
    "includes": "Agent drop-off map + 5 PASS/FAIL prompts for one skill, delivered in 48h",
    "not_included": "Code changes, live sessions, machine access"
  },
  "deliverable": {
    "name": "AUDIT-sample.md",
    "sha256": "dbeb52261e5da72bb042f0aa56461ec6814493a977a9ff0a22eff77653cc2f6d",
    "delivered_at": "2026-11-13T15:00:00Z"
  },
  "x402": {
    "x402Version": 2,
    "header_names": {
      "challenge": "PAYMENT-REQUIRED",
      "retry": "PAYMENT-SIGNATURE",
      "settlement": "PAYMENT-RESPONSE",
      "note": "Live Worker answers unpaid POST /api/a2a/order/{sku} with HTTP 402, a JSON body, and the same payload base64-encoded in PAYMENT-REQUIRED. Retry with PAYMENT-SIGNATURE. On success the Worker returns PAYMENT-RESPONSE (base64 SettlementResponse). CORS also allows X-PAYMENT and exposes X-PAYMENT-RESPONSE as x402 v1 Base compatibility; new clients should use the v2 names."
    },
    "sample_402": {
      "http_status": 402,
      "error": "PAYMENT-SIGNATURE header is required",
      "x402Version": 2,
      "resource": {
        "url": "https://spec72.dev/api/a2a/order/audit",
        "description": "SAMPLE. Spec72 Audit — 48h SLA, async delivery (poll status_url or callback_url).",
        "mimeType": "application/json",
        "serviceName": "Spec72 / Opslane",
        "tags": ["agent-skills", "security", "audit", "ops"],
        "iconUrl": "https://spec72.dev/brand/spec72-seal.svg"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:84532",
          "amount": "99000000",
          "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
          "payTo": "0xPAYTO_PLACEHOLDER",
          "maxTimeoutSeconds": 300,
          "extra": {
            "name": "USD Coin",
            "version": "2"
          }
        }
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "inputs": {
                  "skill_md": "---\\nname: my-skill\\ndescription: SAMPLE\\n---\\n# Steps\\n..."
                },
                "buyer": {
                  "agent": "your-agent-name",
                  "email": "optional@example.com"
                },
                "callback_url": "https://your-agent.example/webhooks/spec72"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "order_id": "a2a_…",
                "status": "INTAKE_RECEIVED",
                "due": "ISO-8601",
                "status_url": "https://spec72.dev/api/a2a/orders/a2a_…?t=…"
              }
            }
          }
        }
      }
    },
    "sample_payment_signature_shape": {
      "x402Version": 2,
      "resource": "(echo of PAYMENT-REQUIRED.resource)",
      "accepted": "(the exact accepts[] entry you paid — scheme, network, amount, asset, payTo placeholder, extra)",
      "payload": {
        "signature": "0xSAMPLE_SIGNATURE_PLACEHOLDER"
      }
    }
  },
  "rails": [
    {
      "rail": "x402 v2 (exact)",
      "network": "eip155:84532",
      "network_name": "Base Sepolia (testnet) — SAMPLE, not the live mainnet rail",
      "asset": "USDC",
      "asset_contract": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "payTo": "0xPAYTO_PLACEHOLDER",
      "scheme": "exact",
      "amount": "99.00",
      "amount_atomic": "99000000",
      "maxTimeoutSeconds": 300,
      "tx_hash": "0x5a4d504c45000000000000000000000000000000000000000000000000000000",
      "timestamp": "2026-11-13T14:58:12Z",
      "verify": {
        "isValid": true,
        "payer": "0xSAMPLE_PAYER_PLACEHOLDER"
      },
      "settle": {
        "success": true,
        "transaction": "0x5a4d504c45000000000000000000000000000000000000000000000000000000",
        "network": "eip155:84532",
        "payer": "0xSAMPLE_PAYER_PLACEHOLDER"
      },
      "headers": {
        "PAYMENT-REQUIRED": "(base64 PaymentRequired, returned with HTTP 402; body uses the same JSON as sample_402)",
        "PAYMENT-SIGNATURE": "(base64 PaymentPayload, sent on retry; see sample_payment_signature_shape)",
        "PAYMENT-RESPONSE": "eyJzdWNjZXNzIjp0cnVlLCJ0cmFuc2FjdGlvbiI6IjB4NWE0ZDUwNGM0NTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsIm5ldHdvcmsiOiJlaXAxNTU6ODQ1MzIiLCJwYXllciI6IjB4U0FNUExFX1BBWUVSX1BMQUNFSE9MREVSIn0="
      },
      "explorer_url_format": "https://sepolia.basescan.org/tx/{tx_hash}",
      "explorer_note": "Placeholder hash: the link format is shown, it will not resolve."
    },
    {
      "rail": "Spec72 XRPL quote flow (not x402)",
      "network": "xrpl:1",
      "network_name": "XRPL Testnet — SAMPLE",
      "asset": "RLUSD or XRP (XRP priced at quote time, valid 15 min; DestinationTag required)",
      "amount": "99.00",
      "quote": "POST https://spec72.dev/api/a2a/xrpl/quote/{sku}, valid 15 min; XRP alternative priced at quote time; DestinationTag required",
      "destination_tag": 72000001,
      "tx_hash": "SAMPLE0000000000000000000000000000000000000000000000000000000000",
      "timestamp": "2026-11-13T14:58:40Z",
      "result": {
        "TransactionResult": "tesSUCCESS",
        "validated": true,
        "ledger_index": "SAMPLE",
        "finality": "final: included in a validated ledger"
      },
      "explorer_url_format": "https://testnet.xrpl.org/transactions/{tx_hash}",
      "explorer_note": "Placeholder hash: the link format is shown, it will not resolve."
    }
  ],
  "references": [
    "https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md",
    "https://docs.cdp.coinbase.com/x402/migration-guide",
    "https://xrpl.org/docs/concepts/transactions/finality-of-results",
    "https://spec72.dev/llms.txt"
  ]
}
