InvoicePayment object. To create several payments in one call, send an array of payment objects under InvoicePayment instead.invoice_id, amount, and payment_method. payment_method must be one of the account's active configured payment methods (e.g. cash, bank, cheque, or an enabled online gateway key).status (new payments are marked Completed), the recording staff, the currency (taken from the invoice), and the payer contact details (name/address are copied from the invoice's client). Any such fields included in the request are ignored.202 Accepted and the new payment id.curl --location --globoff 'https://.daftara.com/api2/invoice_payments.json' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"InvoicePayment":{"invoice_id":109,"amount":150.5,"payment_method":"cash","date":"2026-06-28","transaction_id":""}}'{
"result": "successful",
"code": 202,
"id": 2415,
"invoice_number": "INV-0001"
}