Bill
A Bill is an amount a Startup owes an outside Organization, coded to an account, approved within a Mandate, and paid by its due date.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
organization | Organization | required | The Organization the Startup owes. |
amount | money | required | What the Bill asks for, in its currency. |
dueOn | date | required | The date payment is due; an approved Bill is paid on it. |
account | string | The chart-of-accounts code it is coded to, such as expense.hosting. | |
status | string | required | Where the Bill stands; only an approved Bill is paid. |
file | File | The File the Bill arrived as: an email attachment or an upload. |
Object
{
"$id": "https: //api.sb/ routewise.dev/ bills/ bill_1",
"$type": "Bill",
"organization": "organization_1",
"amount": {
"amount": 25,
"currency": "USD"
},
"dueOn": "2026-10-22",
"account": "expense.hosting",
"status": "received",
"file": "file_1"
}Relationships
- A Bill is owed to one Organization: a Bill is owed to one outside Organization, whose page lists every Bill the Startup owes it.
owedTo, inversebills.
Lifecycle
| State | Meaning | Moves to |
|---|---|---|
received (first) | It arrived and is coded to an account, waiting for approval. | approved by Bill.approve |
approved | Accepted within the approver’s Mandate and scheduled for its due date. | paid by Bill.pay |
paid | Its amount is sent to the Organization and reconciled to Entries. | approved on Transaction.failed when the rail refused the Transaction that paid this Bill |
Verbs
createCreates a Bill.POST /{namespace}/billsgetReturns one Bill by id.GET /{namespace}/bills/{id}listReturns Bills, newest first, one page at a time.GET /{namespace}/billsupdateChanges the given properties of a Bill.PATCH /{namespace}/bills/{id}approveApprove accepts a coded Bill for payment within the approver’s Mandate and schedules it for its due date.POST /{namespace}/bills/{bill}/approvepayPay sends an approved Bill’s amount to its Organization on the due date and reconciles the payment to Entries.POST /{namespace}/bills/{bill}/pay
Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.
| Operation | owner | admin | member | viewer |
|---|---|---|---|---|
Bill.create | Yes | Yes | Yes | No |
Bill.get | Yes | Yes | Yes | Yes |
Bill.list | Yes | Yes | Yes | Yes |
Bill.update | Yes | Yes | Yes | No |
Bill.approve | Yes | No | No | No |
Bill.pay | Yes | No | No | No |
Call it
Approve the latest bill.Example
A hosting invoice for $640 arrives by email at a pet-supply store. It becomes a Bill coded to expense.hosting, the Finance Lead approves it within its Mandate, and the Treasurer pays it on the 30th.