{"slug":"relay-straelo-com-x402-payment-preflight-decision-fae261","title":"Check an x402 payment request before signing or paying and return a deterministi","host":"relay.straelo.com","method":"POST","resource":"https://relay.straelo.com/x402-payment-preflight-decision","category":"code","description":"Check an x402 payment request before signing or paying and return a deterministic PAY, REVIEW or DO_NOT_PAY decision.\nUSE WHEN: agent needs deterministic verification of a payment requirement before deciding whether to pay.\nDO NOT USE WHEN: agent expects this tool to execute the payment.\nOffline/rea","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":572,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"intent":{"amount_tolerance":"0","expected_amount":"0.005","resource":"https://relay.straelo.com/x402-payment-preflight-decision","seller":"STRAELO","service":"Straelo Relay"},"payment_required":{"accepts":[{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","payTo":"0x267ead21c0a5c1bf7e44cb357641556edc52d232","scheme":"exact"}],"resource":{"serviceName":"Straelo Relay","url":"https://relay.straelo.com/x402-payment-preflight-decision"},"x402Version":2}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"intent":{"description":"Buyer-declared payment policy: expected seller label, service, resource URL, and optional payment constraints (asset, network, destination, amount, tolerance) used to evaluate consistency against the observed x402 challenge.","properties":{"amount_tolerance":{"description":"Optional permitted USDC decimal increase.","type":"string"},"expected_amount":{"description":"Optional expected USDC decimal amount, not atomic units.","type":"string"},"expected_asset":{"description":"Optional expected EVM asset address.","type":"string"},"expected_network":{"description":"Optional expected CAIP-2 network.","type":"string"},"expected_pay_to":{"description":"Optional expected EVM payment destination.","type":"string"},"resource":{"description":"Expected exact absolute HTTP(S) resource URL.","format":"uri","type":"string"},"seller":{"description":"Caller-supplied seller label included in the fingerprint; identity is not externally verified.","type":"string"},"service":{"description":"Expected resource.serviceName.","type":"string"}},"required":["seller","service","resource"],"type":"object"},"payment_required":{"description":"Observed x402 v2 PAYMENT-REQUIRED challenge decoded as JSON.","type":"object"},"previous_snapshot":{"description":"Optional prior snapshot for stateless material-change detection against a prior result.","type":"object"}},"required":["intent","payment_required"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"assessment":{"description":"Consistency decision only; never a safety rating.","enum":["CONSISTENT","INCONSISTENT","REVIEW_REQUIRED"],"type":"string"},"changes":{"description":"Material changes between current result and previous_snapshot; any change drives REVIEW when no mismatch exists.","items":{"type":"object"},"type":"array"},"checks_performed":{"description":"Consistency checks actually executed for this request.","items":{"type":"string"},"type":"array"},"checks_skipped":{"description":"Checks skipped because the corresponding expected field was not declared in intent.","items":{"type":"string"},"type":"array"},"coverage":{"description":"Scope of the offline comparison: what is and is not evaluated by this preflight.","type":"object"},"decision":{"description":"Deterministic preflight payment decision: PAY when intent matches the observed requirement and no material change; REVIEW when consistent but materially changed from previous_snapshot; DO_NOT_PAY when any intent field mismatches the observed requirement.","enum":["PAY","REVIEW","DO_NOT_PAY"],"type":"string"},"evidence":{"description":"Derived solely from the supplied intent and payment_required; contains the parsed payment requirement, seller label, and resource domain.","type":"object"},"external_calls":{"description":"Always empty in this offline MVP.","items":{"type":"string"},"type":"array"},"matched":{"description":"Intent fields that matched the observed x402 payment requirement.","type":"object"},"mismatched":{"description":"Intent fields that mismatched the observed x402 payment requirement; any mismatch drives DO_NOT_PAY.","type":"object"},"payment_fingerprint":{"description":"SHA-256 of canonical material payment fields.","type":"string"},"reason_codes":{"description":"Machine-readable codes explaining the decision; mismatch codes when DO_NOT_PAY, change codes when REVIEW.","items":{"type":"string"},"type":"array"},"snapshot":{"description":"Reusable stateless comparison state for detecting material changes on a subsequent call.","type":"object"}},"required":["assessment","decision","reason_codes","matched","mismatched","changes","payment_fingerprint","checks_performed","checks_skipped","evidence","coverage","external_calls","snapshot"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":565,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":627,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":564,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":570,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":588,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":572,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":573,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":571,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":575,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":570,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":573,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":573,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":568,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":579,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":569,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":576,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":566,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":572,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":575,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":579,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":895,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":861,"error":null}],"description_full":"Check an x402 payment request before signing or paying and return a deterministic PAY, REVIEW or DO_NOT_PAY decision.\nUSE WHEN: agent needs deterministic verification of a payment requirement before deciding whether to pay.\nDO NOT USE WHEN: agent expects this tool to execute the payment.\nOffline/read-only preflight: no network calls, signing, settlement, or payment execution. Decision derives from comparing declared intent against the supplied x402 v2 PAYMENT-REQUIRED; mismatches yield","last_updated":"2026-11-05T08:28:57.948Z","schemes":["exact"]}