{
  "tool_id": "tip_calculator",
  "slug": "tip-calculator",
  "path": "/tip-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/tip-calculator/?<params>",
  "sample_input": {
    "tool": "tip_calculator",
    "bill_amount": 82,
    "tip_percent": 20,
    "number_of_people": 2,
    "split_mode": "even",
    "custom_shares": [],
    "round_up": false
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "bill_amount": {
        "type": "integer"
      },
      "tip_percent": {
        "type": "integer"
      },
      "number_of_people": {
        "type": "integer"
      },
      "split_mode": {
        "type": "string"
      },
      "custom_shares": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "round_up": {
        "type": "boolean"
      }
    },
    "required": [
      "tool",
      "bill_amount",
      "tip_percent",
      "number_of_people",
      "split_mode",
      "custom_shares",
      "round_up"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "billAmount": {
        "type": "number"
      },
      "tipPercent": {
        "type": "number"
      },
      "tipAmount": {
        "type": "number"
      },
      "totalAmount": {
        "type": "number"
      },
      "numberOfPeople": {
        "type": "number"
      },
      "splitMode": {
        "type": "string"
      },
      "perPersonBill": {
        "type": "number"
      },
      "perPersonTip": {
        "type": "number"
      },
      "perPersonTotal": {
        "type": "number"
      },
      "roundedPerPersonTotal": {
        "type": "number"
      },
      "roundupDifference": {
        "type": "number"
      },
      "personShares": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "number"
            },
            "billShare": {
              "type": "number"
            },
            "tipShare": {
              "type": "number"
            },
            "totalShare": {
              "type": "number"
            }
          }
        }
      },
      "remainderAmount": {
        "type": "number"
      }
    }
  }
}
