Customer Payments

PATCH

Update Customer Payment

Update an existing customer payment's information.

Required Permission: Edit Customer Payment
PATCH /customer-payments/{id}

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
customer_idIntegerRequiredinteger, required, exists:customers,idID of the customer (must be active)
fund_idIntegerRequiredinteger, required, exists:funds,idID of the fund (must be active)
amountNumericRequirednumeric, required, min:0.01Payment amount (minimum: 0.01)
payment_referenceStringOptionalstring, nullable, max:255Payment reference number
noteStringOptionalstring, nullable, max:255Additional notes
statusBooleanOptionalbooleanPayment status (true/false)

Response

200 OK
Status Code
HTTP status code (200)
Message
Customer payment updated successfully
Data
Updated customer payment object