pay_to_contact
Records a supplier payment and applies it to their balance, optionally matching purchase bills via payable IDs.
Instructions
Record a payment (money paid) against a supplier's balance, optionally matched to purchase-bill IDs via payable_ids.
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": {
"contact_id": "<contact_id>",
"account_id": "<account_id>",
"amount": "<amount>",
"date": "<date>"
},
"name": "pay_to_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Transaction date (YYYY-MM-DD) | |
| amount | Yes | Amount | |
| account_id | Yes | Cash/bank account ID to move the money through (see list_accounts) | |
| contact_id | Yes | Contact ID | |
| description | No | Description | |
| payable_ids | No | Invoice/bill IDs to match this transaction against first | |
| exchange_rate | No | Exchange rate to TRL if account currency differs from the document |