Split the Bill
Split a bill between people, including service charge and tax.
POST /api/v1/split-bill- API version
- v1
- Output schema
- 1
The endpoint path is always /v1. The schema number below tracks this tool's output shape and changes independently.
Create a free account →Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
| total | number | no | 250000 |
| people | number | no | 4 |
| service | number | no | 0 |
| tax | number | no | 0 |
Request
curl -X POST https://sinikoding.dev/api/v1/split-bill \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"total":250000,"people":4,"service":0,"tax":0}'
Returns
"output": { "kind": "table", "columns": ["…"], "rows": [["…"]] }
Calls a same-origin sandbox endpoint, not /api/v1. No key needed, capped at 15 requests a minute.
Request
curl -X POST https://sinikoding.dev/api/v1/split-bill \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"total":"250000","people":"4","service":"0","tax":"0"}'
Response
Send a request to see the response.