Skip to content
Fourohtwo

Spend Receipt

www.omenz.org/api/tollbooth/v1/spend-receipt

Spend Receipt: one signed receipt per purchase: what your agent bought, why, what it cost (verified on Base from the tx hash or PAYMENT-RESPONSE) and what came back (checked against the seller's advertised output). GOOD_BUY / PAID_NOT_DELIVERED / PAID_PARTLY_DELIVERED / PAYMENT_NOT_CONFIRMED. Ed25519-signed, verifiable offline. Payment Verify + Delivery Check in one call. By OMENZ.

BaseAnswering
POSThttps://www.omenz.org/api/tollbooth/v1/spend-receipt

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.omenz.org/api/tollbooth/v1/spend-receipt", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"agent":"worker-3","delivered":{"status":"up"},"expected_amount_usd":0.001,"job_id":"job-42","method":"GET","purpose":"check vendor before job","tx_hash":"0x...","url":"https://www.omenz.org/api/tollbooth/v1/alive"}),
});
console.log(await res.json());

Example input

{
  "agent": "worker-3",
  "delivered": {
    "status": "up"
  },
  "expected_amount_usd": 0.001,
  "job_id": "job-42",
  "method": "GET",
  "purpose": "check vendor before job",
  "tx_hash": "0x...",
  "url": "https://www.omenz.org/api/tollbooth/v1/alive"
}