Customers
PATCH
Update Customers
Update an existing customer.
Required Permission:
Edit Customer
PATCH
/customers/{id}
Request Body
JSONRequest Parameters
| Parameter | Type | Required | Validation | Description |
|---|---|---|---|---|
| name | String | Required | string, required | The name |
| String | Optional | string, optional | The email | |
| phone | String | Required | string, required | The phone |
| date_of_birth | Date | Optional | date, optional | The date of birth |
| address | String | Optional | string, optional | The address |
| photo | File | Optional | file, optional | The photo |
| note | String | Optional | string, optional | The note |
| initial_balance | Number | Optional | number, optional | The initial balance |
Response
200 OKStatus Code
HTTP status code (200)
Message
Human-readable description
Data
Updated customer details