Add payment to invoice
add_paymentRecord a payment against an invoice manually via an offline gateway or by charging a stored payment method.
Instructions
Record a payment against an invoice — typically an offline/manual payment through an offline gateway (see list_gateways), or charge a stored payment method. amount must be in the invoice currency. DESTRUCTIVE: records money movement.
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": {
"invoice_id": "<invoice_id>",
"amount": "<amount>"
},
"name": "add_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra | No | Additional raw fields passed through to the API | |
| amount | Yes | Payment amount in the invoice currency | |
| gateway_id | No | Gateway to record against (e.g. an offline/bank-transfer gateway) | |
| invoice_id | Yes | Invoice UUID | |
| payment_details_id | No | Charge this stored payment method instead |