Customers

PATCH

Update Customers

Update an existing customer.

Required Permission: Edit Customer
PATCH /customers/{id}

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
nameStringRequiredstring, requiredThe name
emailStringOptionalstring, optionalThe email
phoneStringRequiredstring, requiredThe phone
date_of_birthDateOptionaldate, optionalThe date of birth
addressStringOptionalstring, optionalThe address
photoFileOptionalfile, optionalThe photo
noteStringOptionalstring, optionalThe note
initial_balanceNumberOptionalnumber, optionalThe initial balance

Response

200 OK
Status Code
HTTP status code (200)
Message
Human-readable description
Data
Updated customer details