Charge payment account on file
process_paymentCharge a client's stored payment account and apply the funds to selected invoices, with an optional receipt email.
Instructions
Charge a client's stored card or bank account through the payment gateway and apply the result to invoices. Wraps Payments.processPayment with account_id only; raw card data is never accepted. Sends the client a receipt unless disabled. Moves real money. DISABLED: set BLESTA_ALLOW_PAYMENTS=1 to enable.
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": {
"client_id": "<client_id>",
"account_id": "<account_id>",
"type": "<type>",
"amount": "<amount>",
"currency": "<currency>"
},
"name": "process_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Kind of stored account | |
| amount | Yes | ||
| currency | Yes | ||
| invoices | No | Map of invoice_id -> amount to apply; total must not exceed amount | |
| staff_id | No | ||
| client_id | Yes | ||
| account_id | Yes | Stored payment account id from get_payment_accounts | |
| email_receipt | No |