payments_create
Record a payment for a customer and optionally distribute it across multiple invoices using invoice IDs and amounts.
Instructions
Record a payment. Use apply_payments to distribute a payment across multiple invoices.
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": {
"customer_id": "<customer_id>"
},
"name": "payments_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref_num | No | Reference number | |
| invoice_id | No | Invoice ID | |
| address_zip | No | Billing ZIP | |
| customer_id | Yes | Customer ID (required) | |
| register_id | No | Register ID | |
| address_city | No | Billing city | |
| amount_cents | No | Amount in cents | |
| address_street | No | Billing street | |
| apply_payments | No | Object where keys are invoice IDs and values are amounts in cents. Distributes payment across multiple invoices. Example: { "456": 3000, "789": 2000 } | |
| invoice_number | No | Invoice number | |
| payment_method | No | Payment method | |
| signature_name | No | Signature name |