create_purchase_payment
Record a supplier payment with amount, date, and optional payment details. Use this to create the payment entry, then settle purchase lines separately.
Instructions
Create a purchase payment record.
Note: this creates the payment itself. To settle specific purchase
document lines against it, add create_purchase_payment_line calls
referencing this payment's id.
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": {
"supplier_id": "<supplier_id>",
"date": "<date>",
"gross_total": "<gross_total>"
},
"name": "create_purchase_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO payment date (YYYY-MM-DD). | |
| gross_total | Yes | Total amount paid. | |
| supplier_id | Yes | TOCOnline supplier id. | |
| observations | No | Optional observations. | |
| bank_account_id | No | Bank account id from /api/bank_accounts, if paid from a bank account. | |
| payment_mechanism | No | TOCOnline payment mechanism code (e.g. NUM, TRA, CC). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||