Record a bill payment
purchasing_pay_billRecord money paid on a bill: amount (at most the balance, unless keep_excess keeps the rest as a credit with the supplier for purchasing_use_credit), date, method and reference. It becomes partially_paid, or paid when nothing is left. A negative amount records money back from the supplier. When the account keeps books, the payment is posted (accounts payable against the bank, with any exchange difference). books_match_bank_lines can do this from a bank line too. Costs $0.01 per call; nothing if it fails.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bill_id": "<bill_id>",
"amount": "<amount>"
},
"name": "purchasing_pay_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | When it was paid. Default today. | |
| note | No | ||
| amount | Yes | In the bill's currency, e.g. "250.00". Negative for a refund. | |
| method | No | bank_transfer | |
| bill_id | Yes | The bill_id purchasing_create_bill returned. | |
| reference | No | ||
| keep_excess | No | Paid more than the balance: keep the rest as a credit with the supplier. |