put
https://api.duodeal.app/api/customers/
Updates an existing customer by its ID.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Customer unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
firstName | string | No | Customer first name |
lastName | string | No | Customer last name |
email | string | No | Customer email address |
civility | string | No | Civility/title (Mr, Mrs, etc.) |
phone | string | No | Primary phone number |
jobTitle | string | No | Job title/position |
billingAddress | object | No | Billing address (see Address object below) |
differentDeliveryAddress | boolean | No | Set to true if delivery address differs |
deliveryAddress | object | No | Delivery address |
customerCompany | object | No | Link to customer company: {"id": companyId} or null to unlink |
customFields | object | No | Custom field values |
archived | boolean | No | Set to true to archive the customer |
Address Object
| Field | Type | Required | Description |
|---|---|---|---|
country | string | No | Country code (e.g., FR, US) |
address | string | No | Street address |
postCode | string | No | Postal code |
city | string | No | City name |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Customer unique identifier |
number | string | Customer reference number |
firstName | string | Customer first name |
lastName | string | Customer last name |
fullName | string | Computed full name |
email | string | Customer email address |
customerCompany | object | Linked customer company |
archived | boolean | Archived status |
isDeletable | boolean | Whether the customer can be deleted |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Customer successfully updated400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key404 Not Found: Customer not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
