Api Endpoint

GW8 Should I Pay

[Payment decision: may this agent pay, plus a signed audit record] May this agent pay this seller, under the buyer's rules? One call runs the spend-policy check and the x402 seller reputation check and returns one verdict (pay / dont_pay / ask_human), reasons, sub-results, and a signed audit record (Ed25519 decisionReceipt plus X-GW8-Receipt / X-GW8-Receipt-Signature). Verify free at POST /api/receipt/verify; public key at GET /.well-known/gw8-receipt-key. Free when seller data is down. $0.02.

Open interactive test console

Offering

Provider
micro-saas-agent.onrender.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://micro-saas-agent.onrender.com/api/pay/should-i-pay
MIME type
application/json
First seen
2026-10-23T22:14:09.550Z
Last seen
Tags
should I pay, spend policy, seller reputation, payment decision, X402, agent-payments, risk-check, spend-policy, seller-reputation

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.02 USDC
Atomic price: 20000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.02 USDC
Atomic price: 20000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xB4527dccaC81eB73d4988A51a4cb1FBBF2C3CaBd"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "20000",
    "payTo": "0xB4527dccaC81eB73d4988A51a4cb1FBBF2C3CaBd"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "payTo": "3ZgRNAMaM39WQt7rvwMf7tZjQakZqA5ieULpoQuo4chD"
  }
]

Observed health

Status
Healthy
Latest latency
35 ms
Average latency
65 ms
HTTP status
200
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "payment": {
          "type": "object",
          "description": "Proposed payment: amount, currency, recipient, category, chain, and time.",
          "example": {
            "amount": "0.05",
            "currency": "USDC",
            "chain": "base",
            "recipientId": "0x1111111111111111111111111111111111111111",
            "merchantCategory": "data-api",
            "timestamp": "2026-10-21T15:30:00Z",
            "agentId": "research-agent-1"
          }
        },
        "policy": {
          "type": "object",
          "description": "Buyer spend policy: limits, rolling cap, lists, hours, assets, and chains.",
          "example": {
            "currency": "USDC",
            "perTxLimit": "1",
            "rollingCap": {
              "limit": "10",
              "spentSoFar": "2.40"
            },
            "allowedChains": [
              "base"
            ],
            "allowedAssets": [
              "USDC"
            ],
            "requireApprovalAbove": "0.50"
          }
        },
        "seller": {
          "type": "object",
          "description": "x402 seller to score: Base address and/or https endpoint.",
          "example": {
            "address": "0x1111111111111111111111111111111111111111"
          }
        },
        "sellerRules": {
          "type": "object",
          "description": "What to do on a caution or unknown seller reputation, and an optional minimum score.",
          "example": {
            "onCaution": "ask_human",
            "onUnknown": "ask_human"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "payment",
        "policy",
        "seller"
      ],
      "description": "JSON body for this paid call."
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "description": "[Payment decision: may this agent pay, plus a signed audit record] May this agent pay this seller, under the buyer's rules? One call runs the spend-policy check and the x402 seller reputation check and returns one verdict (pay / dont_pay / ask_human), reasons, sub-results, and a signed audit record (Ed25519 decisionReceipt plus X-GW8-Receipt / X-GW8-Receipt-Signature). Verify free at POST /api/receipt/verify; public key at GET /.well-known/gw8-receipt-key. Free when seller data is down. $0.02.",
  "properties": {
    "type": {
      "type": "string",
      "const": "json"
    },
    "example": {
      "type": "object",
      "properties": {
        "engine": {
          "type": "string",
          "description": "Rule engine id for the should-I-pay decision."
        },
        "verdict": {
          "type": "string",
          "description": "pay, dont_pay, or ask_human."
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "description": "The source field in this route's paid JSON."
              },
              "action": {
                "type": "string",
                "description": "The action field in this route's paid JSON."
              },
              "detail": {
                "type": "string",
                "description": "The detail field in this route's paid JSON."
              }
            },
            "description": "The reasons item field in this route's paid JSON."
          },
          "description": "Which spend-policy or seller-reputation rule produced the verdict."
        },
        "spend": {
          "type": "object",
          "properties": {
            "decision": {
              "type": "string",
              "description": "The decision field in this route's paid JSON."
            }
          },
          "description": "Spend-policy sub-result. allow, deny, or needs_approval."
        },
        "seller": {
          "type": "object",
          "properties": {
            "verdict": {
              "type": "string",
              "description": "The verdict field in this route's paid JSON."
            },
            "score": {
              "type": "integer",
              "description": "The score field in this route's paid JSON."
            }
          },
          "description": "Seller-reputation sub-result: verdict and 0-100 score."
        },
        "decisionReceipt": {
          "type": "object",
          "properties": {
            "endpoint": {
              "type": "string",
              "description": "The endpoint field in this route's paid JSON."
            },
            "accessType": {
              "type": "string",
              "description": "The access type field in this route's paid JSON."
            },
            "query": {
              "type": "object",
              "properties": {
                "verdict": {
                  "type": "string",
                  "description": "The verdict field in this route's paid JSON."
                },
                "spendDecision": {
                  "type": "string",
                  "description": "The spend decision field in this route's paid JSON."
                },
                "sellerVerdict": {
                  "type": "string",
                  "description": "The seller verdict field in this route's paid JSON."
                },
                "sellerScore": {
                  "type": "integer",
                  "description": "The seller score field in this route's paid JSON."
                },
                "requestSha256": {
                  "type": "string",
                  "description": "The request sha256 field in this route's paid JSON."
                }
              },
              "description": "The query field in this route's paid JSON."
            },
            "signed": {
              "type": "boolean",
              "description": "The signed field in this route's paid JSON."
            },
            "alg": {
              "type": "string",
              "description": "The alg field in this route's paid JSON."
            },
            "verify_url": {
              "type": "string",
              "description": "The verify url field in this route's paid JSON."
            }
          },
          "description": "Receipt bound to this should-I-pay verdict (signature present when signing is enabled)."
        }
      },
      "description": "One pay, dont_pay, or ask_human verdict from spend policy and seller reputation."
    }
  },
  "required": [
    "type",
    "example"
  ]
}