Example inputPOST /api/v1/x402/refund-policy-preflight
{
"policy": {
"window_hours": 24,
"min_usdc": 0.001
},
"purchase": {
"age_hours": 2,
"amount_usdc": 0.01,
"delivered": true
}
}
Portable intent card · commercial-operations
Evaluate simple refund eligibility flags against policy JSON. Call when agents checking refund windows before opening disputes. Returns eligible and reasons as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/refund-policy-preflight -m POST -H 'x-delx-source: intent-card-refund-policy-preflight-api' --max-amount 0.001 -b '{"policy":{"window_hours":24,"min_usdc":0.001},"purchase":{"age_hours":2,"amount_usdc":0.01,"delivered":true}}'
{
"policy": {
"window_hours": 24,
"min_usdc": 0.001
},
"purchase": {
"age_hours": 2,
"amount_usdc": 0.01,
"delivered": true
}
}
{
"intent": "Refund Policy Preflight for an agent workflow",
"tool_name": "util_refund_policy_preflight",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/refund-policy-preflight-api.json"
}
Portable and inspectable