create_payment
Record a payment linked to an invoice, proforma invoice, order, or supplier invoice. Exactly one of invoice_id, proforma_invoice_id, order_id, or supplier_invoice_id must be supplied. Provide the amount to record; to pay a document in full, read its outstanding balance first (e.g. get_invoice) and pass that value.
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": {
"payment_date": "<payment_date>",
"amount": "<amount>"
},
"name": "create_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Payment amount to record (required). To settle a document in full, fetch its outstanding balance first and pass it here. | |
| currency | No | Currency code, e.g. "RON", "EUR"; defaults to the document currency when omitted | |
| order_id | No | Order ID to link the payment to | |
| invoice_id | No | Invoice ID to link the payment to | |
| description | No | Notes / description | |
| payment_date | Yes | Payment date in YYYY-MM-DD format | |
| payment_type | No | Payment method, e.g. "cash", "bank" | |
| proforma_invoice_id | No | Proforma invoice ID to link the payment to | |
| supplier_invoice_id | No | Supplier invoice ID to link the payment to (use for payments to suppliers) |