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.
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 |