Update a payment
Updates a payment / deposit ("abono").
Permitted fields
A non-staff company user (with access to the payment's company) may only edit comments. The request is rejected with 401 Unauthorized only when comments is absent from the body; if comments is present, any other (staff-only) fields sent alongside it are silently dropped and the request succeeds with 200. The full set of payment fields is editable only by Cardda staff (admin/superadmin).
Unlike the list/detail endpoints, the update response returns the bare payment record: it does NOT include the amount money object or the ppo_allocations array.
Path parameters
The UUID of the payment (abono / deposit).
Parameters
Request body
Example request
{
"comments": "Abono correspondiente a la factura 1234"
}Response
The updated payment, returned as the bare record: the amount money object and the ppo_allocations array (present on the list/detail endpoints) are NOT included here.
Example response
{
"kind": "received",
"currency": "CLP"
}