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.
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 | |||