Update an existing invoice payment.This is a partial update — send only the fields you want to change, under an InvoicePayment object. Fields not listed below (and any read-only fields) are ignored.Editable fields (for payments recorded by staff/API): amount, date, payment_method, transaction_id, treasury_id, status, notes, receipt_notes, currency_code, staff_id, invoice_id, extra_details, attachment. If the payment was recorded by a client, only a narrower set is editable: treasury_id, receipt_notes, status, notes, invoice_id, attachment.Notes: payment_method, if changed, must be one of the account's active configured methods (changing it clears stored gateway metadata). Changing the payment date requires the relevant permission; otherwise the original date is kept.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
curl --location --globoff --request PUT 'https://.daftra.com/api2/invoice_payments/113.json' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"InvoicePayment":{"status":1,"notes":"Reconciled with bank statement"}}'
Response Response Example
{
"result": "successful",
"code": 200
}