hesaplayıcı
Menu

Tip Calculator: API and MCP

Tip Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/finance.tip/mcp/finance

Id
finance.tip
Version
1.0.0
Access
Free
Tool page
Tip Calculator
Schema
GET /api/v1/tools/finance.tip

Input

FieldTypeConstraintsDefaultDescription
bill (required)number> 0, ≤ 1,000,000,000Bill amount · The amount on the receipt, tax included
tipTypestringpercent | amountpercentTip type
tipPercentnumber≥ 0, ≤ 100Tip percent (%)
tipAmountnumber≥ 0, ≤ 1,000,000,000Tip amount
peopleinteger≥ 1, ≤ 1001Number of people
tipBasestringbill | beforeTaxbillTip on
taxRatenumber≥ 0, ≤ 100Tax rate in the bill (%) · Sales tax or VAT
roundingstringnone | upnoneShare per person

Output

FieldTypeDescription
tipnumberTip
tipPercentnumberTip percent (%)
totalnumberTotal (bill + tip)
sharenumberShare per person
tipPerPersonnumberTip per person
taxAmountnumberTax in the bill
basenumberAmount before tax
roundedSharenumberShare per person (rounded)
roundedTotalnumberTotal (rounded)
roundingDifferencenumberRounding difference
roundedTipnumberTip with rounding
roundedTipPercentnumberTip percent with rounding (%)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/finance.tip/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"bill":1200,"tipType":"percent","tipPercent":10,"people":4,"tipBase":"bill","rounding":"none"},"locale":"en"}'
Example answer
{
  "output": {
    "tip": 120,
    "tipPercent": 10,
    "total": 1320,
    "share": 330,
    "tipPerPerson": 30
  },
  "steps": [
    {
      "id": "tip",
      "formula": "tip = bill × tip percent / 100",
      "substitution": "tip = 1,200.00 × 10 / 100",
      "value": 120
    },
    {
      "id": "total",
      "formula": "total = bill + tip",
      "substitution": "total = 1,200.00 + 120.00",
      "value": 1320
    },
    {
      "id": "share",
      "formula": "share per person = total / people",
      "substitution": "share per person = 1,320.00 / 4",
      "value": 330
    },
    {
      "id": "tipPerPerson",
      "formula": "tip per person = tip / people",
      "substitution": "tip per person = 120.00 / 4",
      "value": 30
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/finance/tip-calculator",
    "title": "Tip Calculator"
  }
}