code402 / tools / pod-verify-delivery

POD-1 Proof-of-Delivery Attestation Verifier — pay-per-call API

$0.000999 per call · 20 free calls/day · no signup · pay with card credits or a signed USDC voucher (x402)

Physical IoT and off-chain service delivery verification using integer E7 point-in-polygon geometry and hardware sensor threshold validation (POD-1). Prevents floating-point coordinate drift without custodial escrow.

Honest scope: Hardware-attested point-in-polygon delivery verification using integer E7 coordinates (POD-1). Prevents floating-point coordinate drift without custodial escrow.

Try it (first 20 calls/day free)

curl -X POST https://code402.dev/v1/tools/pod-verify-delivery/call \
  -H "content-type: application/json" \
  -d '{"mandate":{"mandate_id":"mandate-99","order_ref":"ord-99","geofence":{"type":"polygon_e7","ring":[[377749000,-1224194000],[377759000,-1224194000],[377759000,-1224094000],[377749000,-1224094000]]},"window":{"not_before":1700000000,"not_after":1700003600},"max_accuracy_m":50,"required_signers":["device"]},"attestation":{"mandate_id":"mandate-99","device_id":"DEV-1","device_pubkey":"0x01","scheme":1,"geo":{"lat_e7":377750000,"lon_e7":-122415000,"accuracy_m":10},"ts":1700001000,"counter":1,"signatures":{"device":"0x01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"}},"last_seen_counter":0}'

No key needed for the free tier. When the free quota is used up, the API replies HTTP 402 with the exact price — agents sign the x402 voucher and retry; humans buy card credits. Every paid response carries a signed receipt you can verify offline.

Run it in the playground (free)Pay by card — credits, no crypto

Input parameters

FieldTypeMeaning
mandate (required)objectDelivery mandate with geofence polygon (lat_e7/lon_e7) and time window
attestation (required)objectSigned IoT device delivery attestation with coordinates, counter, and signatures
last_seen_counternumberAnti-replay counter from previous delivery attestations

Response

Top-level fields: ok, standard, mandate_id, verdict, verified, details, attestation_receipt_digest. Paid responses also carry a signed XDR-1 receipt.

All code402 tools

aci-trust-lookupdip-file-disputecsp-commitment-createiso20022-validateiso20022-to-x402-intentiban-checklei-checkvat-mod97-checkcompany-number-formatswift-bic-checkaba-routing-checkein-format-checkifsc-checkabn-checkgstin-checkisin-checksedol-checkisbn-checkean13-checkluhn-checke164-checkpre-disbursement-guardvendor-onboarding-packrent-deposit-guardrental-listing-riskrental-verdictsettlement-history-checkbalance-checkerc20-balancetx-activityblock-infobatch-validatecontext-distillcrypto-ticker

Machine-readable catalog: llms-full.txt · MCP manifest · OpenAPI. Operated by JUANA LIMITED (UK Co. No. 14043409). Non-custodial: USDC settles payer→seller directly on Base.