Update Customer by ID
PUT /customers/{id}
Description
Update an existing customer's details by their unique identifier.
Authentication
Bearer Token (JWT)
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string (UUID) | The unique identifier of the customer to update |
Request Body
{
"name": "James Twumanje",
"phone": "263773591219",
"email": "vusumuzi@qantra.co.zw",
"notes": "Auto generated customer",
"associatedUser": "263773591219",
"billingCurrencyString": "USD",
"companyIdString": "734a7dd8-b8ba-43df-9210-8bf0f367bca5"
}
Request Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Updated full name of the customer |
| phone | string | Yes | Updated phone number |
| string | Yes | Updated email address | |
| notes | string | No | Additional notes about the customer |
| associatedUser | string | No | Associated user identifier (e.g., phone number) |
| billingCurrencyString | string | Yes | Billing currency code (e.g., USD) |
| companyIdString | string | Yes | UUID of the company this customer belongs to |