Create a split bill
create_splitCreate a payment page for a shared bill and return the manage URL plus the share URLs. The PayNow recipient is already saved with this connection — never ask the user for it. All you need is a total (total) or the receipt lines (items), plus the head count (people). Children can pay half: "4 adults and 3 kids" is people=7 with children=3. By default the user is treated as having paid up front: they count towards the head count but get no payment link (pass i_paid=false to turn that off). Paste a share URL into the group chat and everyone sees their own amount and a PayNow QR code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A short note shown to the payers. | |
| items | No | Receipt lines. Their sum becomes the total. Payers can see them. | |
| names | No | Names of the others (only the ones you know). Empty slots get filled in by the payers themselves. | |
| title | No | What the bill was for (e.g. Friday dinner). Defaults to the date and time. | |
| total | No | The total. If items are given, their sum wins. | |
| custom | No | Charge one person a different amount (e.g. someone who did not drink). The rest is re-split automatically. | |
| i_paid | No | Did the user pay up front? (default: true) They count towards the head count but are not billed. | |
| people | No | How many people share the bill, INCLUDING the user who paid up front. | |
| my_name | No | What to call the user in the list (default: Me). | |
| children | No | How many of people are children. A child pays half of what an adult pays. "4 adults and 3 kids" is people=7, children=3. When names are given, the LAST ones on the list are taken to be the children. | |
| rounding | No | Rounding. ceil-all = round everyone up to whole dollars and let the user absorb the difference; one-extra = split exactly and let one person carry the remainder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | The total. | |
| paynow | Yes | Who collects the money (saved with this connection). | |
| people | Yes | How many share the bill, including whoever paid up front. | |
| summary | Yes | A one-line summary to read out (how much each, how many people). | |
| warnings | No | Anything worth mentioning about rounding or head count. | |
| next_step | Yes | What to do next. | |
| manage_url | Yes | Manage URL. FOR THE ORGANISER ONLY — it can change the split. | |
| share_urls | Yes | Share URLs — one per amount. | |
| status_url | No | Read-only URL. Safe to share. |