Update a customer
Update a customer
PUT
/v1/customers/{id}authorization<token>
Use device JWT token
In: header
Path Parameters
idstring
typestring
Value in
"person" | "company"comment?string|null
email?string|null
phoneNumber?string|null
firstName?string|null
lastName?string|null
birthDate?string|null
companyName?string|null
siretCode?string|null
nafCode?string|null
vatCode?string|null
creditLimit?integer|null
lastActivityAt?unknown
status?string
Default
"active"Value in
"active" | "suspended" | "inactive"Response Body
application/json
application/json
application/json
curl -X PUT "http://localhost:4012/v1/customers/string" \ -H "Content-Type: application/json" \ -d '{ "type": "person", "firstName": "Jensen", "lastName": "Daniel", "email": "Lera_Huels77@yahoo.com", "phoneNumber": "1-629-884-3787 x11713", "birthDate": "1966-06-07T02:13:04.522Z", "comment": "Lorem ipsum dolor sit" }'{
"message": "Customer updated successfully"
}{
"message": "string",
"code": "INSUFFICIENT_BALANCE",
"meta": {
"property1": null,
"property2": null
}
}{
"message": "string",
"code": "INSUFFICIENT_BALANCE",
"meta": {
"property1": null,
"property2": null
}
}