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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | Customer ID (required) | |
| invoice_id | No | Invoice ID | |
| invoice_number | No | Invoice number | |
| amount_cents | No | Amount in cents | |
| payment_method | No | Payment method | |
| ref_num | No | Reference number | |
| address_street | No | Billing street | |
| address_city | No | Billing city | |
| address_zip | No | Billing ZIP | |
| register_id | No | Register ID | |
| signature_name | No | Signature name | |
| 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 } |