Tip amount, total, and per-person split for a restaurant bill
Tip amount, total, and per-person split for a restaurant bill.
10000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-17
updated
Provider
x402toll.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x1C9923489CD7D75Dd2f6735c48090b8bD4c7E5a9",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"billAmount": 1,
"numPeople": 1,
"tipPct": 18
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"inputs": {
"billAmount": 1,
"numPeople": 1,
"tipPct": 18
},
"perPersonTip": 0.18,
"perPersonTotal": 1.18,
"tipAmount": 0.18,
"totalWithTip": 1.18
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"billAmount": {
"type": "number"
},
"numPeople": {
"default": 1,
"type": "number"
},
"tipPct": {
"default": 18,
"type": "number"
}
},
"required": [
"billAmount"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": true,
"properties": {
"inputs": {
"type": "object"
},
"perPersonTip": {
"type": "number"
},
"perPersonTotal": {
"type": "number"
},
"tipAmount": {
"type": "number"
},
"totalWithTip": {
"type": "number"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402toll.com/v1/commerce/tip-split" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402toll.com/v1/commerce/tip-split");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402toll.com/v1/commerce/tip-split")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/14199.json, and this resource appears in /discovery/resources and /discovery/search.