recordInvoicePayment
Record a payment the location received outside the platform (cash, bank transfer) against an issued invoice. Returns the invoice with the payment. Without amount it records the whole amount due and the invoice becomes paid; with amount, in major units, it records a partial payment. paymentDate is when the money arrived and defaults to now. This never charges the customer's card: to charge a saved payment method, issue the invoice with skipAutoCharge false. The route is not idempotent: after a failure or timeout, check the invoice's payments with getInvoice before calling again, or the payment is recorded twice. Get invoiceId from getInvoices. Never invent UUIDs; only use values from prior tool responses.
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": {
"invoiceId": "<invoiceId>"
},
"name": "recordInvoicePayment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Partial payment amount in major units. | |
| invoiceId | Yes | The id of the invoice. | |
| paymentDate | No | ISO timestamp of when the money was received. Defaults to now. Must not be in the future. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |